mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
blue_room to boys_room
This commit is contained in:
@@ -6,26 +6,26 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.early_afternoon
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.early_afternoon
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Early Afternoon
|
||||
state: Early Afternoon
|
||||
|
||||
action:
|
||||
# - service: homeassistant.turn_on
|
||||
# - action: homeassistant.turn_on
|
||||
# entity_id:
|
||||
# - input_boolean.clint_needs_pm_meds
|
||||
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Early Afternoon
|
||||
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -5,22 +5,22 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.early_evening
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.early_evening
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Early Evening
|
||||
state: Early Evening
|
||||
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Early Evening
|
||||
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -5,29 +5,29 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.early_morning
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.early_morning
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Early Morning
|
||||
state: Early Morning
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Early Morning
|
||||
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
entity_id:
|
||||
- input_boolean.clint_needs_am_meds
|
||||
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- input_boolean.mail_checked
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -5,22 +5,22 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.evening
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.evening
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Evening
|
||||
state: Evening
|
||||
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Evening
|
||||
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -5,22 +5,22 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.late_afternoon
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.late_afternoon
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Late Afternoon
|
||||
state: Late Afternoon
|
||||
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Late Afternoon
|
||||
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -5,72 +5,72 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.late_evening
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.late_evening
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Late Evening
|
||||
state: Late Evening
|
||||
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Late Evening
|
||||
|
||||
# The kids should be asleep by now...
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.emmett_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.emmett_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.bridget_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.bridget_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.ebin_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.ebin_is_awake
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.nursery_hub
|
||||
state: 'playing'
|
||||
sequence:
|
||||
- service: media_player.turn_off
|
||||
entity_id: media_player.nursery_hub
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.girls_room_hub
|
||||
state: "playing"
|
||||
sequence:
|
||||
- action: media_player.turn_off
|
||||
entity_id: media_player.girls_room_hub
|
||||
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -5,115 +5,115 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.late_morning
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.late_morning
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Late Morning
|
||||
state: Late Morning
|
||||
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Late Morning
|
||||
|
||||
# Everyone should be awake by now...
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.clint_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.clint_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.emmett_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.emmett_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.bridget_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.bridget_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_in_bed
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.kristy_in_bed
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.kristy_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_in_bed
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_in_bed
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.kristy_in_bed
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.kristy_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.marshall_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.marshall_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.tess_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.tess_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.ebin_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.ebin_is_awake
|
||||
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -5,26 +5,25 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.morning
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.morning
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Morning
|
||||
state: Morning
|
||||
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Morning
|
||||
|
||||
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.nursery_asleep
|
||||
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -5,49 +5,49 @@ mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.night
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.night
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_select.time_of_day
|
||||
state: Night
|
||||
state: Night
|
||||
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.time_of_day
|
||||
option: Night
|
||||
|
||||
- delay: '00:00:30'
|
||||
- delay: "00:00:30"
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.marshall_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.marshall_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.marshall_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.marshall_in_bed
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.marshall_is_awake
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.tess_is_awake
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.tess_in_bed
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.tess_is_awake
|
||||
|
||||
@@ -4,7 +4,7 @@ trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data_template:
|
||||
entity_id: input_select.time_of_day
|
||||
option: >-
|
||||
@@ -26,4 +26,4 @@ action:
|
||||
Late Evening
|
||||
{% else %}
|
||||
Night
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user