zewelor / bt-mqtt-gateway

A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
MIT License
548 stars 116 forks source link

Exception: Impedance is too high (limit >3000ohm) #174

Open Robinek70 opened 4 years ago

Robinek70 commented 4 years ago

Exception: Impedance is too high (limit >3000ohm) is rised if Mi Scale 2 report only weight, measure in socks ;)

Steps to reproduce the behavior:

  1. Run bt-mqtt-gateway
  2. Stand on Mi Scale 2 in socks
  3. after a few moments Exception is raised
  4. bt-mqtt-gateway process stop working

Expected behavior I think, it should be logger only warning and report to mqtt only weight and process still should work.

Config Mi Scale 2 configured

Debug gateway logs Exception: Impedance is too high (limit >3000ohm)

Server: Raspbian

jd1 commented 4 years ago

I ran into the same problem, but I started the gateway with systemd and now it keeps restarting after the exception was thrown. I can understand that the input values are validated, but it should not stop the gateway. I would prefer if illegal values are just ignored.