thomasloven / lovelace-popup-card

94 stars 14 forks source link

Not displaying #9

Closed bmorgan99 closed 5 years ago

bmorgan99 commented 5 years ago

This is probably unique to me, but I'm not finding help in the forums. The pop-up card will not display unless I enter edit mode. There are no browser (chrome 72. canary 74) or HA log errors.

cards:
  card:
    entities:
      - entity: media_player.kitchen_roku
        type: 'custom:roku-card'
title: Rokus
type: 'custom:popup-card'
resources:
  - type: js
    url: /local/card-tools.js?v=7
  - type: js
    url: /local/popup-card.js?v=15
  - type: module
    url: /local/roku-card-editor.js?v=28
  - type: module
    url: /local/roku-card.js?v=9

HA 87.1, hassos 2.8

thomasloven commented 5 years ago

And what are you using to open it?

bmorgan99 commented 5 years ago

OK, I understand the tough love now, but can you at least show me the syntax here?

type: 'custom:mini-media-player'
entity: media_player.roku_kitchen
card:
  type: 'custom:popup-card'
  entity: media_player.roku_kitchen
  card:
    type: 'custom:roku-card'
    entity: media_player.roku_kitchen
ohadbenita commented 5 years ago

This is probably unique to me, but I'm not finding help in the forums. The pop-up card will not display unless I enter edit mode. There are no browser (chrome 72. canary 74) or HA log errors.

cards:
  card:
    entities:
      - entity: media_player.kitchen_roku
        type: 'custom:roku-card'
title: Rokus
type: 'custom:popup-card'
resources:
  - type: js
    url: /local/card-tools.js?v=7
  - type: js
    url: /local/popup-card.js?v=15
  - type: module
    url: /local/roku-card-editor.js?v=28
  - type: module
    url: /local/roku-card.js?v=9

HA 87.1, hassos 2.8

Happens to me as well, no errors in the logs or the Chrome console, using HA 0.88.0 with the following config:

  - type: custom:popup-card
    entity: sensor.rinat_tracker_sensor
    title: רינת
    card:
      type: entities
      entities:
        - entity: sensor.rinat_tracker.sensor
thomasloven commented 5 years ago

OK, I understand the tough love now, but can you at least show me the syntax here?

I have no idea what you're even trying to do. As far as I can tell, the mini-media-player card doesn't even have card: as an option.

http://thomasloven.com/blog/2018/08/YAML-For-Nonprogrammers/

bmorgan99 commented 5 years ago

I want to pop up the roku remote from a media player

https://community-home-assistant-assets.s3.dualstack.us-west-2.amazonaws.com/optimized/3X/0/c/0ca6928bdd0a4c9acd5043b3cce2a6a09001ef47_2_387x500.gif

On Mon, Feb 25, 2019 at 1:10 AM Thomas Lovén notifications@github.com wrote:

OK, I understand the tough love now, but can you at least show me the syntax here?

I have no idea what you're even trying to do. As far as I can tell, the mini-media-player card doesn't even have card: as an option.

http://thomasloven.com/blog/2018/08/YAML-For-Nonprogrammers/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thomasloven/lovelace-popup-card/issues/9#issuecomment-466896170, or mute the thread https://github.com/notifications/unsubscribe-auth/Acl9GNK4YBkVjKJnAnAP_DKEgtm6bpw3ks5vQ4xqgaJpZM4a_SKr .

-- Bruce Morgan blmorgan@gmail.com

thomasloven commented 5 years ago

Then I suggest you start with the example in the documentation.

Replace as little as possible until it does something (hint: it's just the entities).

Then look carefully at how it's set up, what card is where and so on. Read the link I posted above again to make sure you understand how the yaml relates the the underlying structure of the cards. Draw it. Play around with the options until you understand how it all works together.

After that, replace one card with what you want, either the popup or the one triggering the popup. Once that works, replace the other one.

ohadbenita commented 5 years ago

@thomasloven I know you're referring to @bmorgan99's answer but I want to note that this is exactly what I did (see my response from before) and I'm not getting anything drawn in the Lovelace UI nor do I see any errors in the Chrome console (F12)

I'm now running HA v0.88.1 if it helps, I'm willing to supply any debugging info as I'd pretty much want to use the popup-card in my setup

Thanks in advance

thomasloven commented 5 years ago

And what are you using to open it?

ohadbenita commented 5 years ago

This is my code

  - type: custom:popup-card
    entity: sensor.rinat_tracker_sensor
    title: רינת
    card:
      type: entities
      entities:
        - entity: sensor.rinat_tracker.sensor

I'm using Google Chrome Version 72.0.3626.119 (Official Build) (64-bit) on a Windows Desktop

thomasloven commented 5 years ago

Ok. Then Please Read The Very First Line Of The README File.

Replace the more-info dialog of one entity with a custom lovelace card.

And then tell me: What Are You Using To Open The More-Info Dialog?

ohadbenita commented 5 years ago

I've gone through the readme file more than once I can't get the card itself to show in my view given the same configuration I just mentioned So, I don't get to the point where I can actually press on some entity and open the more-info dialog...

On Mon, Feb 25, 2019 at 2:17 PM Thomas Lovén notifications@github.com wrote:

Ok. Then Please Read The Very First Line Of The README File.

Replace the more-info dialog of one entity with a custom lovelace card.

And then tell me: What Are You Using To Open The More-Info Dialog?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/thomasloven/lovelace-popup-card/issues/9#issuecomment-466990786, or mute the thread https://github.com/notifications/unsubscribe-auth/AdL_vjqE9HKiklweDX28A0d639qtx98Oks5vQ9RsgaJpZM4a_SKr .

thomasloven commented 5 years ago

And what is it that you are pressing? What entity? In what kind of card? What happens when you press it? Does it open the normal more-info dialog instead? Does nothing at all happen?

ohadbenita commented 5 years ago

No entity is showing, this is my exact problem Nothing to click on and nothing is shown on the screen

On Mon, 25 Feb 2019 at 14:55 Thomas Lovén notifications@github.com wrote:

And what is it that you are pressing? What entity? In what kind of card? What happens when you press it? Does it open the normal more-info dialog instead? Does nothing at all happen?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/thomasloven/lovelace-popup-card/issues/9#issuecomment-467000943, or mute the thread https://github.com/notifications/unsubscribe-auth/AdL_vmRvfTzqb3rCVcoiyaQSw0wPNTKqks5vQ91agaJpZM4a_SKr .

-- אוהד בניטה נייד - 0508246047

_/ # ## (^= p ### c / ) / _____- //^---~ c 3 / ----^\ /^\ / --,- ( O_ \_/ ,/ / \ `-- / (((G ----- //-----\ // \ / ^
____ ____

/__) (_____\

thomasloven commented 5 years ago

Does it appear again if you remove popup-card from your setup?

Or was it never there and you expect popup-card to provide one? Because that's NOT what "replace the more-info dialog" means.

bmorgan99 commented 5 years ago

Your example doesn't contain "more-info", so it's assumed that the card that follows is used. I have come up with many guesses that will display the media player, but all show the standard more-info. Can you not provide an example that works?

thomasloven commented 5 years ago

The example in the readme works. When clicking "Bed Light" the card shown in the screenshot is opened instead of the more-info dialog which is normally opened by default.

This is not a support forum. I'm closing this, but you're both welcome back if you encounter a bug and when you understand