How Can we make Google Home repeat a broadcast till a condition is complete

How Can we make Google Home repeat a broadcast until a condition is complete?

Details:

I have a 433Mhz Door sensor connected to my Home assistant Thru Sonoff Bridge (Espurna Flashed).
Whenever the Door is Open I want Google Home to say " Your Door is Open" (thru Text to speech feature HA).
I also want google home to repeat the above phrase every minute or two until the door is closed physically.

Is it possible to achieve such automation in HA?

Please guide me how to do the same.

Thanks in advance.

easiest way is to have an automation that triggers every min with a condition that checks the door status and plays the TTS if open.
Something like:

- alias: Alert If Door Is Left Open
  initial_state: true
  trigger:
    - platform: time
      minutes: '/1'
      seconds: 0
  condition:
    - condition: state
      entity_id: binary_sensor.door_sensor_name
      state: 'on'
  action:
    - service: tts.google_say
      entity_id: media_player.google_home_name
      data:
        message: 'Your Door is Open'
2 Likes

Ill try out thanks & keep u posted the results. Thanks a lot

Is it this method of checking every minute the whole day looks crazy though its a simple & great idea.

Can we check automation with different logic???

sorry I’m not sure I understand your questions. the “trigger every min” is something I use for a lot of automations, especially alarms.
what do you mean by

Can we check automation with different logic???

1 Like

May be am asking a stupid question : Checking every minute will not overload the Processor of Rasberry pi??

not really, running through the logical tests takes next to no time at all, then it would be “idle” for over 59 sec…
I have a python script that checks GPIO ports and does a few others checks, the script runs in a loop with a 10ms pause. That only uses 10% of CPU, so running a script every min, we’re laughing :wink:

1 Like

Thanks for the clarification. So nice

Another Question: Is it possible to have TTS in other languages? Say other than english???

yes, check the options on

1 Like

Thanks a lot
It worked. I have Now google Speaking in my Native language (Tamil)
Thanks a lot. you are awesome

1 Like