hass-browser_mod icon indicating copy to clipboard operation
hass-browser_mod copied to clipboard

Disallow duplicate 'instances' for a particular browser (support multiple tabs)

Open JeffersonBledsoe opened this issue 1 year ago • 3 comments

If I'm using Browser Mod as a media player and I open a second tab with Home Assistant in it, we end up playing the audio twice. Is there anyway we could have an 'exclusive' mode (configurable or always on) so that there is only one media instance running no matter how many tabs are open?

JeffersonBledsoe avatar Feb 27 '24 16:02 JeffersonBledsoe

Great idea. I have similar problem. I usually open few instances in browser. Would be nice to have possibility to update only in one browser tab, not all of them :).

orzechszek avatar Mar 23 '24 13:03 orzechszek

+1

https://community.home-assistant.io/t/browser-mod-turn-your-browser-into-a-controllable-device-and-a-media-player/123806/2309?u=mdiessner

evercape avatar May 22 '24 19:05 evercape

I just read through the documentation again and noticed that the popup-card does exactly that, it opens the popup only in that view.

I even tried to open 2x the same tab with the same view and clicked (more) on an entity and only that particular popup opened up, which is great.

However, that means that one has to use this "workaround" instead of using the fire-dom-event service with a disallow duplicate / restrict to this.

evercape avatar May 23 '24 16:05 evercape