The goal of this project is creating an easy to use bluetooth bridge for my Ikea Idasen desk, that uses a Linak controller.
I often switch computers, that's why the desktop controllers do not suit me, but they were a great source of information - you can see the links in the references section.
Now it also offers Alexa support for voice controlling your desk!
At the root URL there is an Web UI for moving the desk and setting the favorite positions.
The project uses the fauxmoESP library to emulate a philips hue lightbulb that can be discovered and controlled by Alexa.
Current implementation uses Memory Position 3 as on
state, and Memory Position 1 as off
state.
To move the desk to desired position you can just ask Alexa to turn on or off the desk using the desk name set during config, for example:
Alexa, turn on standing desk (if you leave the default name - standing desk)
esp32dev
environment and upload the binary to an esp32.Current implementation offers a simple HTTP GET API for getting the height and moving to height:
standing-desk.local/getHeight
standing-desk.local/moveToHeight?destination=700
You can also use values in milimeters using:
standing-desk.local/getHeightMm
standing-desk.local/moveToHeightMm?destination=1000
Aditionally you can save current height as one of three (1-3) favorite positions to make the desk stop there when moving manually:
standing-desk.local/saveCurrentPosAsFav?position=3
mDNS name will be set from the desk name set in WiFiManager, with the spaces changed to -
.
You can use the IP address of the device if you're having problems with mDNS
To change the settings reboot the ESP twice within 10 seconds and connect to the created WiFi.