When you click a button in your frontend, that usually sends some kind of service request to the backend (which is where node red lives). The backend runs on your server, and neither knows or cares whether you clicked that button on your computer, phone or toaster. All it knows is that you want a light to turn on.
What browser_mod does is change the way those service calls happen - by modifying the frontend across all devices - such that the parameter deviceID: this is replaced with a unique identifier in the service request, so that the backend can actually know which device it came from.
Then itās up to the backend to react to this information, be it a core script, node red, appdaemon or that C# thing @helto4real is secretly working on. What it will see is a service call, having a parameter named deviceID with a list of deviceIDs as value.
I keep seeing this pluginā¦ but even though you list use cases for thisā¦ I canāt think of one applicable implementation in my everyday life.
So this means a browser has to be running on the device at all times and pointing to a particular URL that is ālisteningā for stuff? Every screen in the house? I donāt get that partā¦ how would you control every screen in your house with a browser?
Also, I found another issue. If I use a card which expand when loaded, like calendar card or shopping list card. The popup wonāt get centered. Well, when open the popup and it centers, but after some milliseconds the card will refresh and expand itās size, at this time the popup wonāt resize aswell.
Example code:
popup_cards:
input_boolean.shoppinglist:
title: Shopping list
card:
type: shopping-list
Hello, I am using broswer_mod popup to call several cards: entity-row, custom button ā¦ the problem is that the entities inside the popup cards cannot be clicked, if it is a light, for example, within the pop-up window when the entity is clicked is not open to see the menu for more information. Am I doing something wrong or is it normal?
Restarted everything (hass, docker container, server), and refreshed the cache but still seeing browser_mod entities from incognito connections in my states table. How are the browser_mod entities persisted?
so,i click on my popup_birthday button and i can see all my birthday buttons(jack,chris),but if i click on one of them ,they dont do nothing when in teory should show the more-info of the entity.
i have the same problem with fold-entity.row cards
I have created my own remote card using button-card and invoke it with the popup action (global). Everything works fine, however I just canāt seem to center it. On my iPhone itās fine, but on larger displays itās all the way to the left/top. I copied the style from light-popup-card (which is centered on larger displays) but that doesnāt seem to work with my own card.
I have a strange problem on iOS where if I call the browser_mod.popup service with a double_tap_action it will instead overwrite the tap_action and the popup will appear on single tap. On my computer if I click the button with my mouse the double tap action works as it should.
having only recently started using Browser-mod, I had been extremely happy using it to have all my tts intercom announcements played on my iPhone. Ive set that up using the following config:
and that worked fine until, well, I donāt really know. Had a few other issues, and then suddenly realized I hadnāt heard my messages over the iPhone anymore. searched for the device_id in the states and it was gone. Apparently, somehow my device_id had changed into another, and I was able to find it with the browser debug service .
Why would the device_id have changed? There hasnt been an update to the iPhone app lately, nor has an iOS update taken place.
would appreciate any pointers in this matter.
not really no. I think.
My chrome-mac combination has stayed the same, using the exact same address and network. My Rpiās have a fixed IP address on the router.
btw are you saying that it would make a difference for the browser-mod ID if one connects over another wifi network (I have a few in the houseā¦)?
Not the network, but the URL youāre connecting to. Some people use like hassio.local at home and mydomain.duckdns.org away. That would give two different ids.
In your case, it could just be your browsers cache resetting for some reason. Iād imagine an iphone would do that from time to timeā¦
ah ok, thanks, I didnāt realize that.
well, I indeed forced a few āReset Frontend cachesā because Iām debugging error floods between custom header and card-modā¦ and the browser behaving unexpectedly, see Custom Header
so that might have caused the browser-id to have changedā¦