Lovelace: Body Miscale Card 5.6.0

I think you have edited your post too fast :slight_smile:
nothing changed
daros_weight is the MQTT sensor and it is working fine as on the screen above (question from @dckiller51 )
bodymiscale.darek has daros_weight as a weight sensor inside, with this sensor bodymiscale.darek show unknown all the time

however probably you got the reason of failure correct - within bodymiscale sensor I should use the weight sensor directly from the Scale (I switched to MQTT only because of low signal of BT/BLE, which as a result causes scale to drop the connection)

I will confirm soon

THanks!

a cheap solution is to go through esphome with an esp32. This allows you to put this card next to the scale and send the info by wifi.

For your first question, your mqtt sensor must start with sensor.xxxxx

I had summed it up for all those who might come across that topic too, where the BodyMiscale Card would not seem to work but that might have been caused by the sensor and not the card like in my case you had referred to.

And far above when I had started my topic I added an UPDATE section to my initial comment that is linking to that explanation I had written for you. That would make it a lot shorter to get behind. I am not into that whole ESP world cause when I had bought 2 back then our energy monitor had to been replaced and was no longer needed.

What is the purpose of that ESP32 integration ?
Is it a kind of bridge connecting the scale to the esp32 that hen connects via WiFi or is it that logic that switches between accounts based on measurement results or can / is it both ?

thx

I have an issue with the buttons (for more details and changing users) in firefox and the home assistant iOS app. They simply don’t do anything. Not even an error in the browser console.

Is anyone else experiencing the same? (i scanned the entire thread but didn’t see anyone mention it)
I already created an issue (before I found this thread).

New version available.

Small screen of the next version with integration of bar card for the score part.

3 Likes

Can someone tell me if it’s still possible to find this card in HACS? I have the integration running and working great just can’t find the card in HACS. Is manual install for now only supported?

Hello, you must add the address using the 3 dots at the top right then add a personal deposit.

1 Like

Thanks. When I tried to add https://github.com/dckiller51/lovelace-body-miscale-card as a custom frontend repo, HA popped up and said the card “was already in the store” and then whamo, it appeared. Installed now, thank you.

@thomasloven hello, In view of your expertise in the field of cards, I would like to ask you because I have a technical question on my card. I am missing an element that I wanted to put in place but that I am unable to implement. Do you have any idea how to set up several users selected by a switch.

Part of the code allows me to operate a service with a button. the ideal would be to place it here.

  renderButton(data: any) {
    if (!this.config.show_buttons) {
      return html``;
    }

    return data && data.show !== false
      ? html`<ha-icon-button
          @click="${() => this.callService(data.service, data.service_data)}"
          icon="${data.icon}"
          title="${data.label || ''}"
          style="${this.config.styles.icon}"
        ></ha-icon-button>`
      : null;
  }
export const buttons = {
  user1: {
    show: false,
    label: 'User1',
    icon: 'mdi:alpha-u-circle',
  },
  user2: {
    show: false,
    label: 'User2',
    icon: 'mdi:alpha-u-circle',
  },
  user3: {
    show: false,
    label: 'User3',
    icon: 'mdi:alpha-u-circle',
  },
  user4: {
    show: false,
    label: 'User4',
    icon: 'mdi:alpha-u-circle',
  },
  user5: {
    show: false,
    label: 'User5',
    icon: 'mdi:alpha-u-circle',
  },
};

Here I know that you are already very busy with all your projects but if you have an idea to help me. Thank you

Hi,

Thanks for the great work, but I’m having some trouble.
I’ve copied the icons to www/images/bodyscoreIcon.
But I can’t see them at all.

Can you look at what F12 select an element gives

Working on a Mac, there is no F12

I will look to suggest an update, Safari does not read .webp format

Hello,

Hi, thanks for the great work on this card.
Is it possible to force a translation? I have my HA set to English, but would like to have the card in Dutch (NL)

Hello, sorry we can’t force the translation. If you have an example of a card that does it I want to adapt it to this card.

A user updated my air-visual-card to use translation key–maybe this will help you. You can look at this commit as an example. He also left some useful links on how to use localize function in HA.

Calling hass.localize() and passing the translation key based on the component translation: sensor.en.json
Explanation of how you can find the translation key can be found here: frontend-translations

I have installed and using this card, but I can’t figure out how to get 10 days graph on top as on your screenshot?
What I’m missing?

Where to find the body png icons? The link from the github is broken
EDIT: found them…

1 Like