I’m wondering if it’s possible to have multiple triggers - combined like an AND statement. e.g.
trigger:
platform: state
entity_id: light.office
to: 'off'
for: '00:00:05'
AND
entity_id: sensor.office_motion
to: 'true'
action:
service: light.turn_on
entity_id: light.office
The reason for this being that if my light turns off by sensor and I want to get it back on quickly my current set up doesn’t work because there’s a condition which checks the light level, but the light level doesn’t update quick enough for the motion sensor to come back on straight away.
I want to use two motion sensors the same way but it does not work. It should turn the lights off when there is no movement for the given time. What am I doing wrong?
trigger:
- entity_id: binary_sensor.motion_sensor_158d00015b89f6
for: 00:02:00
platform: state
to: 'off'
condition:
- condition: state
entity_id: binary_sensor.motion_sensor_158d000123265f
state: 'off'
for: 00:05:00
action:
- alias: ''
data:
entity_id: group.wc
service: switch.turn_off