Files
fresh-home/scripts/people/clint/take_meds.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

47 lines
1.6 KiB
YAML

alias: Take Meds
sequence:
- alias: "Check the input_booleans and react accordingly"
choose:
- conditions:
- alias: "Morning meds needed"
condition: state
entity_id: input_boolean.clint_needs_am_meds
state: "on"
sequence:
- alias: "Turn off AM meds"
service: input_boolean.turn_off
target:
entity_id: input_boolean.clint_needs_am_meds
- service: media_player.play_media
target:
entity_id:
- media_player.bathroom_mini
data:
media_content_id: media-source://media_source/tts/taking_morning_meds.mp3
media_content_type: "audio/mpeg"
- conditions:
- alias: "Afternoon meds needed"
condition: state
entity_id: input_boolean.clint_needs_pm_meds
state: "on"
sequence:
- alias: "Turn off PM meds"
service: input_boolean.turn_off
target:
entity_id: input_boolean.clint_needs_pm_meds
- service: media_player.play_media
target:
entity_id:
- media_player.bathroom_mini
data:
media_content_id: media-source://media_source/tts/taking_afternoon_meds.mp3
media_content_type: "audio/mpeg"
default:
- service: media_player.play_media
target:
entity_id:
- media_player.bathroom_mini
data:
media_content_id: media-source://media_source/tts/meds_not_needed.mp3
media_content_type: "audio/mpeg"