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:
@@ -1,6 +1,6 @@
|
||||
alias: Master Bedroom Asleep
|
||||
id: automation_master_bedroom_asleep
|
||||
initial_state: 'off'
|
||||
initial_state: "off"
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
@@ -9,47 +9,45 @@ trigger:
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.master_bedroom_person_occupancy
|
||||
to: 'on'
|
||||
for: '00:00:30'
|
||||
to: "on"
|
||||
for: "00:00:30"
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
to: 'on'
|
||||
for: '00:00:05'
|
||||
to: "on"
|
||||
for: "00:00:05"
|
||||
|
||||
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: "After 9:00PM and before 4:00AM"
|
||||
condition: time
|
||||
after: '21:00:00'
|
||||
before: '04:00:00'
|
||||
after: "21:00:00"
|
||||
before: "04:00:00"
|
||||
|
||||
- alias: "Clint's phone charging or someone on master bed"
|
||||
condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
state: 'wireless'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
state: 'on'
|
||||
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_charger_type
|
||||
state: "wireless"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
||||
state: "on"
|
||||
|
||||
- alias: "The room is currently awake"
|
||||
condition: state
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.master_bedroom_asleep
|
||||
|
||||
|
||||
Reference in New Issue
Block a user