DBuit / Homekit-panel-card

Homekit panel card for home assistant
MIT License
304 stars 54 forks source link

Popup not working #106

Closed francois-pasquier closed 3 years ago

francois-pasquier commented 3 years ago

Hi, I have some issues with the popup functionnality:

Nothing happens when long pressing my card

Here is my card yml:

type: 'custom:homekit-card'
home: true
title: Home
useBrightness: false
useTemperature: false
titleColor: '#FFF'
entities:
  - title: Row 1
    popup:
      type: 'custom:light-popup-card'
      scenesInARow: 2
      brightnessWidth: 130px
      brightnessHeight: 350px
      switchWidth: 110px
      switchHeight: 300px
    entities:
      - entity: light.ampoule_bureau_de_francois
        name: Office
        icon: 'mdi:floor-lamp'

browser_mod seems to be loaded, js console:

BROWSER_MOD 1.3.0 IS INSTALLED    DeviceID: 915d36fd-96b8ed0c

EDIT: browser_mod seems to work fine, I tried this code:

type: button
icon: mdi:star
tap_action:
  action: fire-dom-event
  browser_mod:
    command: toast
    message: Hello, world!

and got:

image

kaosmagix commented 3 years ago

This is caused by the version of browser_mod, version 1.3 uses the new method for popup's but this card is not yet compatible with the new method. See also issue #104 and #103

If you want it to get working now you need to downgrade browser_mod (for me that only worked by removing and re-adding version 1.2.3 of it.

francois-pasquier commented 3 years ago

Thank you!

eiiot commented 3 years ago

After downgrading Browser_Mod, this still isn't working for me, as older versions of browser_mod are broken in 2021.4

eiiot commented 3 years ago

Update: Popup is now working on Firefox, but not on the Android Mobile App