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:
@@ -4,49 +4,49 @@ id: automation_master_bedroom_awake
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
to: 'off'
|
||||
for: '00:10:00'
|
||||
to: "off"
|
||||
for: "00:10:00"
|
||||
|
||||
condition:
|
||||
- alias: "Adult Home"
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_home
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.kristy_home
|
||||
state: "on"
|
||||
|
||||
- alias: "Before 9:00PM and after 4:00AM"
|
||||
condition: time
|
||||
before: '21:00:00'
|
||||
after: '04:00:00'
|
||||
before: "21:00:00"
|
||||
after: "04:00:00"
|
||||
|
||||
- alias: "No one on master bed"
|
||||
condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
- alias: "The boolean is currently on"
|
||||
condition: state
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: 'Manual'
|
||||
sequence:
|
||||
- service: input_select.select_option
|
||||
data:
|
||||
option: Auto
|
||||
target:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
- conditions:
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: Auto
|
||||
target:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
|
||||
Reference in New Issue
Block a user