Patrick762 / hassio-bluetti-bt

Bluetti Integration for Home Assistant
MIT License
47 stars 14 forks source link

[Bug]: AC180 won't connect using Bluetooth Proxy #110

Open drjjr2 opened 4 months ago

drjjr2 commented 4 months ago

What happened?

I have a new AC180 and an ESP32 Bluetooth proxy and while the integration finds the device, it only shows one sensor and one diagnostic that never get updated.

Screenshot 2024-06-02 134511

What version of our software are you running?

0.1.1

What device are you seeing the problem on?

AC180 IoT version v9046.01 ARM version v2107.02 DSP version v2102.02 BMS version v1052.02

What bluetooth connection are you using?

ESPHome bluetooth proxy

Have you changed the integration settings?

false

Integration settings (if you changed them)

No response

Relevant log output

No response

jsaiko commented 3 months ago

Hello. I am also getting this error. Here are my logs from the ESP32 proxy.

[22:12:04][W][bluetooth_proxy.connection:081]: [0] [C9:9C:3C:7B:C7:80] Error writing char/descriptor at handle 0x22, status=133
[22:12:04][D][esp32_ble_client:172]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_DISCONNECT_EVT, reason 19
[22:12:04][D][esp32_ble_client:110]: [0] [] ESP_GATTC_CLOSE_EVT
[22:12:04][W][bluetooth_proxy:367]: Cannot write GATT characteristic, not connected
[22:12:24][I][bluetooth_proxy:282]: [0] [C9:9C:3C:7B:C7:80] Connecting v3 without cache
[22:12:24][D][esp32_ble_tracker:215]: Pausing scan to make connection...
[22:12:24][I][esp32_ble_client:067]: [0] [C9:9C:3C:7B:C7:80] 0x00 Attempting BLE connection
[22:12:24][D][esp-idf:000][BTU_TASK]: W (2091377) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e

[22:12:24][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_CONNECT_EVT
[22:12:24][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_OPEN_EVT
[22:12:24][D][esp32_ble_tracker:266]: Starting scan...
[22:12:24][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_SEARCH_CMPL_EVT
[22:12:24][I][esp32_ble_client:227]: [0] [C9:9C:3C:7B:C7:80] Connected
[22:12:24][D][esp32_ble_client:188]: [0] [C9:9C:3C:7B:C7:80] cfg_mtu status 0, mtu 517
[22:12:24][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_REG_FOR_NOTIFY_EVT
[22:12:24][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_WRITE_DESCR_EVT
[22:12:24][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_NOTIFY_EVT
[22:12:24][D][esp-idf:000][BTU_TASK]: W (2091902) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x13

[22:12:24][D][esp-idf:000][BTU_TASK]: W (2091906) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x13

[22:12:24][D][esp-idf:000][BTU_TASK]: W (2091908) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x13

[22:12:24][D][esp-idf:000][BTU_TASK]: W (2091910) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x13

[22:12:24][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_WRITE_CHAR_EVT
[22:12:24][W][bluetooth_proxy.connection:081]: [0] [C9:9C:3C:7B:C7:80] Error writing char/descriptor at handle 0x22, status=133
[22:12:24][D][esp32_ble_client:172]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_DISCONNECT_EVT, reason 19
[22:12:24][D][esp32_ble_client:110]: [0] [] ESP_GATTC_CLOSE_EVT
[22:12:24][W][bluetooth_proxy:367]: Cannot write GATT characteristic, not connected
[22:12:45][I][bluetooth_proxy:282]: [0] [C9:9C:3C:7B:C7:80] Connecting v3 without cache
[22:12:45][D][esp32_ble_tracker:215]: Pausing scan to make connection...
[22:12:45][I][esp32_ble_client:067]: [0] [C9:9C:3C:7B:C7:80] 0x00 Attempting BLE connection
[22:12:45][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_CONNECT_EVT
[22:12:45][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_OPEN_EVT
[22:12:45][D][esp32_ble_tracker:266]: Starting scan...
[22:12:45][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_SEARCH_CMPL_EVT
[22:12:45][I][esp32_ble_client:227]: [0] [C9:9C:3C:7B:C7:80] Connected
[22:12:45][D][esp32_ble_client:188]: [0] [C9:9C:3C:7B:C7:80] cfg_mtu status 0, mtu 517
[22:12:45][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_REG_FOR_NOTIFY_EVT
[22:12:45][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_WRITE_DESCR_EVT
[22:12:45][D][esp-idf:000][BTU_TASK]: W (2112664) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x13

[22:12:45][D][esp-idf:000][BTU_TASK]: W (2112669) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x13

[22:12:45][D][esp-idf:000][BTU_TASK]: W (2112670) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x13

[22:12:45][D][esp-idf:000][BTU_TASK]: W (2112673) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x13

[22:12:45][D][esp32_ble_client:110]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_WRITE_CHAR_EVT
[22:12:45][W][bluetooth_proxy.connection:081]: [0] [C9:9C:3C:7B:C7:80] Error writing char/descriptor at handle 0x22, status=133
[22:12:45][D][esp32_ble_client:172]: [0] [C9:9C:3C:7B:C7:80] ESP_GATTC_DISCONNECT_EVT, reason 19
[22:12:45][D][esp32_ble_client:110]: [0] [] ESP_GATTC_CLOSE_EVT
[22:12:45][W][bluetooth_proxy:367]: Cannot write GATT characteristic, not connected
jsaiko commented 2 months ago

@drjjr2 I opened issue #120 for this. I believe it might be related to what you are experiencing.