TTS to the device accessing HA

Apologies if this is a known trivial issue, but I could not find an answer anywhere.
I want to raise a TTS notification to the web browser where Lovelace is currently running, like the media tab when you are testing the integration. How do I do it?

AFAIK You can only send a tts commands to a media player, smart speaker, or companion app. You would need a way to define the browser in HA, which I don’t believe exists.

Yet you can do it in the ui.

I believe you can use browser_mod

2 Likes

Using browser_mod myself… One useful thing is setting the device id using ?deviceID=whatevername.

Then calling a service like this:

service: tts.cloud_say
data:
  entity_id: media_player.browser_joe_home_office_chrome
  message: This is a test of the emergency broadcasting system

I’ve found this is a little bit flakey sometimes if you have multiple tabs open to home assistant. But for the most part this is how I got it to work in the past.