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.10.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idasen-0.10.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idasen-0.10.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Linux/6.2.0-1012-azure

File hashes

Hashes for idasen-0.10.3.tar.gz
Algorithm Hash digest
SHA256 7ebb0d71d1ee25d0df5aacde3c28a32bbc2f9693fadccbc219c894205d24fd25
MD5 b8ce33f3f6ed008ccd2b5f2375367fdc
BLAKE2b-256 bf44b3444b3f9a126b85522be0b0e28c43588741116e35d99b1051bb9d42c7ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idasen-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Linux/6.2.0-1012-azure

File hashes

Hashes for idasen-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bd3a9dd5c48a210b7d5b405752ce32d409d5b0d9852ca8f282efbf9258823d49
MD5 9af38a161722b10f9a3429c410b07c11
BLAKE2b-256 90dc3cdf7ccc78ad08c8bb88f8faae8d68697b039d0b598d29b668433c82eacb

See more details on using hashes here.

Supported by

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