hass-browser_mod
hass-browser_mod copied to clipboard
Disallow duplicate 'instances' for a particular browser (support multiple tabs)
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?
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 :).
+1
https://community.home-assistant.io/t/browser-mod-turn-your-browser-into-a-controllable-device-and-a-media-player/123806/2309?u=mdiessner
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
.