question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error When I get off the scale

See original GitHub issue
2022-01-03 23:32:55 - Starting Xiaomi mi Scale...
2022-01-03 23:32:55 - Loading Config From Add-On Options...
2022-01-03 23:32:55 - Config Loaded...
Traceback (most recent call last):
  File "/opt/miscale/Xiaomi_Scale.py", line 276, in <module>
    main()
  File "/opt/miscale/Xiaomi_Scale.py", line 242, in main
    discovery()
  File "/opt/miscale/Xiaomi_Scale.py", line 129, in discovery
    publish.single(
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/publish.py", line 227, in single
    multiple([msg], hostname, port, client_id, keepalive, will, auth, tls,
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/publish.py", line 163, in multiple
    client.connect(hostname, port, keepalive)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 937, in connect
    return self.reconnect()
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1071, in reconnect
    sock = self._create_socket_connection()
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3522, in _create_socket_connection
    return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
  File "/usr/local/lib/python3.8/socket.py", line 808, in create_connection
    raise err
  File "/usr/local/lib/python3.8/socket.py", line 796, in create_connection
    sock.connect(sa)
socket.timeout: timed out

Mi Body Composition Scale 2 XMTZC05HM HA core-2021.12.7 - Home Assistant OS 7.1 Raspberry Pi 3b –

Why can it happen???

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lolouk44commented, Jan 3, 2022

It looks like an issue connecting to mqtt. Check your config to ensure you have the correct mqtt details

0reactions
ibanmdacommented, Jan 6, 2022

Finally it works! I taked out the batteries. Then I upgraded and rebooted the HA with succesfuly!

A lot of thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I seeing an error message on my scale?
A "Step off" message is displayed when the scale is unable to calibrate or get an accurate reading. Follow instructions in: My scale...
Read more >
Troubleshooting your scale - Noteworth Help
Below you will find answers to common issues using the iHealth bluetooth scale. Why does my scale say error? If your iHealth Lite...
Read more >
How to Know if Your Scale Is Working Correctly - wikiHow
1. Zero out the scale. Sometimes, the scale needs to be zeroed out to be accurate. This can be done in two ways,...
Read more >
BodyTrace Scale shows Error Code: Er 2 - Sharecare DPP
Make sure your scale has all 4 feet on a flat surface. · Ensure that the scale has not been moved for 60...
Read more >
Why is the Software Displaying a Scale Error Icon?
If you see the scale error icon in the Stamps.com software it can be for several reasons. If you place your cursor over...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found