hass-browser_mod: Call service popup and toast doesn't work

My Home Assistant version: core-2021.2.3

What’s happened

All my pops stop runnig after new browser_mod and Hassio updating, for all my cards (custom as official)

What I’ve done

i tried to test the popup and toast service through the Homeassistant developer tools page. Before the updating i was able to show a test popup and toast message

What’s the actual behavior

now anythig happens, meanwhile the debug service works righlty showing the popup with the browser ID

Code test for popup

the service data that i used in the developer tools windows is:

card: 
 type: entities
 entities:
  - switch.lightpower_livingbathgf_l1
deviceID:
 - this
large: true
hide_header: true
auto_close: true
time: 20

Code test for Toast

the service data that i used in the developer tools windows is:

deviceID: 
 - this
duration: 10000

Conclusion

No logs error are reported I’ve tried the call service on 3 different browser chrome, firefox, edge on different systems windows 10, ubuntu 20.04 and also on the andorid APP. I can say that the service doesn’t work anymore. Please let me know if i’ve to change something in the call service code or if there is anything other to try or if there is a bug. Thanks you

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the “Common Problems” section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 18 (5 by maintainers)

Most upvoted comments

From my end my popup wasn’t working only on my Android phone (chrome and home assistant companion) since browser mod 1.3.0 introducing breaking change. But updating Home Assistant to its new version 2021.5 this morning fixed it !

This works:

type: button
entity: sun.sun
tap_action:
  action: fire-dom-event
  browser_mod:
    command: popup
    deviceID:
      - this
    title: kitchen's light
    card:
      type: light
      entity: light.tavla

This does NOT work:

type: custom:mini-media-player
entity: media_player.jupiter
tap_action:
  action: fire-dom-event
  browser_mod:
    command: popup
    deviceID:
      - this
    title: kitchen's light
    card:
      type: light
      entity: light.tavla

The popups are only solved for button and button custom card, not everything else.

Maybe something like

type: button
icon: mdi:star
tap_action:
  action: fire-dom-event
  browser_mod:
    command: popup
    deviceID:
      - this
    title: kitchen's light
    card:
      type: light
      entity: light.light_kitchen

My popup seems to work fine on chrome, but on my android mobile app it doesn’t. Anyone knows why?