@smurfen wrote:
Hi!
I am trying to make a automation that sends notification when a window or door is open during arming of house alarm.
The trigger and the action is ok, as i use the same code in other automations, but the conditions does not work, so i obviously doing something wrong…
All windows and doors has binary door/window sensors, and my goal is alert when one of them is in state “on”.
I am sure that i could use a better/shorter method, but this is what i have tried and it does not work:condition: - condition: or conditions: - condition: state entity_id: binary_sensor.openclose_23 state: 'on' - condition: or conditions: - condition: state entity_id: binary_sensor.openclose_31 state: 'on' - condition: or conditions: - condition: state entity_id: sensor.terrasse_door_stue state: 'on' - condition: or conditions: - condition: state entity_id: binary_sensor.openclose_20 state: 'on' - condition: or conditions: - condition: state entity_id: binary_sensor.openclose_33 state: 'on'
Someone that could point me in a right direction?
Posts: 5
Participants: 2