j5lien / esphome-idasen-desk-controller

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

Add callback fallback option #12

Closed j5lien closed 3 years ago

j5lien commented 3 years ago

Add fallback to update moving and height sensors when desk is moving using the cover component and the bluetooth callback won't work.

mountainsandcode commented 3 years ago

Thanks - this code (with bluetooth_callback: False) solves the issue for me - with one small exception. When moving the cover device (in Home Assistant), the state remains at Opening/Closing indefinitely, even after movement is complete. The binary_sensor.desk_moving turns to off right away after movement is complete

j5lien commented 3 years ago

@mountainsandcode it should be fixed now

mountainsandcode commented 3 years ago

@j5lien Thanks for looking into this so quickly - just flashed my ESP again and now it's working like a charm :) Thanks for effort on this project - really helpful!