I’m using the BLE_Monitor for a long time now and my temperature sensors (Xiaomi LYWSDCGQ) were updating every minute. Since some time (a couple of weeks), the update is very irregular. This varies between 4 minutes and over an hour.
Since I’m also using these sensors to controle my heating, this is kind of annoying…
If I look in the home-assistant .log, I see the following error message:
2022-04-26 18:10:17 ERROR (Thread-3) [homeassistant] Error doing job: Fatal error: protocol.data_received() call failed.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 870, in _read_ready__data_received
self._protocol.data_received(data)
File "/usr/local/lib/python3.9/site-packages/aioblescan/aioblescan.py", line 1855, in data_received
self.process(packet)
File "/config/custom_components/ble_monitor/__init__.py", line 662, in process_hci_events
sensor_msg, tracker_msg = self.ble_parser.parse_data(data)
File "/config/custom_components/ble_monitor/ble_parser/__init__.py", line 288, in parse_data
sensor_data = parse_inkbird(self, man_spec_data, complete_local_name, mac, rssi)
File "/config/custom_components/ble_monitor/ble_parser/inkbird.py", line 132, in parse_inkbird
"type": device_type,
UnboundLocalError: local variable 'device_type' referenced before assignment
Does anyone know what is going on here?
If more information is needed, please let me know. Currently I have no clue in where to start looking…