mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
alias: Master Bedroom Asleep
|
|
id: automation_master_bedroom_asleep
|
|
initial_state: "off"
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: sensor.pixel_10_pro_charger_type
|
|
to: "wireless"
|
|
|
|
- platform: state
|
|
entity_id: binary_sensor.master_bedroom_person_occupancy
|
|
to: "on"
|
|
for: "00:00:30"
|
|
|
|
- platform: state
|
|
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
|
|
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"
|
|
|
|
- alias: "After 9:00PM and before 4:00AM"
|
|
condition: time
|
|
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_10_pro_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"
|
|
|
|
action:
|
|
- action: input_boolean.turn_on
|
|
entity_id: input_boolean.master_bedroom_asleep
|