Hi all!
Total noob here transitioning from SmartThings to Home Assistant and my very first go has me stumped.
I have a light over the stove in the kitchen that is normmally off after sunset.
I also have a motion sensor on the fridge.
I would like the stove light to come on if the motion sensor detects motion between 10:00 PM and sunrise every night.
I would like it to stay on for 2 minutes, then turn off again if no motion is detected.
What am I missing here?
Thanks in advance!
alias: Kitchen Motion After 10PM
description: “”
triggers:
- entity_id:
- binary_sensor.kitchen_motion_ias_zone
to: “on”
trigger: state
conditions:
- binary_sensor.kitchen_motion_ias_zone
- condition: time
after: “22:00:00” - condition: sun
before: sunrise
actions: - target:
entity_id: light.stove_light
action: light.turn_on
data: {} - delay:
hours: 0
minutes: 2
seconds: 0 - target:
entity_id: light.stove_light
action: light.turn_off
data: {}
mode: restart