Files
fresh-home/automations/rooms/master_bedroom/master_bedroom_asleep.yaml
T
CeeWeasel 4e0e55ac3c Refactor bed occupancy sensors and related automations
- Updated nursery automation to use input booleans for bed occupancy instead of binary sensors.
- Changed conditions in nursery automation to improve readability and consistency.
- Modified binary sensor configurations for master bedroom and nursery to use input booleans.
- Removed unused input number configurations related to master bed load cells.
- Updated UI configurations to reflect changes in entity types from binary sensors to input booleans.
- Cleaned up camera view configurations and adjusted styles for better layout.
- Removed deprecated master bed YAML configuration and archived it for future reference.
- Enhanced ESPHome configurations for white and black beds, including improved logging and diagnostics.
2025-07-19 13:37:45 -04:00

56 lines
1.2 KiB
YAML

alias: Master Bedroom Asleep
id: automation_master_bedroom_asleep
initial_state: 'off'
trigger:
- platform: state
entity_id: sensor.pixel_7_charger_type
to: "wireless"
- platform: state
entity_id: binary_sensor.master_bedroom_person_occupancy
to: 'on'
for: '00:00:30'
- platform: state
entity_id: input_boolean.master_bed_occupied
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_7_charger_type
state: 'wireless'
- condition: state
entity_id: input_boolean.master_bed_occupied
state: 'on'
- alias: "The room is currently awake"
condition: state
entity_id: input_boolean.master_bedroom_asleep
state: 'off'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.master_bedroom_asleep