KalininAndreyVictorovich / mitemp_cgg1-home-assistant

Home-Assistant sensor Xiaomi ClearGrass Temperature and Humidity Sensor with Bleutooth LE and E-Ink display
MIT License
6 stars 0 forks source link

Freeze after few hours #1

Open lazlyhu opened 4 years ago

lazlyhu commented 4 years ago

Hi!

Thank you for your solution, working fine generally.

But I recognised It's freeze permanently after few (6-24) hours, and can't fetch the data from BLE again, just a HA restart solve it. I use HassOS 2.12 and HA 0.102.2 on a RPi 3+

On HA log I found these:

Polling error [Errno 32] Broken pipe
20:07 custom_components/mitemp_cgg1/sensor.py (WARNING) - message first occurred at 2019. december 12. 7:04 and shows up 8608 times

Polling error Failed to connect to peripheral xx:xx:xx:xx:xx:xx, addr type: public
2019. december 12. 6:53 custom_components/mitemp_cgg1/sensor.py (WARNING) - message first occurred at 2019. december 10. 11:32 and shows up 99 times

Update of sensor.nappali_homero_temperature is taking over 10 seconds
2019. december 12. 4:21 __main__.py (WARNING) - message first occurred at 2019. december 10. 11:16 and shows up 36 times

Update of sensor.nappali_homero_humidity is taking over 10 seconds
2019. december 12. 3:55 __main__.py (WARNING) - message first occurred at 2019. december 10. 11:33 and shows up 24 times

Updating mitemp_cgg1 sensor took longer than the scheduled update interval 0:00:30
2019. december 11. 17:57 helpers/entity_platform.py (WARNING) - message first occurred at 2019. december 11. 13:55 and shows up 2 times

Do you have idea how can I make this stable?

NickDePooter commented 4 years ago

Same issue here

walk0080 commented 3 years ago

Same issue on HA 0.117.0:

Polling error Device disconnected 12:55:20 PM – mitemp_cgg1 (WARNING) - message first occurred at 12:43:24 PM and shows up 13 times Update of sensor.mitemp_bt_temperature is taking over 10 seconds 12:55:06 PM – helpers/entity.py (WARNING) - message first occurred at 12:43:23 PM and shows up 6 times Config entry for brother not ready yet. Retrying in 5 seconds 12:42:59 PM – config_entries.py (WARNING) - message first occurred at 12:42:43 PM and shows up 3 times