What are the current options for pop up cards? I know browser_mod is one way but it seemed overly complicated. Then I think there is a pop up card in the HomeKit UI but I think its only for lights. Then there is thomasloven’s custom:popup-card but it seems to be deprecated for browser_mod.
Is there anything I am missing? Looking to do popups for media control and a weather radar at this point.
“popup” is the actual command. deviceID is the identifier for the current browser (obviously you can have more than 1 accessing your lovelace dashboard at once). “this” is just a pointer to the current browser 's device ID that only works when using fire-dom-event (there are a couple of methods to call pop-ups, this is the preferred way).
Honestly, i would just dig into browser_mod. It’s incredibly useful, not just for popups. All those entitles are sensor’s and devices to control your lovelace browser windows.
If you create a browser_mod.yaml file (see the git) you can prevent most of them from being created if you’re not planning on using them. Here’s an excerpt from my browser_mod.yaml.
prefix: "browser_"
disable: # new browser entities
- light
- media_player
- camera
- binary_sensor
devices:
b054fb55-7973f0e8:
name: browser_jlaptop_chrome_local
disable:
- light
- camera
- binary_sensor
Hi
I am a bit confused with the browser_mod card too. I have installed it but I can’t make it work as I wish.
I need to make it work only in companion app (android). I don’t think that is possible.
What I would like to achieve in my android phone to have popups. Like to have a Living Room Lights entity and if I click to popup a card with all the light entities of the living room.
I don’t need something complex or good looking just to be simple to setup
Well now I am confused. Yesterday I tried many times to make it work in android companion app, but it didn’t work. I make popup from my edge browser in laptop, and it worked in the browser of my android phone, but not in the HA app. Today it is working (I haven’t change anything).
I am still a little confused though. First of all I have the below code in my config.yaml
2 days before as per an example in youtube I had add to the raw configurator editor the below code. Again it was working in the laptop browser but not in android app. Today even this is working.
Sounds like you had something going on with the browser cache. Chrome and the mobile app especially seems to be very stubborn sometimes. When something doesn’t work as expected use the developer tools to empty your cache and do a hard reload and/or empty the app cache in android settings, close and reopen browsers.
The popup_cards: method can be weird. I would stick to tap_action calls until you’ve got a good handle on how browser_mod works.
Yes, you should see named browser_mod entities. I think your entities may have been created before you created your browser mod file. Try logging out of all your browsers the log back in. You should get new named browser mod entities. Also, be aware that the device_id can change if you log out of a browser then log back in. You can either change the device_ids in your browser_mod.yaml file or you can use the various methods described in the browser mod git to set it back to the original value if required for some reason. (Clicking the device ID on the browser media player method is probably the easiest.)
For this reason, I find using fire-dom-event method with the this keyword is probably the most reliable method for popups.
It happens just before a while to start adding in my buttons the right entities. Finished before a while. Now nothing is working again. I cleared the cache of my browser, and the android app, restarted the laptop and the phone. Still nothing is working
I can not say I fixed it BUT it is working. I spend a few days without knowing what’s wrong. After an update I did in HA it just started working. I know have several sensors which ideally I would like to clear, but as they say if it is working don’t fix it.
Im using this to add a pop up to a TV button… is there anyway to add certain text to the activities in the pop up? as well as icons? Here’s the code that works… attaching a screenshot of the output as well.
type: custom:button-card
entity: remote.loft_harmony
name: TV
styles:
card:
- border-radius: 8%
tap_action:
action: fire-dom-event
browser_mod:
command: popup
deviceID: this
title: Do what?
hide_header: true
card:
type: entities
entities:
- switch.loft_harmony_play_xbox
- switch.loft_harmony_watch_movies_and_show
template:
- base
- icon_tv
Is there really no way to have the android app refresh to include the card-mod without clearing data? That is really a nuclear option. I wonder if this should be a request for the android app team to be able to refresh these.
I just encountered the problem, that my browser_mod.popups and .more_info dialogs did not show anymore.
Yesterday they worked flawlessly and now nothing pops up anymore.
Rechecked the YAML - all in order.
AND: they still work in the companion app. I did nothing, I swear!
Just if anyone scratches his head like I did the past hour:
I updated Edge to version 106.0.1370.52 - version 106 is more strict than 105. I had to whitelist popups for my HA instance!