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:
@@ -6,8 +6,8 @@ trigger:
|
||||
- platform: state
|
||||
id: in_bed
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
to: 'on'
|
||||
for: '00:20:00'
|
||||
to: "on"
|
||||
for: "00:20:00"
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
@@ -16,13 +16,13 @@ condition:
|
||||
entity_id:
|
||||
- input_boolean.emmett_home
|
||||
- input_boolean.kids_bedtime
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_is_awake
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: trigger
|
||||
id: "in_bed"
|
||||
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.emmett_is_awake
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
alias: 'Emmett Away'
|
||||
alias: "Emmett Away"
|
||||
id: automation_emmett_away
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.emmett_home
|
||||
to: 'off'
|
||||
to: "off"
|
||||
- platform: time_pattern
|
||||
minutes: "/5"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.emmett_home
|
||||
state: 'off'
|
||||
state: "off"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.emmett_home
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
alias: 'Emmett Home'
|
||||
alias: "Emmett Home"
|
||||
id: automation_emmett_home
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.emmett_home
|
||||
to: 'on'
|
||||
to: "on"
|
||||
- platform: time_pattern
|
||||
minutes: "/5"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.emmett_home
|
||||
state: 'on'
|
||||
state: "on"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.emmett_travelling
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.emmett_home
|
||||
|
||||
@@ -5,11 +5,11 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
to: 'on'
|
||||
for: '00:10:00'
|
||||
to: "on"
|
||||
for: "00:10:00"
|
||||
- platform: state
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
to: 'on'
|
||||
to: "on"
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
@@ -18,15 +18,15 @@ condition:
|
||||
entity_id:
|
||||
- input_boolean.emmett_home
|
||||
- input_boolean.kids_bedtime
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id:
|
||||
- binary_sensor.white_bed_occupied
|
||||
state: 'on'
|
||||
for: '00:10:00'
|
||||
state: "on"
|
||||
for: "00:10:00"
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
state: 'off'
|
||||
state: "off"
|
||||
#- condition: state
|
||||
# entity_id: binary_sensor.black_bed_occupied
|
||||
# state: 'on'
|
||||
@@ -34,5 +34,5 @@ condition:
|
||||
# minutes: 5
|
||||
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.emmett_in_bed
|
||||
|
||||
@@ -8,39 +8,39 @@ trigger:
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.emmett_home
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: '21:00:00'
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.emmett_in_bed
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: "20:00:00"
|
||||
before: "21:00:00"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.emmett_in_bed
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.emmett_is_awake
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '21:00:00'
|
||||
before: '06:00:00'
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.emmett_in_bed
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.emmett_is_awake
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: "21:00:00"
|
||||
before: "06:00:00"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.emmett_in_bed
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.emmett_is_awake
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.emmett_is_awake
|
||||
default:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.emmett_in_bed
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.emmett_is_awake
|
||||
- input_boolean.emmett_is_awake
|
||||
|
||||
Reference in New Issue
Block a user