@Tobi0892 There is possibility to contact with you with some other way? For example discord or something else? I have a few questions.
Got a message
ok works, Dockerfile.txt that is wrong it must be Dockerfile,I installed it, but it still doesn’t work,
SCREEN
@djmalin In the current form, the python code does not support stalling. Exit code 1 means that the data collected from the scale is invalid or in other words the validity Check of the wight and impedance exited with values out of bounds that “apply to humans“. You need to stay on the scale until the bars are full underneath the weight and start blinking, then step down.
In the next days I will update the Code so That when stalling only a weight is reported but not the other values that depend on a valid impedance (as for sporty people the results are just rubbish)
@Tobi0892 I installed the addon - everything works, thanks!
I did a small change in my local version - changed cron scherule to run every 5 mins between 6 and 8 in the morning, as I’m using the scale only in the mornings, so no reason to run it more frequently
Hello @ Tobi0892, I was able to read the data from the balance, but now I do not forward information? What could be wrong? https://imgur.com/a/pxagJJ2
Is there a plan on creating an integration for this component? Or is there any custom component to run the available codes? Thank you. Running HASS on a NUC/Ubuntu.
I recommend to use the MQTT Server & Web client, set up a user and password there and insert both in the Dockerfile
Finally create the mqtt sensors in home assistant and you should be completely fine
@Tobi0892 I only have a Mosquitto broker, but this something does not forward data to the script? could you test this broker and see if it will work for you? the one who gave the broker something I do not want to work
I have installed the addon on my RPi4 with Hassio 0.104.2 following the instructions up to the T but I’m not getting anything in the sensor (error 1 is NOT in the logs). MAC address is correct, mqtt server and login are correct, sensors are created correctly, HA has been restarted, I repeatedly weighted myself until the bar lights up twice. I use Mosquitto mqtt broker. I don’t see anything related to the scale in MQTT Explorer.
Any tips?
EDIT: I’m getting the measurement only after disabling BT on my phone. Is unpairing required?
EDIT2: I got a measurement exactly once. Subsequent measurements are ignored.
Don’t have the mi app open as it may take over the bt connection
Also best in mind it’ll take up to 5 min for the script to run (it runs every 5 min from a cron job)
Try a tool like mqtt.fx to see if data is correctly sent
Ah, I missed the cron job part. Now it makes sense and it does indeed work so far. Thanks for your help!
Hello, I have followed https://github.com/lolouk44/xiaomi_mi_scale all the steps, in Home assistant the sensors appear but it does not mark any weight or body mass, I think I need to connect the scale in some way to Home assistant or to me raspberry pi 4 (I have esp32 with esphome too) how do I connect the scale to my pi 4 or home assistant do you know the steps? thanks.
You probably need to read the setup again and make sure the mqtt settings are correct in the Setting file as well as the weight / user names
Have you tried another tool like mqtt.fx to test that you receive data from the scale?
Hello, I have tried mqtt explorer and there is no data from the scale (but I also did nothing to connect the scale with pi or home assistant, I don’t know if I am missing a step) I use Docker for HA and for MQTT also for your image, now I use pi 4 4gb, I didn’t do the CRON part because you say it’s only for non-compatible systems and mine is compatible, okay? I do not know that it may be failing but there is no connection between my pi / ha and the scale, therefore there is no information.
if you get nothing in mqtt.fx you’ll get nothing in HA.
Double check your MQTT settings first. then also check that you’re subscribing to the correct topic: provided you haven’t changed it in docker-compose.yml subscribe to miScale/# to get all messages sent to miScale and its sub topics
I’ve done everything as it appears on your site and put the data correctly, but nothing gets MQTT, so I don’t know where the problem is?
What does subscribe to my scale mean? How should I do reso?
the miscale log throws this
standard_init_linux.go:211: exec user process caused “no such file or directory”
subscribing means the mqtt node (ha or mqtt.fx) will subscribe to the topic and read/save all messages sent to the topic.
cool. step on the scale, get a reading, then step off
Then wait up to 5 min (any minute ending 0 or 5) and see what you get in the logs