-
Notifications
You must be signed in to change notification settings - Fork 3
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
Failed setup, will retry: Data length mismatch. Read 28 bytes of 24- Event 39 #21
Comments
2024-08-12 16:32:00.625 DEBUG (MainThread) [custom_components.husqvarna_automower_ble] connecting to F0:F8:F2:C6:AA:5F with channel ID 1189179191 |
Hi, |
I have the same problem but with a Husqvarna 315. |
If you delete the integration, disable the PIN on your Husqvarna or enter the pin in the integration does that solve the issue? |
I have tried deleting and installing the integration again and disabled PIN on the mower. No luck. |
Deleted the pin and tried with the MAC + deleting the 0 in the pin input box, I do get: Automower BLE component for HASS
|
I get the same. Intergration version 0.0.7. PIN disabled (security setting 'Low'). All previously paired devices deleted from mower. I get the same with PIN set (security setting 'High').
|
+1 on the same problem on a 310. It seems to connect and read info ok (like battery level etc) looking at the logs, but it still fails to set up the integration with “Data length mismatch Read 28 bytes of 24” |
Sorry for being out of action a while, I'll take a look and see what I can do, it does look like it's coming from the underlying library itself, so I may just need to code an exception into our HACS integration to avoid the crash |
The common error here is the automower 310 and the "GetAllStatistics" command, I wonder if that mower doesn't support that command for some reason and the upstream library is throwing an exception in automower_ble/protocol.py line 207. Meanwhile I'll see if I can do anything to make error handling on the integration more robust. |
I've added a try except around that command, see if branch issue21 works around it for you. |
I'll try the both the branch and the library outside of HA as soon as possible. Thank you for your efforts. |
Hi, I've also tested to copy coordinator.py from Issue21. Works for me too, the integration was created - Great job @andyb2000 :-) |
I also could configure the integration now, however missing some diagnostics. After a while the connection was lost and has never reconnected even though the mower and BLE gateway are close to each other. |
I'm also experiencing same issue:
|
Hi,
What have I missed if I get this:
Husqvarna Automower BLE
0.0.9
Unknown Automower
Failed setup, will retry: Data length mismatch. Read 28 bytes of 24
[16:21:00][D][esp32_ble_tracker:270]: Starting scan...
[16:21:25][I][bluetooth_proxy:282]: [1] [F0:F8:F2:C6:AA:5F] Connecting v3 without cache
[16:21:25][D][esp32_ble_tracker:219]: Pausing scan to make connection...
[16:21:25][D][esp32_ble_tracker:307]: End of scan.
[16:21:25][I][esp32_ble_client:067]: [1] [F0:F8:F2:C6:AA:5F] 0x00 Attempting BLE connection
[16:21:25][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_CONNECT_EVT
[16:21:25][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_OPEN_EVT
[16:21:25][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_SEARCH_CMPL_EVT
[16:21:25][I][esp32_ble_client:227]: [1] [F0:F8:F2:C6:AA:5F] Connected
[16:21:25][D][esp32_ble_client:188]: [1] [F0:F8:F2:C6:AA:5F] cfg_mtu status 0, mtu 65
[16:21:25][I][esp32_ble_client:333]: [1] [F0:F8:F2:C6:AA:5F] auth complete. remote BD_ADDR: f0f8f2c6aa5f
[16:21:25][D][esp32_ble_client:341]: [1] [F0:F8:F2:C6:AA:5F] auth success. address type = 0 auth mode = 1
[16:21:25][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_READ_CHAR_EVT
[16:21:25][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_READ_CHAR_EVT
[16:21:26][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_READ_CHAR_EVT
[16:21:26][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_READ_CHAR_EVT
[16:21:26][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_READ_CHAR_EVT
[16:21:26][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_REG_FOR_NOTIFY_EVT
[16:21:26][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_DESCR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:31][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:32][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:32][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_WRITE_CHAR_EVT
[16:21:32][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:32][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:32][D][esp32_ble_client:110]: [1] [F0:F8:F2:C6:AA:5F] ESP_GATTC_NOTIFY_EVT
[16:21:32][D][esp32_ble_client:306]: [1] [F0:F8:F2:C6:AA:5F] Event 39
[16:21:32][I][esp32_ble_client:084]: [1] [F0:F8:F2:C6:AA:5F] Disconnecting.
[16:21:32][D][esp-idf:000][BTU_TASK]: W (9788952) BT_HCI: hci cmd send: disconnect: hdl 0x1, rsn:0x13
[16:21:32][D][esp-idf:000][BTU_TASK]: W (9788956) BT_APPL: gattc_conn_cb: if=3 st=0 id=259 rsn=0x16
[16:21:32][D][esp-idf:000][BTU_TASK]: W (9788959) BT_APPL: gattc_conn_cb: if=4 st=0 id=260 rsn=0x16
[16:21:32][D][esp-idf:000][BTU_TASK]: W (9788966) BT_APPL: gattc_conn_cb: if=5 st=0 id=261 rsn=0x16
[16:21:32][D][esp-idf:000][BTU_TASK]: W (9788976) BT_HCI: hcif disc complete: hdl 0x1, rsn 0x16
I have a Husqvarna Automower 310.
The text was updated successfully, but these errors were encountered: