j5lien / esphome-idasen-desk-controller

ESPHome component for Ikea Idasen desk control
MIT License
187 stars 36 forks source link

Disconnecting with error #31

Closed EliasAhlers closed 3 years ago

EliasAhlers commented 3 years ago

Hey,

I wanted to try this out with my new desk and an ESP32 I had lying around.

When I hold the connect button on the desk, the following is logged by the ESP32:

[14:24:43][D][esp32_ble_tracker:180]: Starting scan... [14:24:43][D][esp32_ble_tracker:620]: Found device D0:06:00:00:01:D4 RSSI=-79 [14:24:43][D][esp32_ble_tracker:641]: Address Type: PUBLIC

[14:24:43][D][esp32_ble_tracker:620]: Found device 7D:A4:DB:3E:8D:1B RSSI=-60 [14:24:43][D][esp32_ble_tracker:641]: Address Type: RANDOM [14:24:44][D][ble_client:045]: Found device at MAC address [C6:DE:41:D2:C1:B4] [14:24:44][I][ble_client:083]: Attempting BLE connection to c6:de:41:d2:c1:b4 [14:24:45][I][idasen_desk_controller:042]: [Schreibtisch] Connected successfully! [14:24:45][I][ble_sensor:033]: [Schreibtisch Höhe] Connected successfully! [14:24:45][I][ble_sensor:033]: [Schreibtisch Geschwindigkeit] Connected successfully! [14:24:46][I][ble_client:159]: Service UUID: 0x1800 [14:24:46][I][ble_client:160]: start_handle: 0x1 end_handle: 0x9 [14:24:46][I][ble_client:339]: characteristic 0x2A00, handle 0x3, properties 0xa [14:24:46][I][ble_client:339]: characteristic 0x2A01, handle 0x5, properties 0x2 [14:24:46][I][ble_client:339]: characteristic 0x2A04, handle 0x7, properties 0x2 [14:24:46][I][ble_client:339]: characteristic 0x2AA6, handle 0x9, properties 0x2 [14:24:46][I][ble_client:159]: Service UUID: 0x1801 [14:24:46][I][ble_client:160]: start_handle: 0xa end_handle: 0xd [14:24:46][I][ble_client:339]: characteristic 0x2A05, handle 0xc, properties 0x20 [14:24:46][I][ble_client:159]: Service UUID: 99FA0001-338A-1024-8A49-009C0215F78A [14:24:46][I][ble_client:160]: start_handle: 0xe end_handle: 0x13 [14:24:46][I][ble_client:339]: characteristic 99FA0002-338A-1024-8A49-009C0215F78A, handle 0x10, properties 0xc [14:24:46][I][ble_client:339]: characteristic 99FA0003-338A-1024-8A49-009C0215F78A, handle 0x12, properties 0x12 [14:24:46][I][ble_client:159]: Service UUID: 99FA0010-338A-1024-8A49-009C0215F78A [14:24:46][I][ble_client:160]: start_handle: 0x14 end_handle: 0x17 [14:24:46][I][ble_client:339]: characteristic 99FA0011-338A-1024-8A49-009C0215F78A, handle 0x16, properties 0x1e [14:24:46][I][ble_client:159]: Service UUID: 99FA0020-338A-1024-8A49-009C0215F78A [14:24:46][I][ble_client:160]: start_handle: 0x18 end_handle: 0x1f [14:24:46][I][ble_client:339]: characteristic 99FA0021-338A-1024-8A49-009C0215F78A, handle 0x1a, properties 0x12 [14:24:46][I][ble_client:339]: characteristic 99FA0029-338A-1024-8A49-009C0215F78A, handle 0x1d, properties 0x2 [14:24:46][I][ble_client:339]: characteristic 99FA002A-338A-1024-8A49-009C0215F78A, handle 0x1f, properties 0x2 [14:24:46][I][ble_client:159]: Service UUID: 99FA0030-338A-1024-8A49-009C0215F78A [14:24:46][I][ble_client:160]: start_handle: 0x20 end_handle: 0xffff [14:24:46][I][ble_client:339]: characteristic 99FA0031-338A-1024-8A49-009C0215F78A, handle 0x22, properties 0xc [14:24:47][W][ble_client:170]: No descriptor found for notify of handle 0x1a [14:24:47][W][ble_client:170]: No descriptor found for notify of handle 0x1a [14:24:47][D][esp32_ble_tracker:180]: Starting scan... [14:24:47][D][esp32_ble_tracker:620]: Found device D0:06:00:00:01:D4 RSSI=-76 [14:24:47][D][esp32_ble_tracker:641]: Address Type: PUBLIC

[14:24:47][D][esp32_ble_tracker:620]: Found device C6:DE:41:D2:C1:B4 RSSI=-63 [14:24:47][D][esp32_ble_tracker:641]: Address Type: RANDOM [14:24:47][D][esp32_ble_tracker:645]: TX Power: 2 [14:24:47][D][esp32_ble_tracker:620]: Found device 7D:A4:DB:3E:8D:1B RSSI=-55 [14:24:47][D][esp32_ble_tracker:641]: Address Type: RANDOM [14:24:48][D][esp32_ble_tracker:620]: Found device 7E:E1:4E:7B:02:44 RSSI=-53 [14:24:49][D][esp32_ble_tracker:641]: Address Type: RANDOM [14:24:50][D][esp32_ble_tracker:620]: Found device 49:CC:D3:6E:AF:EB RSSI=-57 [14:24:50][D][esp32_ble_tracker:641]: Address Type: RANDOM [14:24:52][W][idasen_desk_controller:104]: Error reading char at handle 26, status=5 [14:24:52][W][ble_sensor:082]: Error reading char at handle 26, status=5 [14:24:52][W][ble_sensor:082]: Error reading char at handle 26, status=5 [14:25:17][W][idasen_desk_controller:049]: [Schreibtisch] Disconnected! [14:25:17][W][ble_sensor:039]: [Schreibtisch Höhe] Disconnected!

I have my phone disconnected from the desk. There seems to be an error with the data payload, but i think you will know better :) I would appreciate some help! Thanks in advance

rmervine commented 3 years ago

Hey ThatsEli, What you posted is an exact problem in another issue that I referenced here. It's a known issue with the latest version and you can use an older version. I personally had the same problem and had to call an older version. I had success with connecting, but couldn't control the desk. However, I think that's an issue with an upgraded controller I'm using. Please read the linked thread and that should help you out.

29

EliasAhlers commented 3 years ago

Thank you very much, that fixed my issue!

I will close this issue as #29 seems to be the same problem