Skip to main content

ikea IDÅSEN desk API and CLI.

Project description

PyPi Version Build Status Documentation Status Black

The IDÅSEN is an electric sitting standing desk with a Linak controller sold by ikea.

The position of the desk can controlled by a physical switch on the desk or via bluetooth using an phone app.

This is a command line interface written in python to control the Idasen via bluetooth from a desktop computer.

Set Up

Prerequisites

The desk should be connected to the computer.

Install

python3 -m pip install --upgrade idasen

Configuration

Configuration that is not expected to change frequently can be provided via a YAML configuration file located at ~/.config/idasen/idasen.yaml.

You can use this command to initialize a new configuartion file:

idasen init
mac_address: AA:AA:AA:AA:AA:AA
positions:
    sit: 0.75
    stand: 1.1

Configuartion options:

  • mac_address - The MAC address of the desk. This is required.

  • positions - A dictionary of positions with values of desk height from the floor in meters, sit and stand are provided as examples.

The program will try to discover the device address. The device needs to be in ‘discover’ mode for this to work.

If discovery fails the device MAC addresses can be found using blueoothctl and bluetooth adapter names can be found with hcitool dev on linux.

If the device has not yet been paired, this can be accomplished with:

idasen pair

Again, the device will need to be in ‘discover’ mode for this to work.

Usage

Command Line

To print the current desk height:

idasen height

To monitor for changes to height:

idasen monitor

To save the current height as the sitting position:

idasen save sit

To delete the saved sitting position:

idasen delete sit

Assuming the config file is populated to move the desk to sitting position:

idasen sit

Community

Related projects and packaging:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idasen-0.12.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

idasen-0.12.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file idasen-0.12.0.tar.gz.

File metadata

  • Download URL: idasen-0.12.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1015-azure

File hashes

Hashes for idasen-0.12.0.tar.gz
Algorithm Hash digest
SHA256 4e5c87f7d49ac693fe0c0c8b99f0455822b7744ee0c087c952d52199f5f2e200
MD5 2f28c35780b3319fa33ce54e72c7929b
BLAKE2b-256 00684efe8a2064036a3bc83321f68fcfe2290408cfdaa0f0e12a8243d27304e4

See more details on using hashes here.

File details

Details for the file idasen-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: idasen-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1015-azure

File hashes

Hashes for idasen-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d80099500846e3e589de9ef1336f3ae505e83f734801d396aba94b3ad354c27
MD5 24dee060921600e3945a2ecb350ceaf9
BLAKE2b-256 a11a0acf8b8b35353442c58bf0d9301af653aba621d2a343b4e033196f93cf5d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page