You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
platform: rest
resource: !secret assistant_relay_url
method: POST_JSON
data:
user: "Home Assistant"
broadcast: "true"
talkback: "false"
command: "{{ message }}"
device: "{{ target }}"
`
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.
The text was updated successfully, but these errors were encountered: