Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c68df1b

Browse files
Duoxilianfabaff
authored andcommitted
Update climate.markdown (home-assistant#1898)
Add documentation for hold_mode.
1 parent c23054f commit c68df1b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/_components/climate.markdown

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,17 @@ automation:
5454

5555
### {% linkable_title Service `climate.set_away_mode` %}
5656

57-
Turn away mode on/off for climate device
57+
This service has been deprecated. Use `climate.set_hold_mode` instead.
58+
59+
60+
### {% linkable_title Service `climate.set_hold_mode` %}
61+
62+
Set hold mode for climate device
5863

5964
| Service data attribute | Optional | Description |
6065
| ---------------------- | -------- | ----------- |
6166
| `entity_id` | yes | String or list of strings that point at `entity_id`'s of climate devices to control. Else targets all.
62-
| `away_mode` | no | New value of away mode.
67+
| `hold_mode` | no | New value of hold mode.
6368

6469
#### {% linkable_title Automation example %}
6570

@@ -69,10 +74,10 @@ automation:
6974
platform: time
7075
after: "07:15:00"
7176
action:
72-
- service: climate.set_away_mode
77+
- service: climate.set_hold_mode
7378
data:
7479
entity_id: climate.kitchen
75-
away_mode: true
80+
hold_mode: 'away'
7681
```
7782

7883
### {% linkable_title Service `climate.set_temperature` %}

0 commit comments

Comments
 (0)