Files
fresh-home/scripts/master_bedroom/wake_up_the_master_bedroom.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

67 lines
1.9 KiB
YAML

alias: Wake Up the Master Bedroom
mode: single
icon: mdi:alarm
sequence:
- repeat:
while:
- condition: state
entity_id: binary_sensor.bed_presence_c175a4_bed_occupied_either
state: "on"
sequence:
- variables:
volume: "{{ 0.5 + (repeat.index * 0.05) }}"
- action: media_player.volume_set
target:
entity_id: media_player.master_bedroom_clock
data:
volume_level: "{{iif(volume>1,1,volume)}}"
- action: google_generative_ai_conversation.generate_content
metadata: {}
data:
prompt: Say something to help me wake up and get ready for work. Use up to two sentences.
response_variable: response
- action: media_player.play_media
data:
media_content_id: media-source://media_source/alarms/Alarm_Clock.mp3
media_content_type: music
target:
entity_id: media_player.master_bedroom_clock
- delay:
hours: 0
minutes: 0
seconds: 12
milliseconds: 0
- action: tts.speak
target:
entity_id: tts.google_translate_en_com
data:
media_player_entity_id: media_player.master_bedroom_clock
message: "{{ response.text }}"
# - action: tts.speak
# target:
# entity_id: tts.google_ai_tts
# data:
# cache: false
# message: "Wake the user in a flirtacious and seductive voice: {{ response.text }}"
# media_player_entity_id: media_player.great_room
# options:
# voice: Callirrhoe
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- service: input_select.select_option
data:
option: Auto
target:
entity_id: input_select.master_bedroom_mode