Files
fresh-home/automations/things/kitchen_fridge_door.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

64 lines
1.8 KiB
YAML

alias: Close Kitchen Fridge Door
id: close_kitchen_fridge_door
description: "Alert to close the kitchen fridge door"
trigger:
- platform: state
entity_id: binary_sensor.close_kitchen_fridge
from: "off"
to: "on"
- platform: homeassistant
event: start
condition:
- alias: "The home is occupied"
condition: state
entity_id: input_boolean.home_occupied
state: "on"
- alias: "Its not bedtime"
condition: state
entity_id: input_boolean.bedtime
state: "off"
action:
- repeat:
while: "{{ is_state('binary_sensor.close_kitchen_fridge','on') }}"
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.allow_announcements
state: "on"
- condition: not
conditions:
- condition: state
entity_id: sensor.pixel_7_audio_mode
state: in_communication
- condition: state
entity_id: sensor.pixel_7_audio_mode
state: in_call
- condition: state
entity_id: input_boolean.kids_bedtime
state: "on"
sequence:
- service: script.make_clever_announcement
data:
media_content_id: media-source://media_source/tts/kitchen_fridge_open_too_long.mp3
- choose:
- conditions:
- condition: state
entity_id: input_boolean.clint_home
state: "off"
sequence:
- service: notify.mobile_app_pixel_7
data:
message: The kitchen fridge has been open for too long!
- delay:
minutes: 5