I’m using Iris motion sensor alongside a Hue light bulb. Turning on the lights when motion is detected works perfectly, however turning off at 1 minute is not.
My code
- alias: On Master Bathroom Lights Motion Detected
trigger:
platform: state
entity_id: binary_sensor.centralite_3326l_0ba73ece_1
to: 'on'
condition:
condition: sun
after: sunset
after_offset: "-00:15:00"
action:
service: light.turn_on
entity_id: light.bedroom_hallway
- alias: Turn OFF Master Bathroom Lights
trigger:
platform: state
entity_id: binary_sensor.centralite_3326l_0ba73ece_1
to: 'off'
for:
minutes: 1
action:
service: light.turn_off
entity_id: light.bedroom_hallway
Thank you for your response. I’m transitioning from Smartthings and it was working great, so I’m guessing the Iris motion detector sends a signal when motion is not detected.