I have a script to say random phrazes. Not the best scriptng but it works. But everytime it annmounces a script on a Google Hub the volume is really high up at 8.
I have tried a few commands on volume and volume_level with numbers, percentages and quotes. These are sample YAML i have found but I cannot get any to work.
Can anyone recommend how I change my script so I can lower the volume?
action: tts.speak
target:
entity_id: tts.google_en_com
data:
cache: true
media_player_entity_id: media_player.kitchen_tv_2
message: |-
{{ ["There is no elevator to success, you have to take the stairs",
"Faith goes up the stairs that love has built and looks out the windows which hope has opened.",
"Life is like a staircase, you have to go up each step to reach the top.",
"Climbing the stairs is a visual representation of leveling up",
"Success is a staircase, each step gets you closer to the top. But nothing will happen if you do not start climbing"]
Try adding another action using the media_player.volume_set command, possibly followed by a sight delay to make sure your Hub has enough time to receive it before the announcement:
I tried the following but the volume still shouts when Google says the random phraze.
sequence:
- action: media_player.volume_set
data:
volume_level: 0.33
target:
entity_id: media_player.kitchen_tv_2
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- action: tts.speak
target:
entity_id: tts.google_en_com
data:
cache: true
media_player_entity_id: media_player.kitchen_tv_2
message: |-
{{ ["There is no elevator to success, you have to take the stairs",
"Faith goes up the stairs that love has built and looks out the windows which hope has opened.",
"Life is like a staircase, you have to go up each step to reach the top.",
"Climbing the stairs is a visual representation of leveling up",
"Success is a staircase, each step gets you closer to the top. But nothing will happen if you do not start climbing"]
| random }}
alias: aa Google words of wisdom TALKS REALLY LOUD (Duplicate)
description: ""
May I ask what model the Google Hub is? I will try to replicate your problem with a slightly older Nest hub I still have. It may not matter, but it’s best having all the info to start.