Does anyone have any suggestions or can point me to some configuration whereby the volume on my defined media players for TTS notification will increase to 100%. Still learning my way around configuration.yaml and don’t quite understand how I might call that parameter. Below is my current config
# Front Door Motion
- alias: 'FrontDoorMotion'
trigger:
- platform: state
entity_id: binary_sensor.front_door_motion
to: 'on'
action:
- service: tts.google_translate_say
entity_id:
- media_player.home
data:
message: 'Motion detected at the front door'
- service: notify.mobile_app_vadennote20
data:
message: 'Motion detected at the front door'
Might be better if I show you a whole automation, but basically put it as your first action:
(I cut and pasted, so the spacing may be off.)
# Front Door Motion
- alias: 'FrontDoorMotion'
trigger:
- platform: state
entity_id: binary_sensor.front_door_motion
to: 'on'
action:
- data:
volume_level: 0.7
entity_id: media_player.home
service: media_player.volume_set
- service: tts.google_translate_say
entity_id:
- media_player.home
data:
message: 'Motion detected at the front door'
- service: notify.mobile_app_vadennote20
data:
message: 'Motion detected at the front door'
```
That is not the same as I said.
It’s quite a lot different.
I said delay two seconds then wait until idle.
That means it will lower the volume right after the TTS is done.
Your code on the other hand waits until off or two seconds timout.
I don’t think a message will even be played in two seconds so my guess is that it has already lowered the volume before the TTS is even played.