It was working perfectly before upgrading to 0.117.4.
Actually sometimes it fails and i don’t have the TTS notification on my media_player.home device.
Yes. Mine has been intermittent since yesterday. Getting these error msgs:
WARNING (MainThread) [homeassistant.components.google_translate.tts] Unable to find token seed! Did https://translate.google.com change?
ERROR (MainThread) [homeassistant.components.tts] Error on init TTS: No TTS from google_translate for 'Test message'
What do you want this Template Condition to do? Because here’s what I believe it does:
If either of the first two media players is playing, the template returns nothing.
Only if the first two media players are not playing, does the template check the third player and returns either false or true.
A Template Condition should always evaluate to either true or false and not nothing.
So the question remains, what do you want this Template Condition to do?
EDIT
You can experiment with the template’s behavior by pasting this into the Template Editor:
{% set a = 'playing' %}
{% set b = 'paused' %}
{% set c = 'playing' %}
{% if a == 'playing' %}
{% elif b == 'playing' %}
{% elif c == 'playing' %}
false
{% else %}
true
{% endif %}
As you can see, there’s no result if the either of the first two variables are ‘playing’.
Only when the first two are not ‘playing’ does the template reach the third test and produce a value of false.
It selects and counts how many media_players are playing and compares it to 0. If none are playing, the template evaluates to true, otherwise it reports false.
The basic voice is free with a limit of 4 million characters per month. The WaveNet version is free with a limit of 1 million per month. After that it’s €/$4 (basic) and $/€16 per month per million characters (WaveNet).
I might try this. I have no idea how many characters I would use but I’d imagine you can keep track. This is what counts as a charachter according yo Google:
The number of characters will be equal to or less than the number of bytes represented by the text. This includes alphanumeric characters, punctuation, and white spaces. Some character sets use more than one byte for a character. For example, Japanese (ja-JP) characters in UTF-8 typically require more than one byte each. In this case, you are only charged for one character, not multiple bytes.
The WaveNet version (which I would choose) gives 33.000 characters each day on average. This following sentence contains 80 characters:
Good morning, it is time to wake up. Currently it’s 17 degrees and it’s raining.
I think for a regular household when using a few automations each day with Google Cloud TTS you won’t reach the monthly limit.
I also have this problem, sometimes the TTS works fine and sometimes it doesn’t. Haven’t changed anything other than upgrading HA. Has worked perfectly since I set it up 6 months ago.
Yes, that’s correct afaik. I’m using the 0-4 million standard voice, and I’ve never been charged. When I check quotas for the project it just states “No data is available for the selected time frame.” so I’m not exactly sure how many characters I’m using but I would guess I’m way under the limit. I have the following tts automations: front doorbell motion on 3 google home devices (we get multiple packages daily), random greetings for each person upon returning home, and I script I call to yell at my cat when it’s on the kitchen counter.