https://github.com/newam/idasen
Python API and CLI for the ikea IDÅSEN desk.
https://github.com/newam/idasen
ble idasen ikea python python-bleak
Last synced: about 1 year ago
JSON representation
Python API and CLI for the ikea IDÅSEN desk.
- Host: GitHub
- URL: https://github.com/newam/idasen
- Owner: newAM
- License: mit
- Created: 2020-09-07T17:53:08.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-25T13:51:21.000Z (about 1 year ago)
- Last Synced: 2025-05-16T05:07:23.455Z (about 1 year ago)
- Topics: ble, idasen, ikea, python, python-bleak
- Language: Python
- Homepage:
- Size: 1010 KB
- Stars: 136
- Watchers: 3
- Forks: 21
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
idasen
######
|PyPi Version| |Build Status| |Documentation Status| |Ruff|
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
=======
.. code-block:: bash
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:
.. code-block:: bash
idasen init
.. code-block:: yaml
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:
.. code-block:: bash
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:
.. code-block:: bash
idasen height
To monitor for changes to height:
.. code-block:: bash
idasen monitor
To save the current height as the sitting position:
.. code-block:: bash
idasen save sit
To delete the saved sitting position:
.. code-block:: bash
idasen delete sit
Assuming the config file is populated to move the desk to sitting position:
.. code-block:: bash
idasen sit
Community
*********
Related projects and packaging:
* `Arch Linux package`_
* `NixOS package`_
* `huserben/idasen-rest-bridge`_
* Repository this was forked from: `rhyst/idasen-controller`_
.. _rhyst/idasen-controller: https://github.com/rhyst/idasen-controller
.. _NixOS package: https://search.nixos.org/packages?channel=unstable&show=idasen&query=idasen
.. _Arch Linux package: https://aur.archlinux.org/packages/idasen
.. _huserben/idasen-rest-bridge: https://github.com/huserben/idasen-rest-bridge
.. |PyPi Version| image:: https://badge.fury.io/py/idasen.svg
:target: https://badge.fury.io/py/idasen
.. |Build Status| image:: https://github.com/newAM/idasen/workflows/Tests/badge.svg
:target: https://github.com/newAM/idasen/actions
.. |Documentation Status| image:: https://img.shields.io/badge/docs-latest-blue
:target: https://newam.github.io/idasen
.. |Ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
:target: https://github.com/astral-sh/ruff
:alt: Ruff