Remote Pi Announcer

Hi
Have written a couple of simple programs in Python 2.
this is what it does:

The client (which is setup on my home assistant pi)
It grabs the first string from the command line argument and sends it to my remote pi’s via IP individually or all of them. I use the shell_command in home assistant to do this. I still havent figured out how to use it properly. I can get it to send a fixed text from home assistant but havent looked into how to send dynamic data from sensors .

The server (installed on several remote pi’s with speaker attached) will receive the text and simply speak it.

Its quite a simple way of having home assistant speak to you.
I have hunted around for something like this, and found the TTS can send to selected media players but I dont own any.

So my question is, is there something like what I have done embedded into home assistant?
If so what is it please post a link.

If not this would be my request to have the feature added.

Kind regards

I’m not an expert (in fact I’m still a HA noob), but I used vlc-nox on my PI3 as a media player. So I guess you could use it too.

Are you running HA children on the remote PI’s? In other words are you using HA remote?

No. just a simple socket server program I adapted. It works independent from HA.
The client program is independent also , which is why I use the command line notifier from HA to run it.

Sorry I just realised I explained wrong in my original post. I don’t used Shell command Its command line notifier.

HA has a restful API that I haven’t played with I think. Maybe you could adapt your client program to wait for an alert from it or query it on a regular basis to better integrate the code.