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

No call service with browser mod is calling #36

Open
arripeo opened this issue Feb 18, 2021 · 2 comments · May be fixed by #78
Open

No call service with browser mod is calling #36

arripeo opened this issue Feb 18, 2021 · 2 comments · May be fixed by #78

Comments

@arripeo
Copy link

arripeo commented Feb 18, 2021

As the new version of Hassio 2021.1.3 and browser_mod are released, is not possible to use Tap_action with the call service for the browser_mod popup service. I know that other custom cards has the same problems but new released was done in order to use the fire-dom-event option instead of classic call service. Is it in program to do the same upgrade for this fantastic card that I use everywhere?
Thanks you

@arripeo
Copy link
Author

arripeo commented Feb 23, 2021

It could be possible to implement the fire-dom-evet to use agaii the popups by brower_mod?

@andbad
Copy link

andbad commented Nov 12, 2021

At the moment, still possible to use

tap_action:
  action: call-service
  service: browser_mod.popup
  service_data:
      title: Popup example
      card:
        ...

But his open a popup in every device.
Instead:
https://github.com/thomasloven/hass-browser_mod/releases/tag/1.3.0

For developers of lovelace plugins
This change makes use of the fire-dom-event tap action.
It's actually been in the code for almost a year, but has never been used (yet).
If your lovelace plugin does not support this, they will not work for direct triggering of browser_mod functions.
Calling a service as before still works, though, it's just the deviceID: this that's gone.

See: https://github.com/home-assistant/frontend/blob/8d13745c6b822a76f6724e32c2b10bf57ae645e7/src/panels/lovelace/common/handle-action.ts#L137

fire-dom-event show a popup only in browser where action are called.
flex-horseshoe-card don not handle this events, but only "more-info", "navigate" and "call-service" (line 1615).

By(t)e

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

Successfully merging a pull request may close this issue.

2 participants