cryd-s
(Manuel Fichtner)
May 8, 2022, 8:10am
1
Hi,
browser mods works fine but my popups appear on every device i just want to fix it like:
so i generate this:
show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: browser_mod.popup
service_data:
title: Popup example
card:
type: entities
entities:
- entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_e3184808_on_off
name: 'Badezimmer '
- entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_4e810608_on_off
name: Schlafzimmer
- entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_680b4808_on_off
- entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
name: 'Terassentür '
deviceID: this
target: {}
entity: binary_sensor.fenster
icon: mdi:window-closed
but now nothing works ;(
Someone who can help me?
Hello,
just had to fix the same issue, I changed my code like this:
show_name: true
show_icon: true
type: button
tap_action:
action: fire-dom-event
browser_mod:
command: popup
service_data:
title: Popup example
card:
type: entities
entities:
- entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_e3184808_on_off
name: 'Badezimmer '
- entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_4e810608_on_off
name: Schlafzimmer
- entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_680b4808_on_off
- entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
name: 'Terassentür '
entity: binary_sensor.fenster
icon: mdi:window-closed
1 Like
jawn22
(Jon Greener)
August 22, 2022, 9:45am
4
I’m getting a bit stuck even after trying your example above. My usecase is that I have a dashboard per room/area in my house and I want a nice way to navigate between them and a certain page within each dashboard (e.g. i’m on the living room media page and I want to navigate to the garage media page). My current popup is as follows (but shows on all devices):
Shows on all devices
square: false
columns: 1
type: grid
cards:
- square: false
columns: 2
type: grid
cards:
- type: custom:mushroom-chips-card
chips:
- type: action
icon: mdi:home
tap_action:
action: navigate
navigation_path: home
- type: back
- type: action
tap_action:
action: call-service
service: browser_mod.popup
target: {}
data:
title: Rooms Navigator
large: false
card:
square: false
type: grid
columns: 2
cards:
- type: button
name: Bedroom
icon: mdi:bed
tap_action:
action: navigate
navigation_path: /lovelace-bedroom/home
hold_action:
action: none
- type: button
name: Tack Room
icon: mdi:office-building
tap_action:
action: navigate
navigation_path: /control-4-test/home
hold_action:
action: none
- type: button
name: Living Room
icon: mdi:sofa
tap_action:
action: navigate
navigation_path: /living-room/home
hold_action:
action: none
icon: mdi:menu
alignment: start
Simple example that I tried using above
I tried the above and modified it in a very basic way, but once clicking on it - nothing is happening, so I’m clearly doing something wrong!
show_name: true
show_icon: true
type: button
tap_action:
action: fire-dom-event
browser_mod:
command: popup
service_data:
title: Popup example
card:
type: entities
entities:
- entity: sensor.tack_room_energy
name: 'Test '
entity: sensor.total_power
icon: mdi:window-closed
Any help would be appreciated!
Had the same issue - tldr:
remove the line “service_data”
show_name: true
show_icon: true
type: button
tap_action:
action: fire-dom-event
browser_mod:
command: popup
title: Popup example
card:
type: entities
entities:
- entity: sensor.tack_room_energy
name: 'Test '
entity: sensor.total_power
icon: mdi:window-closed
this should work
Did something change in the newest HA update cuz this doesn’t work, when I click button nothing opens.
racerx
July 20, 2023, 2:58pm
8
ok i was going crazy too… this is what is working for me now. I formatted it according to the documentation here
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title:
content:
type:
4 Likes