mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
117 lines
3.3 KiB
YAML
117 lines
3.3 KiB
YAML
alias: Great Room TV Playing
|
|
id: automation_great_room_tv_playing
|
|
trigger:
|
|
- platform: state
|
|
entity_id: media_player.downstairs_roku
|
|
to: "playing"
|
|
|
|
- platform: state
|
|
entity_id: input_select.time_of_day
|
|
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
- platform: event
|
|
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')}}"
|
|
|
|
- condition: or
|
|
conditions:
|
|
- 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:
|
|
- 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:
|
|
- action: input_number.set_value
|
|
data:
|
|
value: 55
|
|
target:
|
|
entity_id: input_number.great_room_light_cycle_brightness
|
|
- action: input_number.set_value
|
|
data:
|
|
value: 30
|
|
target:
|
|
entity_id: input_number.great_room_light_cycle_transition
|
|
- action: input_select.select_option
|
|
data:
|
|
option: Silver Swirl
|
|
target:
|
|
entity_id: input_select.great_room_color_set
|
|
- action: input_boolean.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.great_room_cycle_same
|
|
- action: input_boolean.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id: input_boolean.great_room_light_cycle
|
|
#b 15
|
|
#t 30
|
|
#Silver Swirl
|
|
#
|