Giter Club home page Giter Club logo

Comments (9)

mountainsandcode avatar mountainsandcode commented on September 23, 2024 1

When trying to setup a script myself I had issues getting callbacks to work - I think they may work differently than for some other LINAK desks but Iā€™m not sure.

As a temporary workaround, can you manually update the position after it has completed moving? That would solve a big part of the problem for me

from esphome-idasen-desk-controller.

mountainsandcode avatar mountainsandcode commented on September 23, 2024 1

@noxhirsch @spyfly You may want to try out the code from #12 to confirm whether this also fixes the issues for you - I'm having no issues using that code with bluetooth_callback set to False.

from esphome-idasen-desk-controller.

spyfly avatar spyfly commented on September 23, 2024

I am experiencing the same issue.

from esphome-idasen-desk-controller.

mountainsandcode avatar mountainsandcode commented on September 23, 2024

Can confirm this issue, too. The current_position attribute of the cover is also static

from esphome-idasen-desk-controller.

mountainsandcode avatar mountainsandcode commented on September 23, 2024

Appears to be a duplicate of #2, but I can confirm this is an issue with the latest master

from esphome-idasen-desk-controller.

j5lien avatar j5lien commented on September 23, 2024

Do you find the log Register notification callback when connecting to the desk ?

[14:38:13][C][idasen_desk_controller:137]: Register notification callback on output characteristic.
[14:38:13][C][idasen_desk_controller:143]: Retrieve control remote characteristic.
[14:38:13][E][BLERemoteCharacteristic.cpp:274] retrieveDescriptors(): esp_ble_gattc_get_all_descr: Unknown
[14:38:13][C][idasen_desk_controller:148]: Success connecting client to device

I'm not sure why but it doesn't seem to work at first.

from esphome-idasen-desk-controller.

noxhirsch avatar noxhirsch commented on September 23, 2024

@j5lien Yes, here's the log:

[16:05:07][C][idasen_desk_controller:109]: Start scanning devices...
[16:05:07][C][idasen_desk_controller:052]: BLE Device found: Name: , Address: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX, serviceUUID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[16:05:07][C][idasen_desk_controller:052]: BLE Device found: Name: Desk Nico, Address: XXXXXXXXXXXXXXXXXXXXXXX, txPower: -8
[16:05:07][C][idasen_desk_controller:119]: Connecting client to device XXXXXXXXXXXXXXXXXXXXXXX, 
[16:05:07][D][binary_sensor:036]: 'AZ Desk Workstation Connection': Sending state ON
[16:05:07][C][idasen_desk_controller:129]: Retrieve input remote characteristic.
[16:05:08][E][BLERemoteCharacteristic.cpp:274] retrieveDescriptors(): esp_ble_gattc_get_all_descr: Unknown
[16:05:08][C][idasen_desk_controller:134]: Retrieve output remote characteristic.
[16:05:08][E][BLERemoteCharacteristic.cpp:274] retrieveDescriptors(): esp_ble_gattc_get_all_descr: Unknown
[16:05:08][E][BLERemoteCharacteristic.cpp:274] retrieveDescriptors(): esp_ble_gattc_get_all_descr: Unknown
[16:05:08][C][idasen_desk_controller:137]: Register notification callback on output characteristic.
[16:05:08][C][idasen_desk_controller:143]: Retrieve control remote characteristic.
[16:05:08][E][BLERemoteCharacteristic.cpp:274] retrieveDescriptors(): esp_ble_gattc_get_all_descr: Unknown
[16:05:08][C][idasen_desk_controller:148]: Success connecting client to device
[16:05:08][D][api.connection:604]: Client 'Home Assistant 2021.2.3 (XXXXXXXXX)' connected successfully!
[16:05:13][D][binary_sensor:036]: 'AZ Desk Workstation Moving': Sending state OFF
[16:05:13][D][sensor:092]: 'AZ Desk Workstation Height': Sending state 143.00000 mm with 0 decimals of accuracy
[16:05:13][D][cover:152]: 'AZ Desk Workstation' - Publishing:
[16:05:13][D][cover:155]:   Position: 22%
[16:05:13][D][cover:168]:   Current Operation: IDLE

from esphome-idasen-desk-controller.

j5lien avatar j5lien commented on September 23, 2024

So the callback is well registered but isn't called when the desk is moving šŸ¤”

from esphome-idasen-desk-controller.

noxhirsch avatar noxhirsch commented on September 23, 2024

@mountainsandcode For me it's working with bluetooth_callback: false, too šŸ‘

from esphome-idasen-desk-controller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.