Skip to content
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.

Not displaying #9

Closed
bmorgan99 opened this issue Feb 17, 2019 · 16 comments
Closed

Not displaying #9

bmorgan99 opened this issue Feb 17, 2019 · 16 comments

Comments

@bmorgan99
Copy link

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
Copy link
Owner

And what are you using to open it?

@bmorgan99
Copy link
Author

bmorgan99 commented Feb 19, 2019

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
Copy link

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
Copy link
Owner

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
Copy link
Author

bmorgan99 commented Feb 25, 2019 via email

@thomasloven
Copy link
Owner

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
Copy link

@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
Copy link
Owner

And what are you using to open it?

@ohadbenita
Copy link

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
Copy link
Owner

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
Copy link

ohadbenita commented Feb 25, 2019 via email

@thomasloven
Copy link
Owner

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
Copy link

ohadbenita commented Feb 25, 2019 via email

@thomasloven
Copy link
Owner

thomasloven commented Feb 25, 2019

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
Copy link
Author

bmorgan99 commented Feb 25, 2019

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
Copy link
Owner

thomasloven commented Feb 25, 2019

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

  • The basic concepts of lovelace
  • yaml
  • How to form a good support request - the internet is full of articles about this
  • That the answer to a follow-up question asking for more details is not to copy-paste the same things again, @ohadbenita

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants