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
|
alias: Bridget Asleep
|
||||||
id: automation_bridget_asleep
|
id: automation_bridget_asleep
|
||||||
mode: restart
|
mode: restart
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- trigger: state
|
||||||
id: in_bed
|
id: in_bed
|
||||||
entity_id: input_boolean.bridget_in_bed
|
entity_id: input_boolean.bridget_in_bed
|
||||||
to: 'on'
|
to: 'on'
|
||||||
for: '00:20:00'
|
for: '00:20:00'
|
||||||
- platform: homeassistant
|
- trigger: homeassistant
|
||||||
event: start
|
event: start
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
@@ -25,5 +24,5 @@ condition:
|
|||||||
id: "in_bed"
|
id: "in_bed"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- action: input_boolean.turn_off
|
||||||
entity_id: input_boolean.bridget_is_awake
|
entity_id: input_boolean.bridget_is_awake
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ mode: restart
|
|||||||
#description:
|
#description:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- trigger: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- binary_sensor.bridget_home
|
- binary_sensor.bridget_home
|
||||||
to: "off"
|
to: "off"
|
||||||
- platform: time_pattern
|
- trigger: time_pattern
|
||||||
minutes: "/5"
|
minutes: "/5"
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
@@ -18,5 +18,5 @@ condition:
|
|||||||
entity_id: binary_sensor.bridget_home
|
entity_id: binary_sensor.bridget_home
|
||||||
state: "off"
|
state: "off"
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- action: input_boolean.turn_off
|
||||||
entity_id: input_boolean.bridget_home
|
entity_id: input_boolean.bridget_home
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ mode: restart
|
|||||||
#description:
|
#description:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- trigger: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- binary_sensor.bridget_home
|
- binary_sensor.bridget_home
|
||||||
to: "on"
|
to: "on"
|
||||||
- platform: time_pattern
|
- trigger: time_pattern
|
||||||
minutes: "/5"
|
minutes: "/5"
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
@@ -18,7 +18,7 @@ condition:
|
|||||||
entity_id: binary_sensor.bridget_home
|
entity_id: binary_sensor.bridget_home
|
||||||
state: "on"
|
state: "on"
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- action: input_boolean.turn_off
|
||||||
entity_id: input_boolean.bridget_travelling
|
entity_id: input_boolean.bridget_travelling
|
||||||
- service: input_boolean.turn_on
|
- action: input_boolean.turn_on
|
||||||
entity_id: input_boolean.bridget_home
|
entity_id: input_boolean.bridget_home
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ mode: restart
|
|||||||
#description:
|
#description:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- trigger: state
|
||||||
entity_id: binary_sensor.white_bed_occupied
|
entity_id: binary_sensor.white_bed_occupied
|
||||||
to: "on"
|
to: "on"
|
||||||
for: "00:10:00"
|
for: "00:10:00"
|
||||||
- platform: state
|
- trigger: state
|
||||||
entity_id: input_boolean.kids_bedtime
|
entity_id: input_boolean.kids_bedtime
|
||||||
to: "on"
|
to: "on"
|
||||||
- platform: homeassistant
|
- trigger: homeassistant
|
||||||
event: start
|
event: start
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
@@ -35,5 +35,5 @@ condition:
|
|||||||
# minutes: 5
|
# minutes: 5
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- action: homeassistant.turn_on
|
||||||
entity_id: input_boolean.bridget_in_bed
|
entity_id: input_boolean.bridget_in_bed
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
initial_state: "on"
|
|
||||||
alias: "Bridget Location Update"
|
alias: "Bridget Location Update"
|
||||||
id: automation_bridget_location_update
|
id: automation_bridget_location_update
|
||||||
mode: restart
|
mode: restart
|
||||||
@@ -6,7 +5,7 @@ mode: restart
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
# Bridget moved
|
# Bridget moved
|
||||||
- platform: state
|
- trigger: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_select.weaver_kids
|
- input_select.weaver_kids
|
||||||
- input_select.bridget_status_dropdown
|
- input_select.bridget_status_dropdown
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ mode: restart
|
|||||||
#description:
|
#description:
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: homeassistant
|
- trigger: homeassistant
|
||||||
event: start
|
event: start
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
@@ -18,11 +18,11 @@ action:
|
|||||||
after: '20:00:00'
|
after: '20:00:00'
|
||||||
before: '21:00:00'
|
before: '21:00:00'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_on
|
- action: input_boolean.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.bridget_in_bed
|
- input_boolean.bridget_in_bed
|
||||||
|
|
||||||
- service: input_boolean.turn_on
|
- action: input_boolean.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.bridget_is_awake
|
- input_boolean.bridget_is_awake
|
||||||
- conditions:
|
- conditions:
|
||||||
@@ -30,19 +30,19 @@ action:
|
|||||||
after: '21:00:00'
|
after: '21:00:00'
|
||||||
before: '06:00:00'
|
before: '06:00:00'
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_on
|
- action: input_boolean.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.bridget_in_bed
|
- input_boolean.bridget_in_bed
|
||||||
|
|
||||||
- service: input_boolean.turn_off
|
- action: input_boolean.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.bridget_is_awake
|
- input_boolean.bridget_is_awake
|
||||||
default:
|
default:
|
||||||
- service: input_boolean.turn_off
|
- action: input_boolean.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.bridget_in_bed
|
- input_boolean.bridget_in_bed
|
||||||
|
|
||||||
- service: input_boolean.turn_on
|
- action: input_boolean.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.bridget_is_awake
|
- input_boolean.bridget_is_awake
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ sequence:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: input_text.person_emmett
|
entity_id: input_text.person_emmett
|
||||||
value: >-
|
value: >-
|
||||||
{% if is_state('input_boolean.bridget_home', 'on') %}
|
{% if is_state('input_boolean.emmett_home', 'on') %}
|
||||||
{% if is_state('input_boolean.bridget_is_awake','off') %}
|
{% if is_state('input_boolean.emmett_is_awake','off') %}
|
||||||
Sleeping
|
Sleeping
|
||||||
{% elif is_state('input_boolean.bridget_in_bed','on') %}
|
{% elif is_state('input_boolean.emmett_in_bed','on') %}
|
||||||
In bed
|
In bed
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ states("input_select.bridget_status_dropdown") }}
|
{{ states("input_select.emmett_status_dropdown") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif is_state('binary_sensor.have_custody', 'off') or is_state('input_select.weaver_kids', 'Away') %}
|
{% elif is_state('binary_sensor.have_custody', 'off') or is_state('input_select.weaver_kids', 'Away') %}
|
||||||
With Sarah
|
With Sarah
|
||||||
|
|||||||
Reference in New Issue
Block a user