Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation with esphome? #4

Open
thepecca opened this issue Feb 7, 2021 · 4 comments
Open

Implementation with esphome? #4

thepecca opened this issue Feb 7, 2021 · 4 comments

Comments

@thepecca
Copy link

thepecca commented Feb 7, 2021

Would you consider create a version that runs with esphome in order to add control of the desk from a home automation software such as Home Assistant?

I've soldered a new connector to attach an ESP01 directly to the controller, this would allow for a cheap and easy way to add control of the desk to a multitude of platforms/devices. Currently esphome dosn't allow for direct read on UART, but the custom cover allows for integration with the Arduino API and C++.

The features that could be implemented are mostly those you already implemented:

  • Move Up/Down
  • Go to Height
  • Get Current Height
  • Go to Preset
  • Reset Desk Controller (it's recommended to do this every time you connect a new controller)
  • Memorize New Preset

Driving the desk from Home Assistant would also allow to log the desk height over time and give insight into how much time is being spent standing vs sitting as well as other automations.

I am no skilled programmer and thus would have no idea how to make this happen, I'm simply putting this out there so that maybe someone could take it up.
Thank you in advance.

dc43b1cb-11a5-42d1-a1a1-d4151e881945

@Stefichen5
Copy link
Owner

Hi, thanks for your idea. I have never worked with esphome before. I will take a look at it but I can't promise anything right now.

@developit
Copy link
Contributor

developit commented Feb 26, 2021

I know it's likely not useful, or minimally useful, but FWIW here's the JS implementation I put together based on @Stefichen5's fantastic research:

https://gist.github.com/developit/f6c7ef3e41a5ac574dbb4af7dd4ec241

This is built with Espruino. If you're a JS person I could share the full source - I've been building a flashing tool that is easy to use for novice web developers like me (haha).

@BoTime
Copy link

BoTime commented Mar 10, 2023

@Stefichen5 Thank you for your research!

@vipial1
Copy link

vipial1 commented Apr 8, 2023

@thepecca here the home assistant integration https://github.com/vipial1/desky-ha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants