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:
@@ -10,18 +10,18 @@ trigger:
|
||||
event: start
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.clint_work_from_home
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: input_boolean.clint_work_from_home
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.clint_work_from_home
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.clint_work_from_home
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.clint_work_from_home
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.clint_work_from_home
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.clint_work_from_home
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.clint_work_from_home
|
||||
|
||||
@@ -2,26 +2,25 @@ alias: Clint Asleep
|
||||
id: automation_clint_asleep
|
||||
#description:
|
||||
|
||||
initial_state: 'on'
|
||||
initial_state: "on"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
to: 'on'
|
||||
to: "on"
|
||||
for:
|
||||
minutes: 15
|
||||
condition:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_is_awake
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
- condition: time
|
||||
after: '21:00:00'
|
||||
before: '04:00:00'
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_is_awake
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- condition: time
|
||||
after: "21:00:00"
|
||||
before: "04:00:00"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.clint_is_awake
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@ id: automation_clint_at_work
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
to: 'WMU'
|
||||
to: "WMU"
|
||||
action:
|
||||
- service: automation.turn_on
|
||||
- action: automation.turn_on
|
||||
entity_id: automation.clint_home_after_work
|
||||
- service: input_text.set_value
|
||||
- action: input_text.set_value
|
||||
data:
|
||||
entity_id: input_text.person_clint
|
||||
value: at work
|
||||
|
||||
@@ -6,11 +6,11 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
to: 'off'
|
||||
for: '00:00:30'
|
||||
to: "off"
|
||||
for: "00:00:30"
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.clint_is_awake
|
||||
|
||||
- service: script.turn_on
|
||||
- action: script.turn_on
|
||||
entity_id: script.clint_travel_sensor
|
||||
|
||||
@@ -9,32 +9,31 @@ trigger:
|
||||
- device_tracker.pixel_7
|
||||
- person.clint
|
||||
- group.person_clint
|
||||
from: 'home'
|
||||
from: "home"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: person.clint
|
||||
state: 'home'
|
||||
- condition: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
state: 'home'
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: person.clint
|
||||
state: 'home'
|
||||
sequence:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "home"
|
||||
- condition: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
state: "home"
|
||||
|
||||
- delay: '00:00:30'
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: person.clint
|
||||
state: "home"
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.clint_home
|
||||
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -10,7 +10,7 @@ trigger:
|
||||
- person.clint
|
||||
- group.person_clint
|
||||
- device_tracker.pixel_7_wifi
|
||||
to: 'home'
|
||||
to: "home"
|
||||
|
||||
- platform: state
|
||||
id: car_home
|
||||
@@ -18,44 +18,41 @@ trigger:
|
||||
- binary_sensor.gray_suv_east_side
|
||||
- binary_sensor.gray_suv_west_side
|
||||
- group.traverse
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: numeric_state
|
||||
entity_id: group.person_clint
|
||||
above: 0
|
||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
state: 'DreamWeaver'
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
state: 'DreamIoT-2G'
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
state: 'pozfam'
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
state: 'pozfam-2.4G'
|
||||
- condition: trigger
|
||||
id: "car_home"
|
||||
sequence:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.clint_travelling
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.clint_home
|
||||
- service: automation.turn_on
|
||||
entity_id: automation.clint_at_work
|
||||
|
||||
- delay: '00:00:30'
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: numeric_state
|
||||
entity_id: group.person_clint
|
||||
above: 0
|
||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_clint', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
state: "DreamWeaver"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
state: "DreamIoT-2G"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
state: "pozfam"
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_wifi_connection
|
||||
state: "pozfam-2.4G"
|
||||
- condition: trigger
|
||||
id: "car_home"
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.clint_travelling
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.clint_home
|
||||
- action: automation.turn_on
|
||||
entity_id: automation.clint_at_work
|
||||
|
||||
- delay: "00:00:30"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
initial_state: 'off'
|
||||
alias: 'clint home after work'
|
||||
initial_state: "off"
|
||||
alias: "clint home after work"
|
||||
id: automation_home_after_work
|
||||
#description:
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
to: 'home'
|
||||
to: "home"
|
||||
for:
|
||||
minutes: 10
|
||||
condition:
|
||||
@@ -13,17 +13,17 @@ condition:
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.notify_clint_work
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: time
|
||||
after: '15:00:00'
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- condition: time
|
||||
after: "15:00:00"
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: automation.clint_home_after_work
|
||||
|
||||
@@ -6,22 +6,22 @@ trigger:
|
||||
# Bed in master bedroom is occupied
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
to: 'on'
|
||||
to: "on"
|
||||
# Radio playing
|
||||
- platform: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
to: 'playing'
|
||||
to: "playing"
|
||||
- platform: state
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
to: 'idle'
|
||||
to: "idle"
|
||||
# Light on
|
||||
- platform: state
|
||||
entity_id: light.master_bedroom_hue
|
||||
to: 'on'
|
||||
to: "on"
|
||||
# Front room unoccupied for at least 5 minutes
|
||||
- platform: state
|
||||
entity_id: input_boolean.front_room_occupied
|
||||
to: 'off'
|
||||
to: "off"
|
||||
for:
|
||||
minutes: 5
|
||||
# Something gets plugged in
|
||||
@@ -33,39 +33,38 @@ trigger:
|
||||
to: "wireless"
|
||||
- platform: state
|
||||
entity_id: input_boolean.clint_tablet_charging
|
||||
to: 'on'
|
||||
to: "on"
|
||||
condition:
|
||||
- alias: "An adult is home and not in bed"
|
||||
condition: or
|
||||
conditions:
|
||||
- alias: "Clint is home and not in bed"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
- alias: "Kristy is home and not in bed"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_in_bed
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_home
|
||||
state: 'on'
|
||||
- alias: "Clint is home and not in bed"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- alias: "Kristy is home and not in bed"
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_in_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_home
|
||||
state: "on"
|
||||
- alias: "Its between 8:30PM and 5AM"
|
||||
condition: time
|
||||
after: '20:30:00'
|
||||
before: '05:00:00'
|
||||
after: "20:30:00"
|
||||
before: "05:00:00"
|
||||
|
||||
- alias: "The bed is occupied"
|
||||
condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
state: 'on'
|
||||
state: "on"
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
initial_state: 'on'
|
||||
alias: 'Clint Location Update'
|
||||
initial_state: "on"
|
||||
alias: "Clint Location Update"
|
||||
id: automation_clint_location_update
|
||||
mode: restart
|
||||
#description:
|
||||
@@ -14,8 +14,8 @@ trigger:
|
||||
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
|
||||
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
||||
|
||||
action:
|
||||
- service: script.turn_on
|
||||
- action: script.turn_on
|
||||
entity_id: script.clint_travel_sensor
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
alias: Clint Travelling
|
||||
id: automation_clint_travelling
|
||||
initial_state: 'on'
|
||||
initial_state: "on"
|
||||
#description:
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
- platform: time
|
||||
at: '21:00:00'
|
||||
at: "21:00:00"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "off"
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.clint_travelling
|
||||
|
||||
@@ -1,45 +1,44 @@
|
||||
alias: 'Clint Up'
|
||||
alias: "Clint Up"
|
||||
id: automation_clint_up
|
||||
initial_state: 'on'
|
||||
initial_state: "on"
|
||||
#description:
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.great_room
|
||||
to: 'playing'
|
||||
to: "playing"
|
||||
- platform: state
|
||||
entity_id: media_player.great_room
|
||||
to: 'idle'
|
||||
to: "idle"
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
to: 'off'
|
||||
for: '00:05:00'
|
||||
to: "off"
|
||||
for: "00:05:00"
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.master_bedroom_door_contact
|
||||
- binary_sensor.master_suite_door_contact
|
||||
to: 'on'
|
||||
to: "on"
|
||||
- platform: state
|
||||
entity_id: binary_sensor.pixel_7_is_charging
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
for: '00:10:00'
|
||||
from: "on"
|
||||
to: "off"
|
||||
for: "00:10:00"
|
||||
condition:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
state: 'on'
|
||||
- condition: time
|
||||
after: '04:00:00'
|
||||
before: '22:00:00'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
state: 'off'
|
||||
for: '00:01:00'
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
state: "on"
|
||||
- condition: time
|
||||
after: "04:00:00"
|
||||
before: "22:00:00"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
state: "off"
|
||||
for: "00:01:00"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.clint_in_bed
|
||||
|
||||
|
||||
@@ -6,33 +6,33 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.morning
|
||||
to: 'on'
|
||||
to: "on"
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_right
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.morning
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
option: 'Auto'
|
||||
option: "Auto"
|
||||
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
data:
|
||||
entity_id: light.master_bedroom_hue
|
||||
|
||||
- delay: '00:30:00'
|
||||
- delay: "00:30:00"
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
initial_state: 'on'
|
||||
alias: 'Clint changing zones'
|
||||
initial_state: "on"
|
||||
alias: "Clint changing zones"
|
||||
id: automation_clint_changing_zones
|
||||
#description:
|
||||
trigger:
|
||||
# Been away for a few minutes
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
to: 'not_home'
|
||||
for: '00:05:00'
|
||||
to: "not_home"
|
||||
for: "00:05:00"
|
||||
# Arrived in a zone
|
||||
- platform: state
|
||||
entity_id: device_tracker.pixel_7
|
||||
from: 'not_home'
|
||||
from: "not_home"
|
||||
condition:
|
||||
# Been at least 5 minutes
|
||||
- condition: template
|
||||
value_template: "{{ ( as_timestamp(now()) - as_timestamp(state_attr('script.clint_traveltime','last_triggered'))|float)|float > 300 }}"
|
||||
action:
|
||||
- service: script.clint_traveltime
|
||||
- action: script.clint_traveltime
|
||||
|
||||
@@ -9,39 +9,39 @@ trigger:
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '23:30:00'
|
||||
before: '00:00:00'
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.clint_in_bed
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: "23:30:00"
|
||||
before: "00:00:00"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.clint_in_bed
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.clint_is_awake
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '00:00:00'
|
||||
before: '06:00:00'
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.clint_in_bed
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.clint_is_awake
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: "00:00:00"
|
||||
before: "06:00:00"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.clint_in_bed
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.clint_is_awake
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.clint_is_awake
|
||||
default:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.clint_in_bed
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.clint_is_awake
|
||||
- input_boolean.clint_is_awake
|
||||
|
||||
@@ -5,38 +5,38 @@ id: automation_set_clint_next_alarm
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
to: 'off'
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
- platform: time
|
||||
at: '01:00:00'
|
||||
at: "01:00:00"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
data:
|
||||
time: "07:00:00"
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
data:
|
||||
time: "07:00:00"
|
||||
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
data:
|
||||
time: "05:30:00"
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
data:
|
||||
time: "05:30:00"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
alias: 'Wake Clint'
|
||||
alias: "Wake Clint"
|
||||
|
||||
id: automation_wake_clint
|
||||
initial_state: on
|
||||
@@ -9,7 +9,7 @@ trigger:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
offset: "-300"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
data:
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
|
||||
@@ -19,7 +19,7 @@ action:
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
volume_level: 0.50
|
||||
@@ -28,18 +28,18 @@ action:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: 'off'
|
||||
state: "off"
|
||||
sequence:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: Energize
|
||||
target:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: Energize
|
||||
target:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
|
||||
- service: script.wake_up_the_master_bedroom
|
||||
- action: script.wake_up_the_master_bedroom
|
||||
|
||||
Reference in New Issue
Block a user