zauan / hassio-prana

A prana custom addon that allows you to integrate Prana ventilation system.
8 stars 0 forks source link

Unable to connect to Prana device ( error.connect ) #8

Open catdogmaus opened 1 month ago

catdogmaus commented 1 month ago

It discoveres device but is unable to connect. I can see constant errors in ESPHome logs

`[11:14:22][I][esp32_ble_client:067]: [0] [00:A0:40:EF:35:66] 0x00 Attempting BLE connection [11:14:22][D][esp-idf:000]: W (6091062) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e

[11:14:23][D][esp-idf:000]: W (6091692) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e

[11:14:24][D][esp-idf:000]: W (6092337) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e

[11:14:24][D][esp-idf:000]: W (6093102) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x3e

[11:14:24][D][esp-idf:000]: W (6093107) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x3e

[11:14:24][D][esp-idf:000]: W (6093110) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x3e

[11:14:24][D][esp-idf:000]: W (6093114) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e

[11:14:25][D][esp32_ble_client:172]: [0] [00:A0:50:EF:35:1E] ESP_GATTC_DISCONNECT_EVT, reason 62`

Can it be password issue? When I look at phone app it shows pw option but it is 0000

catdogmaus commented 1 month ago

With help of very long wires I was able to temporarily move HA close to Prana device and connect. So the initial issue was that integration does not support bluetooth proxy. However, at this point integration still cant be used bcs Prana device is still unresponsive. I see error like that

`This error originated from a custom integration.

Logger: custom_components.prana.coordinator Source: custom_components/prana/coordinator.py:438 integration: Prana First occurred: 9:45:09 AM (4 occurrences) Last logged: 9:46:59 AM

Prana ventilation: Device unexpectedly disconnected; RSSI: -72 Prana ventilation: Device unexpectedly disconnected; RSSI: -73 Prana ventilation: Device unexpectedly disconnected; RSSI: -74`

There are also lots of future warnings about deprecated values, so beginning of 2025 this integration will, as it is for now, stop working for everyone.