AutonomousControl icon indicating copy to clipboard operation
AutonomousControl copied to clipboard

Implementation with esphome?

Open thepecca opened this issue 4 years ago • 4 comments
trafficstars

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

thepecca avatar Feb 07 '21 11:02 thepecca

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.

Stefichen5 avatar Feb 07 '21 17:02 Stefichen5

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).

developit avatar Feb 26 '21 21:02 developit

@Stefichen5 Thank you for your research!

BoTime avatar Mar 10 '23 07:03 BoTime

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

vipial1 avatar Apr 08 '23 10:04 vipial1