Skip to main content

ikea IDÅSEN desk API and CLI.

Project description

PyPi Version Build Status Documentation Status Black

This is a heavily modified fork of rhyst/idasen-controller.

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 and paired to the computer.

Install

python3.8 -m pip install --upgrade idasen

On Arch Linux, there is an AUR package:

yay -Syu idasen || paru -Syu idasen

Developers Install

Development is done with poetry, a virtual environment manager. First, install poetry using their guide.

Then install all the packages using poetry install:

poetry install

To install this package locally build it then install with pip:

poetry build
python3.8 -m pip install dist/idasen-0.6.0-py3-none-any.whl

Configuration

Configuration that is not expected to change frequency 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 find the device address, but if it fails, it has to be done manually.

The device MAC addresses can be found using blueoothctl and bluetooth adapter names can be found with hcitool dev on linux.

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

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.7.0.tar.gz (8.8 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.7.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idasen-0.7.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1046-azure

File hashes

Hashes for idasen-0.7.0.tar.gz
Algorithm Hash digest
SHA256 ceb75786aea95784ad43050f7d9c980fd9742587548ec2f92d7bb00c246b4e58
MD5 1902d5e887d9878b945181af6eab3cba
BLAKE2b-256 f8eaf176dfd0d45016a53c03d7a468fd98294e8f1ce383ce644ff23535c837b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idasen-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1046-azure

File hashes

Hashes for idasen-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9123029a237feadea919c81e07cff216a3a52088f97ef36e09b534d4bad946fa
MD5 a8b98768d407ccc81372340d5f0ba7d7
BLAKE2b-256 b004f417a381de45dc02d6932b62d1d7204c25ce9afb1cd85d4a0e9f9b084af3

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