I’m trying to re-create you have with a chip button at the top that displays the number of lights on and then when you tap it, has a popup with lights that are on. Using this code I am able to get a popup with the title, but no lights show. Any ideas?
type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.lights_on_count
icon_color: yellow
icon: mdi:lightbulb
tap_action:
action: call-service
service: browser_mod.popup
data:
title: Lights On
card:
type: entity-filter
entities:
- group.all_lights
- light.nightlight
- switch.front_door_light
- light.lightstrip
state_filter:
- 'on'
Edit - I figured it out. I couldn’t get a simple entities card to work in the popup either, so I dug around the browser_mod documentation (which I should have done in the first place rather than simply copy-paste…).
So here is a short summary for the newer people like me, be careful when copy pasting code that has been provided in this thread as browser_mod has been updated since most of the posts were made, and the way you call the popup service has been changed.
From:
action: fire-dom-event
browser_mod:
command: popup
title: My title
card:
type: ...etc...
type or paste code here
to
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: My title
content:
type: ...etc...
I personally caught the command change, but missed changing card to content which is why the popup worked but not what was in the popup… This was my final config:
type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.lights_on_count
icon_color: yellow
icon: mdi:lightbulb
tap_action:
action: call-service
service: browser_mod.popup
data:
title: Lights On
content:
type: entity-filter
entities:
- group.all_lights
- light.nightlight
- switch.front_door_light
- light.lightstrip
- light.staircase
- light.desk_light
state_filter:
- 'on'