mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-09 23:02:59 +00:00
or shorthand
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user