mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -15,8 +15,8 @@ trigger:
|
||||
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.black_bed_occupied
|
||||
- binary_sensor.white_bed_occupied
|
||||
- binary_sensor.emmetts_bed
|
||||
- binary_sensor.bridgets_bed
|
||||
to: "off"
|
||||
for: "00:05:00"
|
||||
|
||||
@@ -46,10 +46,10 @@ condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "unavailable"
|
||||
- condition: or
|
||||
conditions:
|
||||
@@ -67,10 +67,10 @@ condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "unavailable"
|
||||
- condition: or
|
||||
conditions:
|
||||
@@ -88,21 +88,21 @@ condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "unavailable"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "unavailable"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.kids_bedtime
|
||||
- input_boolean.kids_asleep
|
||||
@@ -118,15 +118,15 @@ action:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "unavailable"
|
||||
sequence:
|
||||
- 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
|
||||
|
||||
- choose:
|
||||
@@ -140,15 +140,15 @@ action:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "unavailable"
|
||||
sequence:
|
||||
- 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
|
||||
|
||||
- choose:
|
||||
@@ -162,42 +162,34 @@ action:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "unavailable"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "unavailable"
|
||||
sequence:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.bridget_is_awake
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.ebin_is_awake
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.black_bed_occupied
|
||||
state: "unavailable"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.white_bed_occupied
|
||||
entity_id: binary_sensor.bridgets_bed
|
||||
state: "unavailable"
|
||||
- condition: not
|
||||
conditions:
|
||||
@@ -208,7 +200,31 @@ action:
|
||||
entity_id: input_select.house
|
||||
state: "Away"
|
||||
sequence:
|
||||
- service: input_select.select_option
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.nursery_mode
|
||||
option: Auto
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.emmetts_bed
|
||||
state: "unavailable"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.boys_room_mode
|
||||
state: "Manual"
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: "Away"
|
||||
sequence:
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
entity_id: input_select.boys_room_mode
|
||||
option: Auto
|
||||
|
||||
Reference in New Issue
Block a user