A little PlatformIO, Arduino-based project, to let me control my Flexispot standing-desk via a REST API*.
Required hardware:
- Flexispot E7 pro (Or similar?)
- Adafruit Huzzah32
- RJ-45 cable + jack/breakout board.
Optional software:
- Home assistant
- CURL or other REST client software.
Inspiration drawn from:
- Hardware: https://www.devmire.com/2021/10/03/reverse-engineering-a-standing-desk-for-fun-and-profit/
- Pinout: https://www.mikrocontroller.net/topic/493524
- Height-decoding: https://github.com/grssmnn/ha-flexispot-standing-desk/tree/master?tab=readme-ov-file
- Commands: https://github.com/iMicknl/LoctekMotion_IoT
GET /
returns welcome message and local IP address.GET /height
returns last height reading, and reading 'staleness'.POST /height/preset/{preset-id}
moves desk to preset height.DELETE /height
stops any movement in progress.
- Improve height query responsiveness.
- Move desk to specific height (
PUT /height/{height_mm}
?) - Save presets from API?
- Continuous UP/DOWN button presses? Web-sockets?
- Voice controls?
*or as close to REST as I can get with the package available - not sure how to decode a request body yet...