Skip to content

Commit ae571bb

Browse files
awarecansyssi
authored andcommitted
Add eta for nest.set_mode service, add security_state to sensor.nest (#5518)
1 parent 8401b87 commit ae571bb

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

source/_components/nest.markdown

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,15 @@ Configuration variables:
6565
6666
Currently there is a single `nest.set_mode` service available to switch between
6767
"away" and "home" modes. This service requires a `home_mode` param and has an
68-
optional `structure` param.
68+
optional `structure` param. While setting "away" mode, an estimated arrival time
69+
can also be set with `eta`, `eta_window`, and `trip_id` parameters.
70+
71+
- **home_mode** (*Required*): `home` or `away`
72+
- **structure** (*Optional*): Structure(s). Default apply to all structures connected with Home Assistant.
73+
- **eta** (*Optional*): Estimated Time of Arrival from now.
74+
- **eta_window** (*Optional*): ETA window (default is 1 minute).
75+
- **trip_id** (*Optional*): Unique ID for the trip. Using an existing trip ID will update that trip's ETA.
76+
6977

7078
```yaml
7179
# Example script to set away, no structure specified so will execute for all
@@ -86,3 +94,16 @@ set_nest_home:
8694
structure:
8795
- Building
8896
```
97+
98+
```yaml
99+
# Example script to set eta, structure specified
100+
set_nest_eta:
101+
sequence:
102+
- service: nest.set_mode
103+
data:
104+
home_mode: away
105+
structure:
106+
- Building
107+
eta: 00:10:30
108+
eta_window: 00:05
109+
```

source/_components/sensor.nest.markdown

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ The `nest` sensor platform lets you monitor sensors connected to your [Nest](htt
2020
You must have the [Nest component](/components/nest/) configured to use these sensors. The sensors will be setup if the `nest` component is configured and the required configuration for the `nest sensor` is set.
2121
</p>
2222

23+
## {% linkable_title Configuration %}
24+
2325
To enable sensors and customize which sensors are setup, you can extend the [Nest component](/components/nest/) configuration in your `configuration.yaml` file with the following settings:
2426
```yaml
2527
# Example configuration.yaml entry
@@ -40,6 +42,7 @@ The following conditions are available by device:
4042

4143
- Nest Home:
4244
- eta: Estimated time of arrival.
45+
- security\_state: `ok` or `deter`. [Security State](#security-state)
4346
- Nest Thermostat:
4447
- humidity
4548
- operation\_mode
@@ -53,3 +56,24 @@ The following conditions are available by device:
5356
- color\_status: `gray`, `green`, `yellow`, or `red`. Indicates device status by color in the Nest app UI. It is an aggregate condition for battery+smoke+CO states, and reflects the actual color indicators displayed in the Nest app.
5457
- Nest Camera: none
5558

59+
## {% linkable_title Security State %}
60+
61+
<p class='note warning'>
62+
This feature is not designed to transfer your Home Assitant to a secruity system, neither Home Assistant nor Nest be liable to You for damages,
63+
or consequential damages of any character arising as a result of use this feature.
64+
65+
This feature does not depend on the [Nest Secure alarm system](https://nest.com/alarm-system/overview/) and is not a reflection of the status of that system,
66+
nor does it react to state changes in that system.
67+
</p>
68+
69+
<p class='note'>
70+
This feautre use a new [Nest Secruity API](https://developers.nest.com/documentation/cloud/security-guide),
71+
you may need to change your ["Product"](https://developers.nest.com/products) permission setting to include `Secruity State Read`.
72+
After permission change, you may need to re-authorize your client.
73+
</p>
74+
75+
If a Nest Cam detects the presence of a person (see `person_detected` in [binary_sensor.nest](/components/binary_sensor.nest/)) while the structure is in `away` mode (see `away` in [binary_sensor.nest](/components/binary_sensor.nest/)), the structure enters `deter` mode.
76+
77+
A `deter` state is re-evaluated after several minutes and relaxed to `ok` if no further `person_detected` events have occurred.
78+
79+
The `security_state` automatically switches to `ok` when the structure state is `home`.

0 commit comments

Comments
 (0)