dckiller51 / lovelace-body-miscale-card

Card for data of Xiaomi scales in the Lovelace user interface of Home Assistant The card is linked to the Bodymiscale custom components for Xiaomi scales. https://github.com/dckiller51/bodymiscale
MIT License
81 stars 22 forks source link

Card not working, only picture shown #16

Closed TheFes closed 3 years ago

TheFes commented 3 years ago

Checklist:

Release with the issue: v 5.6.5

Last working release (if known): none, newly installed today

Browser and Operating System: Chrome 94.0.4606.61 (Official Build) (64-bit) (cohort: Stable) on Windows 10

Description of problem: With the config below, I only get a nice picture of my scale, but no data. Without the picture config, I only get a empty rectangle

  - type: custom:body-miscale-card
    entity: bodymiscale.martijn
    image: /local/pictures/miscale2.jpg
    model: true

image

The entity works fine: image

Javascript errors shown in the web inspector (if applicable): None as far as I can see. Only related thing I see in the inspector is this: image

dckiller51 commented 3 years ago
  - type: custom:body-miscale-card
    entity: bodymiscale.martijn
    image: /local/pictures/miscale2.jpg
    model: true

hello, add the following elements:

show_name: true
show_state: true
show_attributes: true
show_toolbar: true
show_body: true
show_states: true
show_buttons: true

Normally you should have a configuration card.

TheFes commented 3 years ago

Great, that works. I have my lovelace on full yaml mode, so I don't have configuration cards.