mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
d60b56b37a
- 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.
47 lines
1.6 KiB
YAML
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"
|