Hi all,
I’m looking for some advise on a time condition for the TTS service that’s not working on a HA blueprint (I’ve also asked in the forum for the blueprint but its fallen on deaf hears.)
Everything works well and at the end of the automation it sends the notification to my dashboard but it wont play the announcements via TTS to my Sonos and google home minis.
If I create a vanilla automation (not the blueprint one) without a time condition I can get the TTS service to work and so I feel I have covered off the base URL and other prerequisites such as the below in the config file.
tts:
- platform: google_translate
service_name: google_say
the blueprint code is
- id: "1626843740198"
alias: Washing Machine has finished
description: ""
use_blueprint:
path: sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
input:
power_sensor: sensor.washingmachine_port_power
finishing_threshold: 1
actions:
- service: tts.google_translate_say
data:
entity_id: all
message: Clothes washing has finished
options:
condition:
condition: time
after: "08:00:00"
before: "21:00:00"
- service: dwains_dashboard.notification_create
data:
message: Clothes washing has finished
notification_id: clothes
finishing_hysteresis: 2
I have a copy of this for the dishwasher and it has the same issue.
The idea is that when the dishwasher or washing machine (they are separate devices and automations) finish, they send a TTS message to the “all” entity which is all my media devices (also tried just the kitchen media player as well) But I don’t want to wake up the kids / whole family if we set the dishwasher or washing machine after 9pm.
In the test automation without the time condition it works.
But once I put the condition in i get the following HA log error.
Logger: homeassistant.components.tts
Source: components/tts/init.py:189
Integration: Text-to-Speech (TTS) (documentation, issues)
First occurred: 11:13:48 AM (3 occurrences)
Last logged: 1:34:09 PM
Error on init TTS: Invalid options found: [‘condition’]
Does anyone have any ideas or other troubleshooting options.
Sorry of the long post, I’ve read a number of different posts but i can’t find anything that’s calling out what I need to do to fix it.
thanks
Ezekiel