lolouk44/xiaomi_mi_scale

Not working

kraineff opened this issue · 8 comments

Docker logs!
CleanShot 2019-11-26 at 04 44 28@2x

Enviroments
CleanShot 2019-11-26 at 04 45 16@2x

I run on Raspberry Pi 4

sorry not had any chance / time to look into this in more details. All I can say is that this may happen if your scale is sleeping. Doesn't impact functionality.
Just make sure also that you've set your environment entries correctly in the docker-compose file

DA726348-0C27-496C-8846-BEDB961185C6

This is my docker-compose file, I made a measurement with Mi Fit app, and its mean that scales not sleep, and after that I checked MQTT topics, and there no miScale topic, and also same error in console!

Stupid question, were you using the MiFit app every time you tested? I'm not sure the scale accepts multiple simultaneous bluetooth connections...
With the mifit app not running/killed, start the container.
Step on the scale and get a reading. It should then show up on mqtt.
Also how do you check your MQTT topic?
Last but not least: I don't have a Pi4 to test, have you tried on a different device/architecture (in case it's purely a Pi4 architecture issue)

No I tried only once with Mi Fit running, the other times were without the app!
For check MQTT I use MQTT Explorer
CleanShot 2019-12-12 at 14 59 20@2x
And also I have Raspberry PI 3b+, I can test on it!

Thanks. If you could test on your Pi3. For Pi1 and Pi3 I actually built the docker container on the RPI itself, but for Pi4 I used docker desktop on Windows which was supposed to allow cross platform build...

I'm getting the same failure here on a RPi3.

Interestingly the test script works fine.

image

That error message occurs if there's an issue with the impedance reading. Doesn't stop the script from running. If you step on the scale barre feet the error should not show up. I need to add a catch so it doesn't look like it fails.