Hi, I could use some help as I’m stuck setting up the Airthings Wave in HA.
I’ve repeated the setup process multiple times using the Airthings BLE plugin but got the same results. The dashboard only populates with a “dummy” default data and stays like that all day.
I’ve found that there is a security error in the log, but I’m unable to figure out what is causing the error.
Error 0x0E Host Rejected due to security reasons (The host at the remote side has rejected the connection because the remote host determined that the local host did not meet its security criteria.)
I’m running the latest HA in the VM on Windows 10 desktop. The bluetooth adapter is Plugable Bluetooth 4.0 and the Airthing Wave is less than 2m away.
Any help is appreciated.
AIRTHINGS BLE LOG FILE
[16:34:49] INFO: Internal MQTT service found, fetching configuration ...
[16:34:50] INFO: Starting python script...
[2023-01-13 16:34:50] INFO: Setting up Airthings sensors...
[2023-01-13 16:34:55] WARNING: Error getting hardware_rev
[2023-01-13 16:34:58] INFO: f0:f8:f2:4f:5a:61: Manufacturer: Airthings AS Model: 2900 Serial: Serial Number Device: AT#-----/-----Radon Firmware: COR9001B.1703301 Hardware Rev.:
[2023-01-13 16:35:17] ERROR: Error getting sensor data for 'f0:f8:f2:4f:5a:61': [org.bluez.Error.Failed] Operation failed with ATT error: 0x0e (Connection Rejected Due To Security Reasons)
Traceback (most recent call last):
File "/src/airthings.py", line 316, in get_sensor_data
data = await self._dev.read_gatt_char(characteristic.uuid)
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 572, in read_gatt_char
assert_reply(reply)
File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/utils.py", line 22, in assert_reply
raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] Operation failed with ATT error: 0x0e (Connection Rejected Due To Security Reasons)
[2023-01-13 16:35:17] INFO: Sending HA mqtt discovery configuration messages...
[2023-01-13 16:35:17] INFO: Sending messages to mqtt broker...
[2023-01-13 16:35:17] INFO: Done sending messages to mqtt broker.
[2023-01-13 16:35:17] INFO: Done sending HA mqtt discovery configuration messages.
[2023-01-13 16:35:22] INFO: Collecting sensor value messages...
[2023-01-13 16:35:22] INFO: airthings/f0:f8:f2:4f:5a:61/illuminance = 0.0
[2023-01-13 16:35:22] INFO: airthings/f0:f8:f2:4f:5a:61/accelerometer = 0.0
[2023-01-13 16:35:22] INFO: airthings/f0:f8:f2:4f:5a:61/humidity = 178
[2023-01-13 16:35:22] INFO: airthings/f0:f8:f2:4f:5a:61/temperature = 46.6
[2023-01-13 16:35:22] INFO: airthings/f0:f8:f2:4f:5a:61/radon_longterm_avg = 0
[2023-01-13 16:35:22] INFO: airthings/f0:f8:f2:4f:5a:61/radon_1day_avg = 0
[2023-01-13 16:35:22] INFO: Sending messages to mqtt broker...
[2023-01-13 16:35:22] INFO: Done sending messages to mqtt broker.
[2023-01-13 16:35:22] INFO: Waiting 150 seconds.