fsaris / home-assistant-awox

AwoX mesh light integration for Home Assistant
MIT License
83 stars 23 forks source link

light no longer connects after last update. #113

Closed Jinguba closed 4 months ago

Jinguba commented 6 months ago

I have a Awox Panel (Eglo RGB + TW) that was working fine before the last update.

Now the lights are unavailable, this is what I can see on the Log:

Logger: custom_components.awox.awox_mesh Source: helpers/update_coordinator.py:345 Integration: AwoX MESH control (documentation, issues) First occurred: 7 de fevereiro de 2024 às 21:57:13 (2 occurrences) Last logged: 7 de fevereiro de 2024 às 22:03:59

Error fetching awox data: No device connected

jekkel commented 6 months ago

Confirmed, same here. Same log entry. Debug log:

2024-02-08 17:22:03.949 DEBUG (MainThread) [custom_components.awox.awox_mesh] [G0hGF8B0] Scan result: {'A4:C1:38:98:16:AB': {'mac': 'A4:C1:38:98:16:AB', 'name': 'G0hGF8B0', 'rssi': None}, 'A4:C1:38:4D:E6:FD': {'mac': 'A4:C1:38:4D:E6:FD', 'name': 'G0hGF8B0', 'rssi': None}, 'A4:C1:38:F1:E8:CE': {'mac': 'A4:C1:38:F1:E8:CE', 'name': 'G0hGF8B0', 'rssi': None}}
2024-02-08 17:22:03.949 INFO (MainThread) [custom_components.awox.awox_mesh] [G0hGF8B0][EGLO RGB+TW][a4:c1:38:4d:e6:fd] Bluetooth scan returns no RSSI value
2024-02-08 17:22:03.950 INFO (MainThread) [custom_components.awox.awox_mesh] [G0hGF8B0][EGLO RGB+TW][a4:c1:38:98:16:ab] Bluetooth scan returns no RSSI value
2024-02-08 17:22:03.950 INFO (MainThread) [custom_components.awox.awox_mesh] [G0hGF8B0][EGLO RGB+TW][a4:c1:38:f1:e8:ce] Bluetooth scan returns no RSSI value
2024-02-08 17:22:03.951 INFO (MainThread) [custom_components.awox.awox_mesh] [G0hGF8B0] Queue command requestStatus {'dest': 65535, 'withResponse': True}
2024-02-08 17:22:03.952 DEBUG (AwoxMeshCommands-G0hGF8B0) [custom_components.awox.awox_mesh] [G0hGF8B0] process 0/0 - {'command': 'requestStatus', 'params': {'dest': 65535, 'withResponse': True}, 'callback': <function AwoxMesh._async_add_command_to_queue.<locals>.command_executed at 0x7f643822a0>, 'allow_to_fail': False}
2024-02-08 17:22:03.957 WARNING (AwoxMeshCommands-G0hGF8B0) [custom_components.awox.awox_mesh] [G0hGF8B0] Command failed, retry 1
2024-02-08 17:22:03.960 WARNING (AwoxMeshCommands-G0hGF8B0) [custom_components.awox.awox_mesh] [G0hGF8B0] Command failed, retry 2
2024-02-08 17:22:03.962 WARNING (AwoxMeshCommands-G0hGF8B0) [custom_components.awox.awox_mesh] [G0hGF8B0] Command failed, retry 3
2024-02-08 17:22:03.965 DEBUG (AwoxMeshCommands-G0hGF8B0) [custom_components.awox.awox_mesh] [G0hGF8B0] get item from queue
2024-02-08 17:22:03.974 ERROR (MainThread) [custom_components.awox.awox_mesh] Error fetching awox data: No device connected
OkOtChA666 commented 6 months ago

Same

fsaris commented 6 months ago

Please consider to switch to a dedicated ESP32 module with https://github.com/fsaris/EspHome-AwoX-BLE-mesh-hub it's more stable then this HA integration

I'm currently not using and/or developing this integration

beardeddragon5 commented 4 months ago

You can fix it by changing this line to:

rssi_search = re.search(r'RSSI: (?:0x[0-9a-f]{8})? \((-[0-9]+)\)$', line)
fsaris commented 4 months ago

@beardeddragon5 tnx for the fix. updated the code