DBuit / Homekit-panel-card

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

Popup data includes the Entity: Field. #110

Closed eiiot closed 3 years ago

eiiot commented 3 years ago

When I try to use a custom popup card, I get an error that the entity: option was removed, even though I never included the entity: option in the popup configuration.

Here's the error on a mini-graph-card:

Screen Shot 2021-04-09 at 3 42 42 PM

And here's my yaml:

       - entity: sensor.outdoor_temperature
                tap_action:
                  action: popup
                popup:
                  type: 'custom:mini-graph-card'
                  name: Temperature/Humidity
                  icon: 'mdi:thermometer'
                  align_icon: left
                  align_state: center
                  show_fill: false
                  entities:
                    - sensor.outdoor_temperature

For some reason, the entity: field is being included in the popup data.

DBuit commented 3 years ago

Hello,

That is true, the homekit panel card always adds the entity to the popup of the tile you use the popup on. You got browser_mod installed for the popups so what you can do is add this popup in the browser_mod popup config and call this popup with a service.

eiiot commented 3 years ago

You can't call popups with a service anymore, see #104

DBuit commented 3 years ago

If you set up the popup on browser_mod configuration

popup_cards:
  // create your global popups

you can trigger the popup with more info action because the popups part replaces the default more-info. So set the tap action and your new popup will open.

tap_action:
  action: more-info
  entity: your-entity-you-used