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:
@@ -20,15 +20,13 @@ automation:
entity_id: light.browser_kitchen
data:
brightness_pct: 100
- condition: or
conditions:
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: sun
before: sunrise
- or:
- or:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: sun
before: sunrise
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
above: 80