This utility lets one control an IKEA IDÅSEN desk via command line utility. It spawns a small server to keep the connection to the desk alive on first use and reuses that later. This could be improved but is good enough for my purposes.
This lets you move to your preferred heights without having to keep the button pressed.
It stores its configuration in a file called
The connection with the table is established via bluetooth, so a bluetooth module on the connecting computer is required.
If you have volta then you can install it like this:
volta install idasen-control
Otherwise you can use npm:
npm install -g idasen-control
To find desks available you need to bring the tool into scanning mode after setting your desk to pairing mode (keep bluetooth button pressed). It will do an initial scan for 10 seconds and wait for 2 more seconds after each discovered device.
After you know the address of the desk to connect to it:
idasen-control --connect-to ADDRESS
This will store the address in the config file.
Check Desk Status
To check the status of the desk run:
To move the desk to a position run this command:
idasen-control --move-to POSITION
10 is a typical sitting position,
50 is a typical standing position. If you want to block the shell until the desk is in its final position pass
This is best used with shell aliases.
It's based on Steven Roebert's desk-control MQTT script.