ble_monitor: ble_monitor receives value only once after submit and throws exception

I have clean installation (after many tries) of Home Assistant in VM (TrueNAS Scale is host OS) with HACS and Passive BLE Monitor. System has two bluetooth devices - Intel (internal) and dongle. In both cases (regardless of selected bluetooth interface) BLE monitor receives data from ble devices once, throws one of two errors and retrieves no more data until system reboot or Submit button pressing.

Errors are:

2022-02-01 07:13:16 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/ble_monitor/sensor.py", line 234, in async_run
entity = sensors[device_sensors.index(measurement)]
IndexError: list index out of range

or

2022-02-01 19:46:57 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/ble_monitor/sensor.py", line 235, in async_run
entity.collect(data, period_cnt, batt_attr)
File "/config/custom_components/ble_monitor/sensor.py", line 516, in collect
self._measurements.append(data[self.entity_description.key])
KeyError: 'voltage'

BLE devices are CGG1, two different versions from ClearGrass and Qingping, one of them - with ATC firmware (unfortunately I can’t recall which of them). There are same errors on raspberry pi model 3 b+ with internal bluetooth and external dongle. I tried many times to install, remove, reinstall ble_monitor, HACS and Home Assistant at all and every time there is an error described.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15

Most upvoted comments

Fixed in 7.5.1