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 117 forks source link

Feature request: Set LINAK desk height #138

Closed mountainsandcode closed 4 years ago

mountainsandcode commented 4 years ago

Is your feature request related to a problem? Please describe. Thanks for an awesome project for checking the height of a LINAK desk. It would be great to also control the height of it, i.e. sending an MQTT request with a specific height that is then transferred to the bluetooth controller

Describe the solution you'd like An MQTT topic listening for a specific height of the LINAK desk using https://github.com/zewelor/linak_bt_desk/blob/master/linak_dpg_bt/desk_mover.py

Describe alternatives you've considered None

zewelor commented 4 years ago

Whats use case for that ? Does it make sense to control height, when not near the desk ?

I've didn't implement it on purpose as it looks dangerous ( like forgot that something is below / on desk etc ). And on some gateway error / code error / etc, it will move on its own, that can cause trouble. Desk has some option to don't crush something, but from my tests it needs to be something very hard, it still can do damage.

mountainsandcode commented 4 years ago

Valid concern! I was thinking of using it when at the desk, simply using it to get the desk (which doesn't have memory buttons itself - the IKEA one) to a predefined height.

In my specific case, I was thinking of using Home Assistant to help me to raise it to my specific standing height when I want to stand up (perhaps even using Siri through the HomeKit bridge).

zewelor commented 4 years ago

Do you have ikea desk or some other with LINAK controller ? Which Linak controller is it ?

mountainsandcode commented 4 years ago

I'll be picking up a IKEA IDÅSEN standing desk next week, which uses the DPG1M LINAK controller (according to https://www.workwhilewalking.com/ikea-idasen-standing-desk-underframe-review it's a derivate of the DPG1C)

zewelor commented 4 years ago

I've got the same controller, and it has height memory. You just make double click up or down, it has 2 height slots memory. https://www.youtube.com/watch?v=63SpX9EZWD0

mountainsandcode commented 4 years ago

Excellent news - I guess I was wrongly extrapolating from the old IKEA desk I know which doesn't have a LINAK. Let's consider this a low priority in that case!

noxhirsch commented 4 years ago

@zewelor The IKEA Idasen controller does not have auto drive (LINAK also confirmed that under a video tutorial by them)! You can save heights in the app but you have to keep the button pressed. If the height could be set with this gateway you could start moving the desk and do something else until it finished and don't have to stand besides it keeping the button pressed. Or you could start the heigth change from another room and it has finished when you arrive at the desk.

redparchel commented 4 years ago

recently received my Ikea Idasen, looks like they no longer use a controller that supports auto drive (or memory recalled via the switch).

(I'm WFH full time at the moment and) I would love for my desk to raise to the right height (no matter where I left it) as part of my "good morning" automatons (i like to stand in the morning)

That also said, i did buy a replacement controller (the switch not the control box) on amazon that has autodrive and memory. so I'd be happy with memory recall. my goal of using homeassistant is to reduce the number of extra apps i need to control my home. thanks! -rich