I installed 2.2.0 update (on Home assistant version: 2022.12.9) and after clearing cache my popups appear on top of the screen, not on the middle anymore (center of display), like they use to. Also, blur effect is not working anymore. My card:
Above āblurā command under ācard_modā should blur background, it used to in 2.1.3. Not anymore in 2.2.0.
Also, i guess iāll need another command to center this popupā¦? Thomas did state that popup is ābetter lookingā in this update, but it was pretty scarse with info what is actually changed, also his github page doesnāt say anything about new featuresā¦
so, i would really need some help here, pleaseā¦
Tried searching for an answer to this but canāt seem to find it. Is there a way to get the device ID (in the Lovelace UI) of the device/browser currently accessing HA? Some context:
I have a dashboard page where Iām displaying an embedded web page using the web page card. Iām using card_mod to scale it so the page contents fit nicely in the card. But the level of scale to apply depends on the size of the screen. What looks fine on desktop doesnāt look quite right on mobile.
Browser mod creates sensors for the width and height for each device. What Iām trying to do to is access that e.g.:
if sensor.{client's device ID}_browser_width == xxx then ....<set scale accordingly>
BUTā¦ popup (from v2.2.0) appears at TOP middle of screen. Since iād like it to appear in the middle (total center of screen), i added some lines under āstyleā - that way popup appears centered (or whenever i want it),BUT they cause blur to stop working:
I have 5 devices registered in BM but when I try to add them to a BM service, only 1 is available. If I manually (YAML) enter one of the others, Navigate does not work. This is not the first time BM devices donāt seem to exist, yet they show on the BM settings page list. BTW, they also show in the HA Devices page.
Hey. I just found the register CAST browser option in browser_mod settings, which is great, as I can no send popup notifications to my dashboards on google nest hubs. However, one question:
Is it possible to register multiple CAST browsers individually? I have 2 hubs showing dashboards, but they appear to share the same device_id. If I choose āCASTā as the target, it sends the same popup to both browsers.
Both popups can be dismissed individually, and āfire-dom-eventsā work fine individually when launched from tap-actions, but canāt send individual browser_mod.popup services.
Goes in your theme.yaml under card-mod-theme: yourthemename if you want it to work for all popups, default Home Assistant more-info dialogs included. This is how my popups look (I use different blur and background values)
Uau! Many thanks! Centering works, but interestingā¦ with your solution blurring of browser-mod popups doesnāt work (browser_mod.popup, fire-dom-event), only āstandardā HA popup windows blur.
Browser mod popups (and all other popups, too) do blur however if i add ādialog-backdrop-filter: blur(5px)ā directly to theme (not under card-mod), so at the end itās all i wanted.
Iāve had to do a bit of searching and learning, but i managed to make it work. Thomasloven wrote understandable guides for it.
These are DOMās in the CSS code, the theme modding is code from ācard modā which you have installed through HACS (otherwise the code I posted wouldnāt have worked on your system)ā¦
Itās very advanced stuff. Iām not an expert myself and still learning CSS. But those signs are basically navigation points inside the CSS code. I linked the Github of card-mod above. You should also visit the card-mod threads for card mods and themes if you want to explore more.
You can use them either in the popup-card, in your theme.yaml or style it using card_mod. If you want the popups to look like the old Browser_mod (and like the default more-info dialogs) just change the minimum and maximum width. I upgraded today to V2 finally and fixed it easily for all popups using this in my theme.yaml:
popup-min-width: 400px
popup-max-width: 400px
This gives all popups a fixed width of 400px. Change to what you see fit. In the link from Github you can find some other styling options like border-radius, background color etc.