Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement : GA Broadcast to SPECIFIC device #486

Closed
craigmcgowan opened this issue Feb 21, 2021 · 0 comments · Fixed by #543
Closed

Enhancement : GA Broadcast to SPECIFIC device #486

craigmcgowan opened this issue Feb 21, 2021 · 0 comments · Fixed by #543
Labels
enhancement New feature or request

Comments

@craigmcgowan
Copy link

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:

  • name: ga_broadcast
    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.

@kalkih kalkih added the enhancement New feature or request label Mar 2, 2021
@kalkih kalkih linked a pull request Oct 1, 2021 that will close this issue
@kalkih kalkih closed this as completed in 44a2f4d Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants