or shorthand

This commit is contained in:
2022-05-07 11:12:06 +03:00
parent 440a6cf194
commit bbb9c4e9c9
2 changed files with 14 additions and 18 deletions
@@ -38,15 +38,13 @@ automation:
from: "off"
to: "on"
condition:
- condition: or
conditions:
- condition: state
entity_id:
- binary_sensor.kitchen_window
- binary_sensor.living_room_right_window
- binary_sensor.bedroom_left_window
- binary_sensor.bedroom_right_window
state: "on"
- condition: state
entity_id:
- binary_sensor.kitchen_window
- binary_sensor.living_room_right_window
- binary_sensor.bedroom_left_window
- binary_sensor.bedroom_right_window
state: "on"
action:
- service: script.say
data: