File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 - service : scene.turn_on
2525 entity_id : scene.front_full_brightness
2626
27- - choose :
28- - conditions : >
29- {{ states.group.entry_points.state == 'on' or
30- states.group.garage_doors.state != 'closed' }}
31- sequence:
32- - service: scene.turn_on
33- entity_id: scene.Red_living_Room
34- default :
35- - service : scene.turn_on
36- entity_id : scene.tv_time
37-
3827 - service : >
3928 {% set hour=states("sensor.time").split(':')[0] | int %}
4029 {% if hour >= 5 and hour <= 9 and states.group.bed.state == 'on'%}
5039 - wait_template : " {{ is_state('group.entry_points', 'off') }}"
5140 - wait_template : " {{ is_state('group.garage_doors', 'closed') }}"
5241 - service : script.monthly_color_scene
53-
54- - choose :
55- - conditions : >
56- {{ states.group.entry_points.state == 'on' or
57- states.group.garage_doors.state != 'closed' }}
58- sequence:
59- - service: scene.turn_on
60- entity_id: scene.Red_living_Room
61- default :
62- - service : scene.turn_on
63- entity_id : scene.tv_time
Original file line number Diff line number Diff line change 7777 data :
7878 kelvin : 2700
7979 brightness : 200
80+
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
Original file line number Diff line number Diff line change 11# #####################################################################
2- # @CCOSTAN
3- # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
4- # TV Time at sunset or 8pm. Whichever is later.
2+ # config/automation/tv_time_on_and_off.yaml
3+ # TV Time: soften house lights when living room media starts after 8pm/sunset.
4+ # https://github.com/CCOSTAN/Home-AssistantConfig
55# #####################################################################
66
77- alias : TV Time
88 id : 6e59d312-661f-40da-bb08-416f2e86b566
99 trigger :
10- - platform : state
11- entity_id : input_boolean.TV_time
12- to : ' on'
13- from : ' off'
14- - platform : state
15- entity_id : sun.sun
16- to : ' below_horizon'
17- from : ' above_horizon'
1810 - platform : state
1911 entity_id : media_player.living_room_ultra
2012 to : ' playing'
21- - platform : time
22- at : ' 20:00:00'
23-
2413 condition :
2514 condition : and
2615 conditions :
4029 state : ' playing'
4130
4231 action :
43- - service : input_boolean.turn_off
44- entity_id : input_boolean.tv_time
4532
4633 - service : light.turn_off
4734 entity_id :
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ meal_time:
66 name : Meal Time
77 initial : off
88
9- tv_time :
10- name : TV Time
11- initial : off
12-
139work :
1410 name : Work
1511 initial : off
Original file line number Diff line number Diff line change @@ -352,10 +352,6 @@ automation:
352352 entity_id : group.family
353353 to : not_home
354354 for : 00:05:00
355- - platform : state
356- entity_id : input_boolean.tv_time
357- to : ' on'
358- from : ' off'
359355
360356 condition :
361357 condition : or
Original file line number Diff line number Diff line change 11- name : TV Time
22 entities :
33 light.m1_front_left :
4- state : off
4+ state : on
5+ rgb_color : &gold [255,223,0]
6+ brightness : 100
57 light.m1_front_right :
6- state : off
8+ state : on
9+ rgb_color : *gold
10+ brightness : 100
711 light.main_slider :
812 state : off
913 light.m1_back_right :
1014 state : on
11- rgb_color : & gold [255,223,0]
15+ rgb_color : * gold
1216 brightness : 50
1317 light.m1_back_left :
1418 state : on
You can’t perform that action at this time.
0 commit comments