Update climate.markdown (#1898)

Add documentation for hold_mode.
This commit is contained in:
Duoxilian 2017-01-29 02:24:10 -06:00 committed by Fabian Affolter
parent c23054fe2c
commit c68df1bc66

View File

@ -54,12 +54,17 @@ automation:
### {% linkable_title Service `climate.set_away_mode` %} ### {% linkable_title Service `climate.set_away_mode` %}
Turn away mode on/off for climate device This service has been deprecated. Use `climate.set_hold_mode` instead.
### {% linkable_title Service `climate.set_hold_mode` %}
Set hold mode for climate 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 climate devices to control. Else targets all. | `entity_id` | yes | String or list of strings that point at `entity_id`'s of climate devices to control. Else targets all.
| `away_mode` | no | New value of away mode. | `hold_mode` | no | New value of hold mode.
#### {% linkable_title Automation example %} #### {% linkable_title Automation example %}
@ -69,10 +74,10 @@ automation:
platform: time platform: time
after: "07:15:00" after: "07:15:00"
action: action:
- service: climate.set_away_mode - service: climate.set_hold_mode
data: data:
entity_id: climate.kitchen entity_id: climate.kitchen
away_mode: true hold_mode: 'away'
``` ```
### {% linkable_title Service `climate.set_temperature` %} ### {% linkable_title Service `climate.set_temperature` %}