I have 2 automations configured for my basement. Both are triggered by a motion detector.
alias: boff
trigger:
platform: state
entity_id: sensor.basement_motion_sensor
to: '0'
for:
minutes: 5
action:
service: light.turn_off
entity_id:
- group.basement
alias: bon
trigger:
platform: state
entity_id: sensor.basement_motion_sensor
to: '1'
action:
service: light.turn_on
entity_id:
- group.basement
The automation for ‘boff’ works - after 5 minutes of inactivity from the motion sensor, it turns off the 3 lights in the group.basement group. The issue is with ‘bon’ - it had worked at one time but now it no longer turns on the lights. I can see in the log and debug log file that it is triggering the ‘bon’ automation but it isn’t trying to turn on the lights. I originally had the lights listed individually within the entities section but it made no difference. I’m confused as to what is causing this.
Thanks
Norm