mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Fix service call documentation (#7742)
See #7368 The component doesn't seem to register "turn_away_mode_off" and "turn_away_mode_on" as services and instead uses "set_away_mode"
This commit is contained in:
parent
b1d966825c
commit
b71c931e4d
@ -77,13 +77,14 @@ automation:
|
|||||||
operation_mode: eco
|
operation_mode: eco
|
||||||
```
|
```
|
||||||
|
|
||||||
### {% linkable_title Service `water_heater.turn_away_mode_on` %}
|
### {% linkable_title Service `water_heater.set_away_mode` %}
|
||||||
|
|
||||||
Turn away mode on for water heater device
|
Turn away mode on or off for water heater device
|
||||||
|
|
||||||
| Service data attribute | Optional | Description |
|
| Service data attribute | Optional | Description |
|
||||||
| ---------------------- | -------- | ----------- |
|
| ---------------------- | -------- | ----------- |
|
||||||
| `entity_id` | yes | String or list of strings that point at `entity_id`'s of water heater devices to control. Else targets all.
|
| `entity_id` | yes | String or list of strings that point at `entity_id`'s of water heater devices to control. Else targets all.
|
||||||
|
| `away_mode` | no | New value of away mode. 'on'/'off' or True/False
|
||||||
|
|
||||||
#### {% linkable_title Automation example %}
|
#### {% linkable_title Automation example %}
|
||||||
|
|
||||||
@ -93,28 +94,8 @@ automation:
|
|||||||
platform: time
|
platform: time
|
||||||
at: "07:15:00"
|
at: "07:15:00"
|
||||||
action:
|
action:
|
||||||
- service: water_heater.turn_away_mode_on
|
- service: water_heater.set_away_mode
|
||||||
data:
|
data:
|
||||||
entity_id: water_heater.demo
|
entity_id: water_heater.demo
|
||||||
|
away_mode: True
|
||||||
```
|
```
|
||||||
|
|
||||||
### {% linkable_title Service `water_heater.turn_away_mode_off` %}
|
|
||||||
|
|
||||||
Trun away mode off for water heater device
|
|
||||||
|
|
||||||
| Service data attribute | Optional | Description |
|
|
||||||
| ---------------------- | -------- | ----------- |
|
|
||||||
| `entity_id` | yes | String or list of strings that point at `entity_id`'s of water heater devices to control. Else targets all.
|
|
||||||
|
|
||||||
#### {% linkable_title Automation example %}
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
automation:
|
|
||||||
trigger:
|
|
||||||
platform: time
|
|
||||||
at: "07:15:00"
|
|
||||||
action:
|
|
||||||
- service: water_heater.turn_away_mode_off
|
|
||||||
data:
|
|
||||||
entity_id: water_heater.demo
|
|
||||||
```
|
|
Loading…
x
Reference in New Issue
Block a user