No longer working after updating to Home Assistant 2021.4.0
Closed this issue · 1 comments
Problem description
After updating Home Assistant to version 2021.4.0 the Thingys couldn't be reached anymore. Everything was working fine with previous version 2021.3.0.
Versions
-
thingy52_homeassistant VERSION = '0.0.2'
-
Version core-2021.4.0
-
supervisor-2021.03.9
-
Home Assistant OS 5.13
Details
After shaking the Thingys I could connect via the Nordic Thingy:52 app and also read the sensor data.
Logs
There are a few log entries:
Logger: homeassistant.loader
Source: loader.py:783
First occurred: 17:16:04 (1 occurrences)
Last logged: 17:16:04
You are using a custom integration thingy52 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
Logger: custom_components.thingy52.sensor
Source: custom_components/thingy52/sensor.py:156
Integration: thingy52 (documentation)
First occurred: 17:16:45 (3 occurrences)
Last logged: 17:16:45
#[THINGYSENSOR]: Unable to connect to Thingy (Thingy52Office): Failed to connect to peripheral ee:66:42:62:6e:42, addr type: random
#[THINGYSENSOR]: Unable to connect to Thingy (Thingy52Wohnz): Failed to connect to peripheral ce:21:63:15:05:c9, addr type: random
#[THINGYSENSOR]: Unable to connect to Thingy (Thingy52Schlafz): Failed to connect to peripheral d8:b8:e1:4f:80:69, addr type: random
Configuration
One Thingy:52 in configuration.yaml (the other two are similar):
- platform: thingy52
friendly_name: Thingy52Office
refresh_interval:
minutes: 1
gas_interval: 3
mac: "ee:66:42:62:6e:42"
sensors:- temperature
- humidity
- co2
- tvoc
- pressure
- battery
Hardware
- Raspberry Pi 3B+
- Integrated Bluetooth
Meanwhile I found the solution:
- Delete folder config/custom_components/thingy52/pycache
- Shake Thingy:52
- Connect with Nordic Thingy:52 app
- Disconnect
- Restart Home Assistant
All sensors are working again.