Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script stops working after one measurement #59

Open
MrT90 opened this issue Aug 25, 2023 · 0 comments
Open

Script stops working after one measurement #59

MrT90 opened this issue Aug 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@MrT90
Copy link

MrT90 commented Aug 25, 2023

Describe the bug
If I start the script (docker or locally) it worked for one measurement, after "Data Published.." there is no feedback anymore. Even if I wait 10min and try it again. (step on the scale again)

Log:
2023-08-25 18:22:37 - (INFO) -------------------------------------
2023-08-25 18:22:37 - (INFO) Starting Xiaomi mi Scale v0.3.5...
2023-08-25 18:22:37 - (INFO) Loading Config From Options.json...
2023-08-25 18:22:37 - (INFO) No Logging Level Provided, Defaulting to INFO...
2023-08-25 18:22:37 - (WARNING) MQTT Discovery enabled but no MQTT Prefix provided, defaulting to 'homeassistant'...
2023-08-25 18:22:37 - (INFO) Config Loaded...
2023-08-25 18:22:37 - (INFO) MQTT Discovery Setup Completed...
2023-08-25 18:22:37 - (INFO) -------------------------------------
2023-08-25 18:22:37 - (INFO) Initialization Completed, Waiting for Scale...
2023-08-25 18:22:49 - (INFO) Publishing data to topic miscale/Jo/weight: {"weight":79.60,"weight_unit":"kg","bmi":24.57,"basal_metabolism":1632.23,"visceral_fat":13.71,"timestamp":"2023-08-25T18:22:49+00:00"}
2023-08-25 18:22:49 - (INFO) Data Published ...

If I restart the script it will mqtt push the last measurement (without stepping on the scale again): (See log time it starts and pushed instantly the "cached" measurement

2023-08-25 18:33:56 - (INFO) -------------------------------------
2023-08-25 18:33:56 - (INFO) Starting Xiaomi mi Scale v0.3.5...
2023-08-25 18:33:56 - (INFO) Loading Config From Options.json...
2023-08-25 18:33:56 - (INFO) No Logging Level Provided, Defaulting to INFO...
2023-08-25 18:33:56 - (WARNING) MQTT Discovery enabled but no MQTT Prefix provided, defaulting to 'homeassistant'...
2023-08-25 18:33:56 - (INFO) Config Loaded...
2023-08-25 18:33:56 - (INFO) MQTT Discovery Setup Completed...
2023-08-25 18:33:56 - (INFO) -------------------------------------
2023-08-25 18:33:56 - (INFO) Initialization Completed, Waiting for Scale...
2023-08-25 18:33:57 - (INFO) Publishing data to topic miscale/Jo/weight: {"weight":79.40,"weight_unit":"kg","bmi":24.51,"basal_metabolism":1629.24,"visceral_fat":13.61,"timestamp":"2023-08-25T18:33:57+00:00"}
2023-08-25 18:33:57 - (INFO) Data Published ...

To Reproduce
Start Script/Docker -> get on the scale -> scale recognized and send to mqtt broker -> script stop working

Expected behaviour
I guess it should loop and be ready to measure again.

Screenshots
If applicable, add screenshots to help explain your problem.

Scale (please complete the following information):

  • Xiaomi Scale 2
  • XMTZC04HM

Desktop/Server (please complete the following information):

  • Docker or manually ran after a Git Clone? -> Git Clone and run & also Docker container (docker-compose)
  • Device used to run the Script/Container [e.g. Raspberry Pi, NUC] -> Raspberry Pi 3B
  • Bluetooth device used [e.g. Built-in, USB Dongle] -> Built-in

Additional context
Add any other context about the problem here.

@MrT90 MrT90 added the bug Something isn't working label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant