using google speakers and MA, I am running into an issue with my automations gradually becoming louder. I want the speakers to set the volume to a specific level not increase the lvl by that much. Below is the script for one automation.
I have the MA player controls set to native. What can I do so when my automations go off no matter what the current or last setting of the speakers the volume will go to the specific level?
'''
sequence:
- action: media_player.turn_on
data: {}
target:
entity_id:
- media_player.bedrooms_only_ma - delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0 - action: media_player.volume_set
target:
entity_id:
- media_player.bedrooms_only_ma
data:
volume_level: 0.45 - delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0 - action: tts.speak
metadata: {}
data:
cache: true
media_player_entity_id: media_player.bedroom_speaker_ma
message: It is 5am. Time to take your meds.
target:
entity_id:
- tts.google_translate_en_com - action: light.turn_on
metadata: {}
data:
color_name: lightblue
brightness_pct: 15
target:
entity_id:
- light.vanity_lights - delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0 - action: music_assistant.play_media
metadata: {}
data:
media_id: >-
spotify playlist
enabled: true
target:
device_id: 9917c976df4d6ce7d74ffbd26ae0f72d - delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0 - action: tts.speak
metadata: {}
data:
cache: true
message: "It is now 5:30. Take your meds if you haven't yet. "
media_player_entity_id: media_player.bedrooms_only_ma
target:
entity_id:
- tts.google_translate_en_com
enabled: false - delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0 - action: light.turn_on
metadata: {}
data:
color_name: lightblue
brightness_pct: 36
target:
entity_id:
- light.dining_room_lights - delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
enabled: false - action: music_assistant.play_media
metadata: {}
data:
media_id: >-
Spotify playlist
enabled: false
target:
entity_id: media_player.spare_room_speaker_ma
alias: 5 am wake up script
description: ""