Skip to content

Simple scripts to read BLE data from Yunmai Smart Scale and upload it to MQTT

License

Notifications You must be signed in to change notification settings

Paxy/yunmai-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yunmai-mqtt

Simple scripts to read BLE data from Yunmai Smart Scale and upload it to MQTT

Tools

  • yunmai.py - command line to connect to BLE Yunmai scale, wait for meassurment data, and display the results in JSON form.
  • yunmai-mqtt.py - daemon that keeps running in the loop waiting scale meassures. After each meassure, it sends data to MQTT server.

JSON results sample: {"weight": 86.9 , "fat": 25 , "muscle": 52 , "water": 54 , "boneMass": 4 , "skeletalMuscle": 45 , "leanBodyMass": 65 , "visceralFat": 9 }

Configuration:

Variables are configured directly inside the scripts.

  • mac - Yunmai Scale MAC address
  • sex - 1 for Male, 2 for Female
  • height - Heigh
  • veryActive - (True/False) - are you sports active person
  • age - Age
  • mqttServer - MQTT Server IP address
  • mqttPrefix - MQTT topic prefix

Notice:

On my Yunmai Mini2 Smart Scale, there is a issue with firmware. Only frist time after inserting the batteries, values other then weight is meassured and sent. So, if you have the issue that only weight is meassured, you need to "reset" your scale every time and you will get other parameters.

About

Simple scripts to read BLE data from Yunmai Smart Scale and upload it to MQTT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published