thomasloven / lovelace-popup-card

94 stars 14 forks source link

More dialog info instead of popup card #19

Closed SciTii closed 5 years ago

SciTii commented 5 years ago

My Home Assistant version: 0.90.2

My lovelace configuration method (GUI or yaml): yaml

What I am doing:

Using exact same configuration as on older version of hassio with popup card and it was working perfectly.

What I expected to happen:

After Upgrading it doesnt work anymore. more dialog info is not a popup card anymore. Using custom updater so i have the newest version of popupcard and card tool

What happened instead:

More dialog info came back. instead of popup card. I even tried second instance of hassio. same problem

Minimal steps to reproduce:


title: My awesome lovelace interface
resources:
  - url: /local/github/thomasloven/card-tools.js?track=true
    type: js
  - url: /local/github/thomasloven/popup-card.js?track=true
    type: js
views:
  - title: My view
    icon: mdi:home-assistant
    popup_cards:
      light.swiatlo1:
        title: Bedside lamp settings
        card:
          type: entities
          entities:
            - light.swiatlo2
    cards:
      - type: entities
        entities:
          - light.swiatlo1

# End of code

Error messages from the browser console:


By putting an X in the boxes ([ ]) below, I indicate that I:

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

[x] Have made sure I am using the latest version of popup-card.

[x] Have made sure I am using the latest version of card-tools.

[x] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

[x] 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.

mhaack commented 5 years ago

Hi, I can report the same behavior with 0.90.1. I did some JS debugging in Chrome, I think the problem ist in card-tools. In this line https://github.com/thomasloven/lovelace-popup-card/blob/master/popup-card.js#L9 cardTools.lovelace is null in my case.

SciTii commented 5 years ago

Hi, I can report the same behavior with 0.90.1. I did some JS debugging in Chrome, I think the problem ist in card-tools. In this line https://github.com/thomasloven/lovelace-popup-card/blob/master/popup-card.js#L9 cardTools.lovelace is null in my case.

Yeah... In my case... In directory there was no js files! Custom updater with tracking card showed that card tools and popupcard was installed... BUT i had to download it on my own.. Now works perfectly.. This is a bit strange because rest of addons downloaded and updated automatically without any problems...

thomasloven commented 5 years ago

@mhaack Do you still have problems with this?

mhaack commented 5 years ago

Yes, I did not check/test the last few days since I'm traveling this week. Will have some time to look into it over the weekend.

mhaack commented 5 years ago

@thomasloven I got it working after cleaning all browser caches. I guess this issue can be closed.

thomasloven commented 5 years ago

Thank you for reporting back!