Skip to content

Commit 0482c1d

Browse files
committed
Refactor living room automation for clarity and consistency
1 parent 1997975 commit 0482c1d

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

config/automation/living_room_color_defaults.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -78,34 +78,34 @@
7878
kelvin: 2700
7979
brightness: 200
8080

81-
- alias: 'Living Room Red on Entry/Garage Open'
82-
id: living_room_red_on_entry_open
83-
mode: restart
84-
variables:
85-
was_off: "{{ is_state('light.living_room_lights', 'off') }}"
86-
trigger:
87-
- platform: state
88-
entity_id: group.entry_points
89-
to: 'on'
90-
- platform: state
91-
entity_id: group.garage_doors
92-
from: 'closed'
93-
to: 'open'
94-
action:
95-
- service: scene.turn_on
96-
target:
97-
entity_id: scene.red_living_room
98-
- wait_for_trigger:
99-
- platform: state
100-
entity_id: group.entry_points
101-
to: 'off'
102-
- platform: state
103-
entity_id: group.garage_doors
104-
to: 'closed'
105-
timeout: "01:00:00"
106-
- choose:
107-
- conditions: "{{ was_off }}"
108-
sequence:
109-
- service: light.turn_off
110-
target:
111-
entity_id: light.living_room_lights
81+
- alias: 'Living Room Red on Entry/Garage Open'
82+
id: living_room_red_on_entry_open
83+
mode: restart
84+
variables:
85+
was_off: "{{ is_state('light.living_room_lights', 'off') }}"
86+
trigger:
87+
- platform: state
88+
entity_id: group.entry_points
89+
to: 'on'
90+
- platform: state
91+
entity_id: group.garage_doors
92+
from: 'closed'
93+
to: 'open'
94+
action:
95+
- service: scene.turn_on
96+
target:
97+
entity_id: scene.red_living_room
98+
- wait_for_trigger:
99+
- platform: state
100+
entity_id: group.entry_points
101+
to: 'off'
102+
- platform: state
103+
entity_id: group.garage_doors
104+
to: 'closed'
105+
timeout: "01:00:00"
106+
- choose:
107+
- conditions: "{{ was_off }}"
108+
sequence:
109+
- service: light.turn_off
110+
target:
111+
entity_id: light.living_room_lights

0 commit comments

Comments
 (0)