Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with v4.0.0 #88

Open
ask0n opened this issue Jul 14, 2022 · 2 comments
Open

Issue with v4.0.0 #88

ask0n opened this issue Jul 14, 2022 · 2 comments

Comments

@ask0n
Copy link

ask0n commented Jul 14, 2022

Hi, after recent upgrade to v4.0.0 HA v2022.7.4 (OS 8.2) which is running on raspberry 4 is no longer able to get data from the sensor.
DEBUG log has following entries:

2022-07-14 11:34:27 DEBUG (SyncWorker_5) [custom_components.airthings_wave.sensor] Searching for Airthings sensors...
2022-07-14 11:34:27 DEBUG (SyncWorker_5) [custom_components.airthings_wave.sensor] Getting info about device(s)
2022-07-14 11:34:27 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Connecting to D8:71:4D:xx:xx:xx
2022-07-14 11:34:29 WARNING (SyncWorker_5) [bleak.backends.bluezdbus.client] Failed to cancel connection (/org/bluez/hci0/dev_D8_71_4D_xx_xx_xx): 'NoneType' object has no attribute 'call'
2022-07-14 11:34:29 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:31 WARNING (SyncWorker_5) [bleak.backends.bluezdbus.client] Failed to cancel connection (/org/bluez/hci0/dev_D8_71_4D_xx_xx_xx): 'NoneType' object has no attribute 'call'
2022-07-14 11:34:31 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:33 WARNING (SyncWorker_5) [bleak.backends.bluezdbus.client] Failed to cancel connection (/org/bluez/hci0/dev_D8_71_4D_xx_xx_xx): 'NoneType' object has no attribute 'call'
2022-07-14 11:34:33 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:36 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Connected to D8:71:4D:xx:xx:xx
2022-07-14 11:34:37 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform airthings_wave is taking over 10 seconds.
2022-07-14 11:34:39 INFO (SyncWorker_5) [custom_components.airthings_wave.sensor] D8:71:4D:xx:xx:xx: Manufacturer: Airthings AS Model: 2930 Serial: xxxxxx Device: Airthings Wave+ Firmware: G-BLE-1.5.3-master+0 Hardware Rev.: REV A
2022-07-14 11:34:39 DEBUG (SyncWorker_5) [custom_components.airthings_wave.sensor] Getting sensors
2022-07-14 11:34:39 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Connecting to D8:71:4D:xx:xx:xx
2022-07-14 11:34:44 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:46 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:49 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:52 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:54 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:56 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:34:59 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:35:01 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:35:04 DEBUG (SyncWorker_5) [custom_components.airthings_wave.airthings] Retrying D8:71:4D:xx:xx:xx
2022-07-14 11:35:06 INFO (SyncWorker_5) [custom_components.airthings_wave.airthings] Not able to connect to D8:71:4D:xx:xx:xx
2022-07-14 11:35:06 DEBUG (SyncWorker_5) [custom_components.airthings_wave.sensor] Get initial sensor data to populate HA entities

any ideas how to fix it? cc @B1ob

@B1ob
Copy link
Contributor

B1ob commented Jul 14, 2022

I think I have the same Hardware / Software as you (HAOS as well as Airthings) and I cannot reproduce this error. First question is how far away is the Airthings Device from the RPi4 (and are the batteries full)? Because in the beginning it tries to connect multiple times to get the device info and finally succeeds the fourth time. But it fails to get the sensor data and gives up after 10 times. I am currently not at home so I cannot test how it behaves when the Airthings is (nearly) outside of the Bluetooth reach.

@ask0n
Copy link
Author

ask0n commented Jul 14, 2022

The distance between devices is about 20cm, it shouldn't be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants