zewelor / bt-mqtt-gateway

A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
MIT License
549 stars 116 forks source link

Move Linak desk to specific height #236

Open Bkrei opened 2 years ago

Bkrei commented 2 years ago

Is your feature request related to a problem? Please describe Is there a chance that not only reading the desk's current height but also moving it to a certain height gets implemented? I know that linak_bt_desk can do it, but unfortunately it's not implemented in the worker and my own python skills don't get it done. Would be highly appreciated, @zewelor

Describe the solution you'd like Move Linak desk to specific height via an MQTT command that the gateway subscribed to

additional context Linak_bt_desk / CLI can do it, so for an experienced programmer should a piece of cake

THANK YOU

maxime1992 commented 2 years ago

Not that I've been able to run any of this (just getting started) but a quick look in the code suggest that it may be possible

https://github.com/zewelor/linak_bt_desk/blob/master/linak_dpg_bt/desk_mover.py