You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New to HA from Jeedom, I'm reimplementing scripts and automations
Fighting to be able to set volume of Google Cast speaker (nest mini) to announce a message (which is very unfortunately not an option), I discovered that if I put the current volume in a variable (media.set_volume), run tts.speak with Google translate then restore the initial volume right after, this is not working.
I have to set a delay after the tts.speak step and before the set_volume to restore the initial value if this step is right after. Else cast is done but with the initial volume which has overwritten the set_volume to higher level for the announce.
Sequence:
read initial volume
set volume to 1
tts.speak with google_translate as entity
set volume back to inital volume
So, imho, a mention in the documentation to add a delay (probably in relation with text length) is recommended if using set_volume right after. Else waiting for a trigger on the cast entity from playing to idle
Feedback
New to HA from Jeedom, I'm reimplementing scripts and automations
Fighting to be able to set volume of Google Cast speaker (nest mini) to announce a message (which is very unfortunately not an option), I discovered that if I put the current volume in a variable (media.set_volume), run tts.speak with Google translate then restore the initial volume right after, this is not working.
I have to set a delay after the tts.speak step and before the set_volume to restore the initial value if this step is right after. Else cast is done but with the initial volume which has overwritten the set_volume to higher level for the announce.
Sequence:
So, imho, a mention in the documentation to add a delay (probably in relation with text length) is recommended if using set_volume right after. Else waiting for a trigger on the cast entity from playing to idle
URL
https://www.home-assistant.io/integrations/google_translate/
Version
2025.1.3
Additional information
No response
The text was updated successfully, but these errors were encountered: