Files
fresh-home/automations/people/bedtime.yaml
T
CeeWeasel d60b56b37a Refactor camera cards to use advanced-camera-card format
- Updated garage-card.yaml to use vertical-stack and advanced-camera-card structure.
- Refactored indoor-camera-cycler.yaml to include multiple cameras in advanced-camera-card format.
- Modified kitchen-card.yaml to align with new advanced-camera-card structure.
- Consolidated master-bedroom-card.yaml to include both left and right cameras in a single advanced-camera-card.
- Removed deprecated master-bedroom-left-card.yaml and master-bedroom-right-card.yaml files.
- Updated nursery-card.yaml to follow the new advanced-camera-card format.
- Refactored outdoor-camera-cycler.yaml to utilize advanced-camera-card for multiple outdoor cameras.
- Cleaned up view-ha-floorplan.yaml by removing commented-out code.
- Updated view-overview.yaml to remove unused plant entities.
- Corrected media source paths in wake_up_the_master_bedroom.yaml and take_meds.yaml scripts.
- Added new ESPHome configurations for bed presence sensors.
- Updated full-sized floorplan SVG with new IDs for bed presence sensors.
2025-07-28 20:52:16 -04:00

52 lines
1.3 KiB
YAML

initial_state: 'on'
alias: 'Bedtime'
id: automation_bedtime
trigger:
# - platform: homeassistant
# event: start
- platform: state
entity_id:
- input_boolean.kristy_in_bed
- input_boolean.clint_in_bed
to: 'on'
condition:
- condition: and
conditions:
- condition: or
conditions:
- condition: state
entity_id: input_boolean.kristy_home
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: input_boolean.kristy_in_bed
state: 'on'
- condition: state
entity_id: input_boolean.kristy_home
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_boolean.clint_home
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: input_boolean.clint_in_bed
state: 'on'
- condition: state
entity_id: input_boolean.clint_home
state: 'on'
action:
- service: input_boolean.turn_on
entity_id:
- input_boolean.bedtime
- input_boolean.teens_bedtime
- input_boolean.kids_bedtime
- service: input_select.select_option
target:
entity_id: input_select.automatic_light_profile
data:
option: Nightlight