hannseman / homebridge-mi-hygrothermograph

Homebridge plugin for the Xiaomi Mi Bluetooth Temperature and Humidity Sensor
MIT License
266 stars 52 forks source link

Problems with node 12.18.0 and npm 6.14.5 #110

Closed hecguillem closed 4 years ago

hecguillem commented 4 years ago

Hello,

I am using homebridge last versión and node 12.18.0 and npm 6.4.15.

A lot of times sensor appears like " no response ", I solve it restarting homebridge and Docker, and sometimes uninstalling plugin and installing again

Also I use this command: sudo setcap cap_net_raw+eip $(eval readlink -f which node)

Any solution to fix it?

Thanks for your work and time,

Héctor

hecguillem commented 4 years ago

Solved using this command, but sometimes appears again " No response ", I don,t understand…

crontab -e

0 sudo timeout -s INT 1s hcitool lescan

Thanks to @iShift !!

hannseman commented 4 years ago

Closing this issue due to a workaround is available and the issue seems to be firmware / bluetooth library related.