mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
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/local/Sounds/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/local/Sounds/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/local/Sounds/tts/meds_not_needed.mp3
|
|
media_content_type: "audio/mpeg"
|