npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-linak

v1.1.2

Published

This plugin allows you to expose your Linak Desk Motor as Blinds in Homekit

Downloads

9

Readme

logo

verified-by-homebridge Downloads Version Donate

linak-homebridge

homebridge plugin to control any linak bluetooth desk

Set up

Prerequisites

  • Linak controlled standing desk (eg. Ikea Idasen)
  • Homebridge installation on a device that has bluetooth

Install

  1. Install the latest version of idasen-controller first
  2. Make sure the homebridge device is paired to the desk over bluetooth
  3. Install this plugin
  4. Configure this plugin (see below)

Configuration

platform config

| field name | parameter | description | default value | |---------------------------|----------------------|---------------------------------------------------------------------------------------------------|---------------------------------------| | Name | name | the name of the platform in your logs | Linak Platform | | Polling timeout | pollingRate | time in seconds between polls of the current desk height | 20 | | Path to Idasen-Controller | idasenControllerPath | where to find the installation of idasen-controller | /home/pi/.local/bin/idasen-controller | | Desks | desks | array of desks | - |

desk config

| field name | parameter | description | default value | |-------------------|---------------|------------------------------------------------------------------------------|---------------| | Name | name | name of the desk | Linak Desk | | MAC Address | macAddress | the MAC Address of your desk | - | | Base height | baseHeight | The lowest possible height (mm) of the desk top from the floor. Default 620. | 620 | | Range of movement | movementRange | How far above base-height the desk can extend (mm). Default 650. | 650 |

sample config

{
    "name": "Linak Platform",
    "pollingRate": 60,
    "idasenControllerPath": "/home/pi/.local/bin/idasen-controller",
    "desks": [
        {
            "name": "Schreibtisch",
            "macAddress": "e0:02:7b:73:8c:13"
        }
    ],
    "platform": "LinakController"
}

sample configuration

Features

Ads the standing desk as a controllable blind to the home app. You can then adjust the desk height by setting that blind. Unfortinatly there is nothing like a desk or similar in homekit, so this is currently the best solution to freely adjust the height.

I would recomment to set some home scenes for your standing and sitting height, with your prefered value, e.g.: Standing: blind 65% open Sitting: blind 25% open Using scenes you can adjust your desk using scenes like "Hey Siri, activate sitting".

How it works

The plugin calculates the height in mm from the value set by homekit and calls the idasen-controller implementation with the height in mm. The calculation is taken from homebridge_idasen. It can also get the actual desk height from the controller. The actual height will be calculated using the calculations mentioned before and will be returned to homekit as a percentage.

References

Special thanks to idasen-controller for his hard work! This made my plugin possible in the first place. Special thanks to homebridge-homebridge_idasen-cmd for giving me the idea to spawn a child_process to control the desks.