I tried what @RobDYI showed with the multiple entity_id records, but no dice.
Here is what I have. It will only fire off if BOTH binary sensors go from closed to open. If I try to list entity_id twice under the platform: state field, it tells me that entity_id is duplicated. Any more ideas?
#Door left open longer than 5 minutes
- alias: Window or Door left open longer than 5 minute
trigger:
- platform: state
entity_id:
- binary_sensor.carport_door
- binary_sensor.office_windows
to: 'on'
for:
minutes: 5
Yep, that will work. Kinda ugly code for multiple triggers, but it will work. One slight modification here, you must reference the platform each time. Simply referencing the multiple entity_id will result in an error.
trigger:
- platform: state
entity_id: binary_sensor.office_windows
to: 'on'
for:
minutes: 5
- platform: state
entity_id: binary_sensor.guest_windows
to: 'on'
for:
minutes: 5