mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -3,7 +3,7 @@ id: automation_great_room_tv_playing
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.downstairs_roku
|
||||
to: 'playing'
|
||||
to: "playing"
|
||||
|
||||
- platform: state
|
||||
entity_id: input_select.time_of_day
|
||||
@@ -15,102 +15,101 @@ trigger:
|
||||
event_type: automation_reloaded
|
||||
|
||||
condition:
|
||||
- alias: Something besides YouTube is playing
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
- alias: "The kids aren't watching YouTube"
|
||||
condition: state
|
||||
entity_id: media_player.downstairs_roku
|
||||
attribute: source
|
||||
state: 'YouTube'
|
||||
- condition: state
|
||||
entity_id: media_player.downstairs_roku
|
||||
state: 'playing'
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: light.great_room_hue
|
||||
state: 'on'
|
||||
- alias: It is later in the day/evening
|
||||
condition: template
|
||||
value_template: "{{ is_state('binary_sensor.early_evening','on') or is_state('binary_sensor.evening','on') or is_state('binary_sensor.late_evening','on') or is_state('binary_sensor.night','on') or is_state('binary_sensor.early_morning','on') or is_state('binary_sensor.late_afternoon','on')}}"
|
||||
- alias: Something besides YouTube is playing
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
- alias: "The kids aren't watching YouTube"
|
||||
condition: state
|
||||
entity_id: media_player.downstairs_roku
|
||||
attribute: source
|
||||
state: "YouTube"
|
||||
- condition: state
|
||||
entity_id: media_player.downstairs_roku
|
||||
state: "playing"
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: light.great_room_hue
|
||||
state: "on"
|
||||
- alias: It is later in the day/evening
|
||||
condition: template
|
||||
value_template: "{{ is_state('binary_sensor.early_evening','on') or is_state('binary_sensor.evening','on') or is_state('binary_sensor.late_evening','on') or is_state('binary_sensor.night','on') or is_state('binary_sensor.early_morning','on') or is_state('binary_sensor.late_afternoon','on')}}"
|
||||
|
||||
- condition: or
|
||||
conditions:
|
||||
- alias: "Kids home and awake"
|
||||
condition: and
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_away
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_asleep
|
||||
state: 'off'
|
||||
- alias: "Kids home and asleep"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_away
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_asleep
|
||||
state: 'on'
|
||||
- alias: "Kids away"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_away
|
||||
state: 'on'
|
||||
- alias: "Kids home and awake"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_away
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_asleep
|
||||
state: "off"
|
||||
- alias: "Kids home and asleep"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_away
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_asleep
|
||||
state: "on"
|
||||
- alias: "Kids away"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_away
|
||||
state: "on"
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: 'Late Afternoon'
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
data:
|
||||
value: 100
|
||||
target:
|
||||
entity_id: input_number.great_room_light_cycle_brightness
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: 'Early Evening'
|
||||
sequence:
|
||||
- service: input_number.set_value
|
||||
data:
|
||||
value: 75
|
||||
target:
|
||||
entity_id: input_number.great_room_light_cycle_brightness
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: "Late Afternoon"
|
||||
sequence:
|
||||
- action: input_number.set_value
|
||||
data:
|
||||
value: 100
|
||||
target:
|
||||
entity_id: input_number.great_room_light_cycle_brightness
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: "Early Evening"
|
||||
sequence:
|
||||
- action: input_number.set_value
|
||||
data:
|
||||
value: 75
|
||||
target:
|
||||
entity_id: input_number.great_room_light_cycle_brightness
|
||||
default:
|
||||
- service: input_number.set_value
|
||||
- action: input_number.set_value
|
||||
data:
|
||||
value: 55
|
||||
target:
|
||||
entity_id: input_number.great_room_light_cycle_brightness
|
||||
- service: input_number.set_value
|
||||
- action: input_number.set_value
|
||||
data:
|
||||
value: 30
|
||||
target:
|
||||
entity_id: input_number.great_room_light_cycle_transition
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: Silver Swirl
|
||||
target:
|
||||
entity_id: input_select.great_room_color_set
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.great_room_cycle_same
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.great_room_light_cycle
|
||||
|
||||
#b 15
|
||||
#t 30
|
||||
#Silver Swirl
|
||||
|
||||
Reference in New Issue
Block a user