mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Add an nest event example automation (#16131)
This commit is contained in:
parent
38806285e4
commit
8065ed25fb
@ -312,6 +312,28 @@ The lower level Pub/Sub subscriber receives events in real time and internally f
|
||||
| Sound detected | [CameraSound](https://developers.google.com/nest/device-access/traits/device/camera-sound#events) | `sound_detected` |
|
||||
| Doorbell pressed | [DoorbellChime](https://developers.google.com/nest/device-access/traits/device/doorbell-chime#events) | `doorbell_chime` |
|
||||
|
||||
### Example
|
||||
|
||||
This automation will trigger when a `nest_event` event type with a type of `camera_motion` is received from the specified `device_id`.
|
||||
|
||||
```yaml
|
||||
alias: motion alert
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: nest_event
|
||||
event_data:
|
||||
device_id: YOUR_DEVICE_ID
|
||||
type: camera_motion
|
||||
action:
|
||||
- service: notify.mobile_app_pixel_2
|
||||
data:
|
||||
title: motion detected
|
||||
message: front door motion detected
|
||||
data:
|
||||
image: /api/camera_proxy/camera.front_door
|
||||
```
|
||||
|
||||
The action in this section uses the [Android Companion App](https://companion.home-assistant.io/docs/notifications/notifications-basic/) and the camera proxy to send an notification with a snapshot from the camera.
|
||||
|
||||
# Legacy Works With Nest API
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user