mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Update for new nest.set_mode service (#2645)
* Update for new nest.set_mode service * Update nest.markdown
This commit is contained in:
parent
cfbea697ce
commit
39d3e6c384
@ -58,3 +58,29 @@ Configuration variables:
|
|||||||
- **client_id** (*Required*): Your Nest developer client ID.
|
- **client_id** (*Required*): Your Nest developer client ID.
|
||||||
- **client_secret** (*Required*): Your Nest developer client secret.
|
- **client_secret** (*Required*): Your Nest developer client secret.
|
||||||
- **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.
|
- **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.
|
||||||
|
|
||||||
|
### {% linkable_title Services %}
|
||||||
|
|
||||||
|
Currently there is a single `nest.set_mode` service available to switch between
|
||||||
|
"away" and "home" modes. This service requires a `home_mode` param and has an
|
||||||
|
optional `structure` param.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example script to set away, no structure specified so will execute for all
|
||||||
|
set_nest_away:
|
||||||
|
sequence:
|
||||||
|
- service: nest.set_mode
|
||||||
|
data:
|
||||||
|
home_mode: away
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example script to set home, structure specified
|
||||||
|
set_nest_home:
|
||||||
|
sequence:
|
||||||
|
- service: nest.set_mode
|
||||||
|
data:
|
||||||
|
home_mode: home
|
||||||
|
structure:
|
||||||
|
- Building
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user