06-25-2024 06:01 AM
I have a wired nest doorbell and a smart display of nest Hub max.
I've recently started to create automations using the google home script editor.
I want my automation to display the front doorbell camera when the doorbell is pressed on my Nest Hub max and after a minute to stop displaying.
Couldn't find a way to create a delayed action
06-25-2024 06:31 AM
We don't use automations, but you could use the "Visitor announcements" option (https://support.google.com/googlenest/answer/7672451) to accomplish the same thing.
06-25-2024 07:22 AM
I've not tried this myself but based on a few other automations that I have done I would start with the device.event.DoorbellPress function as a starter and then for actions I would try assistant.command.OkGoogle and time.delay functions.
starters:
- type: device.event.DoorbellPress
device: (camera name) - (camera location)
actions:
- type: assistant.command.OkGoogle
okGoogle: show me (camera name) on (display device)
devices: (display device)
- type: time.delay
for: 1min
- type: assistant.command.OkGoogle
okGoogle: stop casting on (display device)
devices: (display device)