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 23 forks source link

Show values to lbs #13

Closed benquan closed 2 years ago

benquan commented 2 years ago

I usually use pounds(lbs) but the output is only in kg. Could you give a choice in the lovelace configuration to display lbs?

dckiller51 commented 2 years ago

I usually use pounds(lbs) but the output is only in kg. Could you give a choice in the lovelace configuration to display lbs?

You only want the unit of measurement or the conversion ?

benquan commented 2 years ago

The conversion! I can do it by creating a bunch of template sensors, but it's not a clean solution.

dckiller51 commented 2 years ago

La conversion! Je peux le faire en créant un tas de capteurs modèles, mais ce n'est pas une solution propre.

I found the solution. Question in French the units are never in the plural. Example 50 kilograms = 50 kg and not 50 kgs. For you I must put 50 lb or 50 lbs?

dckiller51 commented 2 years ago

https://github.com/dckiller51/lovelace-body-miscale-card/releases/tag/v5.6.0

benquan commented 2 years ago

La conversion! Je peux le faire en créant un tas de capteurs modèles, mais ce n'est pas une solution propre.

I found the solution. Question in French the units are never in the plural. Example 50 kilograms = 50 kg and not 50 kgs. For you I must put 50 lb or 50 lbs?

lbs always

benquan commented 2 years ago

Wow! thanks a million!

benquan commented 2 years ago

@dckiller51 One minor detail. when graphing, lbs are graphed against kg baseline:

Screen Shot 2021-09-08 at 9 10 36 PM
dckiller51 commented 2 years ago

@dckiller51 One minor detail. when graphing, lbs are graphed against kg baseline:

Screen Shot 2021-09-08 at 9 10 36 PM

The values have been changed. Attention these data are related to my score. You have to adapt your data with your mitfit application.

https://github.com/dckiller51/lovelace-body-miscale-card#options