Custom_component bodymiscale [For Xiaomi Miscale 1& 2] Esphome or BLE Monitor

I tried it, the attribute fat_mass_to_lose is changed back to Fat mass to lose in both files, in the const.py and the template sensor too.
I got this error in this case:

Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:486
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 12:33:43 (1 occurrences)
Last logged: 12:33:43

Invalid config for [sensor.template]: invalid template (TemplateSyntaxError: expected name or number) for dictionary value @ data['sensors']['scale_fat_mass_to_lose']['value_template']. Got "{{ states.bodymiscale.merleg.attributes.'Fat mass to lose' }}". (See ?, line ?).

Perhabs it is working with picture elements but doesn’t work as template sensor…? :thinking:

hello, this is my settings. where do you think is wrong?

@dckiller51 - that calculation for age did not take into account leap years.

I have dropped a PR to correct this and also one to suggest the ReadME is explicit on the format for the DOB - YYY-MM-DD.

HTH

Hello,
I am trying to update the bodymiscale integration to v 1.1.4 but I am getting this error after the update.
Obviously I can’t restart home assistant but luckly I can restore the backup.error when trying to update bodymiscale

The Passive BLE Monitor integration has been improved such that the impedance and weight sensors for the V2 scale now report almost simultaneously. Passive BLE Monitor integration - #410 by Ernst

I’m still seeing duplicate updates from this component though.Double reports if the two sensors are updated at different times · Issue #51 · dckiller51/bodymiscale · GitHub

V2.0.0 not triggering correctly when sensors change.

I have 2 scales defined and both updated at the same time as one of the sets of sensors updated.

Reverted to 1.1.5 and all OK @dckiller51

hello, is this card removed? i need it!!!

hey there. I really want to use mi-scale with multiple persons.
But how?

How can I use the bodymiscale integration (setup from gui) wiht multiple persons · Discussion #83 · dckiller51/bodymiscale (github.com)

Do you have still this problem with the current version 2.1.1?

I’ve not updated it. From the response I had (V2.0.0 does not trigger correctly when sensors updated · Issue #65 · dckiller51/bodymiscale · GitHub), I need to change the trigger on Node-RED and I haven’t got around to looking at it.

Can these integration be updated using new Bluetooth integration since 2022.8 ?

BLE monitor Will be converted to an Bluetooth integration, including the miscales. But it will take some time.

1 Like

Thank you! This is the answer I was praying for!

Any important benefits you expect that you were praying for the change?

single solid integration?

Hi Team. With the new updates in HA 2022.9.2, can the HA bluetooth integration work with this scale in a different way?

To be honest: I have no idea how to configure this integration.

In detail: What does it expect when asking for the weight sensor?

I have the mi scale as device_tracker integrated using Bluetooth LE Tracker - Home Assistant. I don’t have a weight sensor. Created an input_number.weight for test purposes but it is not accepted.

I thought this integration would create one! :laughing:

What am I doing wrong here… please assist.

Can I use this integration at all without having a (Xiaomi) bridge? I only have the scale + bluetooth.

Or do I need to update HA Core to a newer version, as the one I am running on currently (2022.8.7) just introduced native Bluetooth support. Is active bluetooth required? That became available in later releases (2022.9 and 2022.10 I think).

You need an integration like BLE monitor to get the weight sensor. Bluetooth LE tracker is only a device tracker, nothing more.

After that, you can use the Body miscale integration to calculate other interesting data, based on weight, length, age, etc, like BMI.

Ah I see. It’s just that because of GitHub - custom-components/ble_monitor: BLE monitor passively monitors BLE sensors (Xiaomi, Qingping, ATC, BlueMaestro, Brifit, Govee, Kegtron, Moat, Inkbird, iNode, Yeelight, RuuviTag, SensorPush, Teltonika, Thermoplus and Thermopro) I thought “well, not worth installing that custom integration as it is constantly replaced by the default integration”.

Seems like that was a wrong thougt as the default bluetooth integration simply still does not recognize my Xiaomi Miscale.

And the Xiaomi BLE integration which seems to be the successor of the BLE monitor when it comes to Xiaomi devices, can’t find any devices:
grafik
grafik

So I’m pretty stuck, especially as I’m trying to avoid installing a future deprecated custom integration…