Skip to content

Commit 39d3e6c

Browse files
mattschLandrash
authored andcommitted
Update for new nest.set_mode service (home-assistant#2645)
* Update for new nest.set_mode service * Update nest.markdown
1 parent cfbea69 commit 39d3e6c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

source/_components/nest.markdown

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,29 @@ Configuration variables:
5858
- **client_id** (*Required*): Your Nest developer client ID.
5959
- **client_secret** (*Required*): Your Nest developer client secret.
6060
- **structure** (*Optional*): The structure or structures you would like to include devices from. If not specified, this will include all structures in your Nest account.
61+
62+
### {% linkable_title Services %}
63+
64+
Currently there is a single `nest.set_mode` service available to switch between
65+
"away" and "home" modes. This service requires a `home_mode` param and has an
66+
optional `structure` param.
67+
68+
```yaml
69+
# Example script to set away, no structure specified so will execute for all
70+
set_nest_away:
71+
sequence:
72+
- service: nest.set_mode
73+
data:
74+
home_mode: away
75+
```
76+
77+
```yaml
78+
# Example script to set home, structure specified
79+
set_nest_home:
80+
sequence:
81+
- service: nest.set_mode
82+
data:
83+
home_mode: home
84+
structure:
85+
- Building
86+
```

0 commit comments

Comments
 (0)