Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant call fire-dom-event #677

Open
Winzy54 opened this issue Jan 31, 2024 · 1 comment
Open

cant call fire-dom-event #677

Winzy54 opened this issue Jan 31, 2024 · 1 comment

Comments

@Winzy54
Copy link

Winzy54 commented Jan 31, 2024

I use an entity person card. (i think this is how it called) and i would like to open a pop up with a map.
when i use call service - browser_mod: popup with the below code its working fine, but i want the pop up to open only on the current device i press the button and not all the devices. i read that i need to use fire-dom-event or browser_mod.popup _action but i dont have them as actions.

can any one help me with this or maybe change my code that it will work only on the current device.

type: custom:mushroom-person-card
entity: person.daniel
layout: horizontal
icon_type: entity-picture
hold_action:
  action: none
double_tap_action:
  action: none
tap_action:
  action: call-service
  service: browser_mod.popup
  target: {}
  data:
    dismissable: true
    autoclose: false
    title: History 24 hours - Noaam
    content:
      type: map
      entities:
        - entity: person.daniel
      hours_to_show: 24
      dark_mode: false
      default_zoom: 14
    size: normal
@smartqasa
Copy link

smartqasa commented Feb 6, 2024

You will need to manually insert this code. Try this...

  tap_action:
    action: fire-dom-event
    browser_mod:
      service: browser_mod.popup
      data:
        title: [your_title]
        content:
          type: [card_type]

Here is a link that helps... https://github.com/thomasloven/hass-browser_mod/blob/master/documentation/services.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants