TTS with GA (Google Broadcast) to a SPECIFIC DEVICE
Hello, im just sharing here how I have managed to broadcast on google to specific devices from mini-media-player. I had searched for this but been unable to find the answer so hope it helps someone.
Im not sure how to do a "pull request", but if this could be added to assist others it would be great.
It also falls back safely and if no "target" is set, it just broadcasts to all devices as normal
Custom Notify service named ga_broadcast as per the documents
(Please note, im using Assistant Relay rather than Google Assistant Webserver)
`
notify:
TTS with GA (Google Broadcast) to a SPECIFIC DEVICE
Hello, im just sharing here how I have managed to broadcast on google to specific devices from mini-media-player. I had searched for this but been unable to find the answer so hope it helps someone.
Im not sure how to do a "pull request", but if this could be added to assist others it would be great. It also falls back safely and if no "target" is set, it just broadcasts to all devices as normal
Custom Notify service named
ga_broadcast
as per the documents (Please note, im using Assistant Relay rather than Google Assistant Webserver) ` notify:Now we need to edit the mini-media-player file as follows
CHANGE
"ga" === b.platform ? this.hass.callService("notify", "ga_broadcast", { message: c }
TO"ga" === b.platform ? this.hass.callService("notify", "ga_broadcast", { message: c, target: b.target }
Now on your mini-media-player card, add the target option for the device you want to broadcast too
tts: platform: ga target: Kitchen display
I hope people find this useful as this was the final missing link between Mini Media Player and TTS for me.