01-06-2025 07:36 AM - edited 01-06-2025 08:31 AM
Hi All,
I have a Nest Doorbell Cam (1st Gen) and just picked up a Google Nest Cam (Outdoor or Indoor, Battery) to look at the driveway. I want to do a fairly standard automation on either of them.
If Motion
and
If night
and
If Porch light off
Then
turn on porch light.
wait 5 mins then turn off porch light
The part I cannot figure out is the part in red. The reason it is important because I have another automation turning on porch lights at sunset and turning them off at 9PM. The issue is if there was motion between sunset and 9PM then it would turn off the light after 5 mins. If the light is already on, I want it left on.
Thanks in advance.
My only experience with automations is via the App on my Android phone.
Thanks
TwisUp
01-09-2025 03:26 PM - edited 01-09-2025 03:30 PM
Hi TwisUp,
Thanks for reaching out to our community.
I’m sorry to hear that you cannot figure out the command “If Porch lights off” in the automation you’re creating to manage your Nest Doorbell Cam (1st Gen) and a Google Nest Cam (Outdoor or Indoor Battery) to look at the driveway. It is my pleasure to help you to find the answer.
Based on the information you provided me, I recommend you go to the Google Developer Center, where you can find the Google Automations Script Editor to customize your automation.
If you need further assistance with your Google Nest products, please feel free to contact us whenever you need it.
Best regards,
Virna.
01-10-2025 02:47 AM
Bonjour, je te propose cette commande YAML a la condition que tu es un abonnement aware mais cela fonctionnera aussi si elle détecte une personne
belle journée
metadata:
name: David est détecté par les caméras allume le porche
description:
David est détecté par les caméras allume le porche la nuit
automations:
- starters:
- type: device.event.PersonDetection # A person has been detected by the camera.
device: Google Nest Cam # Nom de l'appareil (caméra)
condition:
- type: time.between # Optional. Days of the week to apply condition on.
weekdays:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
after: sunset
before: sunrise
actions:
- type: device.command.OnOff
devices:
- Lumière Porche # Nom de l'appareil (nom de ta prise)
on: true
- type: time.delay
for: 5min
- type: device.command.OnOff
devices:
- Lumière porche
on: false # Nom de l'appareil (nom de ta prise)
02-03-2025 08:19 AM
Hello! I'm not sure if you have figured this out yet, but it sounds like you are trying to do something similar to what I have set up already. My front porch light is separately scheduled to turn on just after dusk each day and I use this script in the Home Automation editor to turn it on and off based on motion detected:
metadata:
name: Motion Detector
description: Turns on porch light when a person is seen after dark; turns off after delay.
automations:
starters:
- type: device.state.OnOff
state: on
is: true
device: Front porch light - Front Door
- type: device.event.PersonDetection
device: Front Door - Front Door
- type: device.event.PersonDetection
device: Car Camera - Front Door
condition:
type: time.between
before: sunrise
after: sunset
actions:
- type: device.command.OnOff
on: true
devices: Front porch light - Front Door
- type: time.delay
for: 40sec
- type: device.command.OnOff
on: false
devices: Front porch light - Front Door