I have a light switch in my office that if motion is detected will turn on.
I have the switch activated from 0600 to 1700. So the light will not come on if motion is detected between 1700 and 0600.
I have noticed the last few days that at 0600 the light turns on with no motion detected. I beleive that this is due to my automation below.
How do I not have the light turn on until motion is detected.
- id: "e888f8f9-4b0b-4d9d-b017-81661da7d39b"
alias: "Lights - Office ON"
description: Lights - Office ON
trigger:
- platform: state
entity_id:
- binary_sensor.motion_sensor_office_door_occupancy
- binary_sensor.motion_sensor_cwb_office_desk
to: "on"
from: "off"
condition:
condition: time
after: "06:00:00"
before: "17:00:00"
action:
- entity_id: light.light_dimmer_office
service: light.turn_on
mode: single
Any help greatly appreciated.