mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
modernization
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
#Untracked?
|
||||
alias: Bridget Asleep
|
||||
id: automation_bridget_asleep
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
- trigger: state
|
||||
id: in_bed
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
to: 'on'
|
||||
for: '00:20:00'
|
||||
- platform: homeassistant
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
@@ -25,5 +24,5 @@ condition:
|
||||
id: "in_bed"
|
||||
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.bridget_is_awake
|
||||
|
||||
@@ -4,11 +4,11 @@ mode: restart
|
||||
#description:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- binary_sensor.bridget_home
|
||||
to: "off"
|
||||
- platform: time_pattern
|
||||
- trigger: time_pattern
|
||||
minutes: "/5"
|
||||
condition:
|
||||
- condition: state
|
||||
@@ -18,5 +18,5 @@ condition:
|
||||
entity_id: binary_sensor.bridget_home
|
||||
state: "off"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.bridget_home
|
||||
|
||||
@@ -4,11 +4,11 @@ mode: restart
|
||||
#description:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- binary_sensor.bridget_home
|
||||
to: "on"
|
||||
- platform: time_pattern
|
||||
- trigger: time_pattern
|
||||
minutes: "/5"
|
||||
condition:
|
||||
- condition: state
|
||||
@@ -18,7 +18,7 @@ condition:
|
||||
entity_id: binary_sensor.bridget_home
|
||||
state: "on"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.bridget_travelling
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.bridget_home
|
||||
|
||||
@@ -4,14 +4,14 @@ mode: restart
|
||||
#description:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
to: "on"
|
||||
for: "00:10:00"
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
to: "on"
|
||||
- platform: homeassistant
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
@@ -35,5 +35,5 @@ condition:
|
||||
# minutes: 5
|
||||
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.bridget_in_bed
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
initial_state: "on"
|
||||
alias: "Bridget Location Update"
|
||||
id: automation_bridget_location_update
|
||||
mode: restart
|
||||
@@ -6,7 +5,7 @@ mode: restart
|
||||
|
||||
trigger:
|
||||
# Bridget moved
|
||||
- platform: state
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_select.weaver_kids
|
||||
- input_select.bridget_status_dropdown
|
||||
|
||||
@@ -4,7 +4,7 @@ mode: restart
|
||||
#description:
|
||||
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
condition:
|
||||
- condition: state
|
||||
@@ -18,11 +18,11 @@ action:
|
||||
after: '20:00:00'
|
||||
before: '21:00:00'
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_in_bed
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_is_awake
|
||||
- conditions:
|
||||
@@ -30,19 +30,19 @@ action:
|
||||
after: '21:00:00'
|
||||
before: '06:00:00'
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_in_bed
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.bridget_is_awake
|
||||
default:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.bridget_in_bed
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.bridget_is_awake
|
||||
|
||||
|
||||
Reference in New Issue
Block a user