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.

Lost Connection with LYWSDCGQ after upgrade to HA 0.112

See original GitHub issue

Hello,

i run HA core on RPi 3b with Buster.

With 0.111.4 version all work fine but, after upgrade to 0.112, i lose connection with my Xiaomi Hygrothermograph.

This is my basically configuration:

sensor:
  - platform: mitemp_bt
     batt_entities: true

and this is log:

Jul  1 20:58:34 raspberrypi hass[486]: 2020-07-01 20:58:34 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Jul  1 20:58:34 raspberrypi hass[486]: Traceback (most recent call last):
Jul  1 20:58:34 raspberrypi hass[486]:   File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
Jul  1 20:58:34 raspberrypi hass[486]:     result = self.fn(*self.args, **self.kwargs)
Jul  1 20:58:34 raspberrypi hass[486]:   File "/home/homeassistant/.homeassistant/custom_components/mitemp_bt/sensor.py", line 775, in update_ble
Jul  1 20:58:34 raspberrypi hass[486]:     discover_ble_devices(config, aeskeys, whitelist)
Jul  1 20:58:34 raspberrypi hass[486]:   File "/home/homeassistant/.homeassistant/custom_components/mitemp_bt/sensor.py", line 669, in discover_ble_devices
Jul  1 20:58:34 raspberrypi hass[486]:     sensors[b_i].schedule_update_ha_state()
Jul  1 20:58:34 raspberrypi hass[486]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 416, in schedule_update_ha_state
Jul  1 20:58:34 raspberrypi hass[486]:     assert self.hass is not None
Jul  1 20:58:34 raspberrypi hass[486]: AssertionError

i try to do again command for setcap, but nothing change i try with hcitool lescan and this found my device

restart HA many times, rebooted Rpi, nothing change

sometime, at start with these errors, found only battery entity rare times, only temperature entity

i repeat with 0.111.4 all work fine

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:34

github_iconTop GitHub Comments

5reactions
Sciallacommented, Jul 2, 2020

Please try the latest beta version 0.7.1.

Yeahhh!!

This solve every problem for me!!!

Thanks!

5reactions
Ernst79commented, Jul 2, 2020

Please try the latest beta version 0.7.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lost connection after update to HassOs 4.14 #123 - GitHub
running on RPI 3 and got an update to HassOS 4.14 where all my connections ... Lost Connection with LYWSDCGQ after upgrade to...
Read more >
Xiaomi Mijia BLE Sensors - ESPHome
After the connection is established, you press the “Do Activation” button and the new key will be shown in the “Mi Bind Key”...
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