network_mode: host
privileged: true
environment:
- MISCALE_MAC="xx:xx:xx:xx:xx:xx" # Mac address of your scale
- MQTT_HOST=192.168.1.2 # MQTT Server (defaults to 127.0.0.1)
- MQTT_PREFIX=miScale
- MQTT_USERNAME=xxxxx # Username for MQTT server (comment out if not required)
- MQTT_PASSWORD=xxxxx # Password for MQTT (comment out if not required)
- MQTT_PORT=1883 # Defaults to 1883
- MQTT_TIMEOUT=30 # Defaults to 60
# Auto-gender selection/config -- This is used to create the calculations such as BMI, Water/Bone Mass etc...
# Up to 3 users possible as long as weights do not overlap!
- USER1_GT=73 # If the weight is greater than this number, we'll assume that we're weighing User #1
- USER1_SEX=male
- USER1_NAME=roberto # Name of the user
- USER1_HEIGHT=179 # Height (in cm) of the user
- USER1_DOB="1989-09-20" # DOB (in yyyy-mm-dd format)
- USER2_LT=52 # If the weight is less than this number, we'll assume that we're weighing User #2
- USER2_SEX=female
- USER2_NAME=laura # Name of the user
- USER2_HEIGHT=160 # Height (in cm) of the user
- USER2_DOB="1991-02-12" # DOB (in yyyy-mm-dd format)
if you’re sure your mqtt settings are correct, then make sure the mi app is not running on your phone, step on the scale, wait to get a reading displayed on the scale, then step off.
Next wait up to 5 min (until the minute number ends with 5 or 0) and you should get something sent to MQTT. If not it probably means your MQTT settings are not correct. In any case try and get me the log from then
I will look again, but if my configuration is correct, in addition to the same configuration by my explorer I can see everything in my computer without problem …
I have done what he told me, I have climbed the scale and waited, but nothing has changed
yes, i have the last version, and it’s really nice
but i wondering if you have seen if is possible to get weight data during measurement. before it defines the correct weight, like the app
That would be kind of pointless. Remember HA saves all the states so you’ll end up with lots of incorrect data saved "just so it looks like it’s moving while you weigh yourself "
it depends of the use that we can do with this kind of data.
for example for a smart mirror in front of the scale. i think that saves states in HA is not the only way with this data can be used.
Thanks. Even then it would not behave like the Xiaomi app. There would be Too much latency between mqtt getting the messages then ha receiving them. I probably won’t implement this to be honest
I have a question, everything is working but the mqtt topic keeps sending “miScale/David/weight” instead of the name i gave to the user in compose file.
What am i missing?
Sorry missed this one
You can’t use both at the same time
Once the app or the component runs it pretty much takes control of the communication And won’t allow another app to connect
I personally no longer use the mi app anymore
got it, replace the columns : with equal signs = in your docker-compose
For some reason my github /docker were showing an old version of docker-compose (just fixed this).