Files
fresh-home/automations/people/Kristy/kristy_in_bed.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

40 lines
937 B
YAML

alias: Kristy in Bed
id: automation_kristy_in_bed
trigger:
# Bed in master bedroom is occupied
- platform: state
entity_id: input_boolean.master_bed_occupied
to: 'on'
# Radio playing
- platform: state
entity_id: media_player.master_bedroom_clock
to: 'playing'
- platform: state
entity_id: media_player.master_bedroom_clock
to: 'idle'
# Light on
- platform: state
entity_id: light.master_bedroom_hue
to: 'on'
condition:
- condition: state
entity_id: input_boolean.kristy_in_bed
state: 'off'
- condition: state
entity_id: input_boolean.kristy_home
state: 'on'
- alias: "Its between 8:30PM and 5AM"
condition: time
after: '20:30:00'
before: '05:00:00'
- alias: "The bed is occupied"
condition: state
entity_id: input_boolean.master_bed_occupied
state: 'on'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.kristy_in_bed