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-keylights

v1.2.4

Published

A Homebridge plugin for Elgato Key Light and Key Light Air

Downloads

91

Readme

Homebridge Key Lights

This is yet another Homebridge plugin for the Elgato Key Light, Key Light Air and Ring Light. It allows you to control your Elgato lights with HomeKit while avoiding some of the issues other plugins have.

verified-by-homebridge

Features

  • Switch your Key Lights on and off, set brightness and colour temperature
  • State of the lights is regularly polled so HomeKit always has the correct data
  • Correct minimum and maximum values configured for colour temperature
  • All settings configurable via config file, even those not available in the Elgato Control App

Installation

You can install the plugin either using the Homebridge Web UI or using the command line:

npm install -g homebridge-keylights

To use the plugin, it must be configured. This is a minimal working configuration:

{
"bridge": {
    ....
},
"accessories": [],
"platforms": [
    {
        "platform": "ElgatoKeyLights",
        "name": "Elgato Key Light",
    }
  ]
}

Settings

Further settings are available to configure. This is a complete configuration:

{
"bridge": {
    ....
},
"accessories": [],
"platforms": [
    {
        "name": "Elgato Key Lights",
        "pollingRate": 1000,
        "powerOnBehavior": 1,
        "powerOnBrightness": 20,
        "powerOnTemperature": 4695,
        "switchOnDurationMs": 100,
        "switchOffDurationMs": 300,
        "colorChangeDurationMs": 100,
        "useIP": false,
        "platform": "ElgatoKeyLights"
    }
  ]
}
  • name is the name of the plugin to appear in the log file. Defaults to Elgato Key Lights.
  • pollingRate is the rate at which to poll the lights for changes in milliseconds. Defaults to 1000.
  • powerOnBehavior is the behaviour when powering the lights on. Defaults to 1 which means restore the last settings used. 2 means restoring the default values configured below.
  • powerOnBrightness is the default brightness value when powering on in percent. Defaults to 20. Range is 0 to 100.
  • powerOnTemperature is the default colour temperature when powering on in Kelvin. Defaults to 4695. Range is 2900 to 7000.
  • switchOnDurationMs is the duration of the switch on sequence in milliseconds. Defaults to 100.
  • switchOffDurationMs is the duration of the switch off sequence in milliseconds. Defaults to 300.
  • colorChangeDurationMs is the duration of a colour temperature change in milliseconds. Defaults to 100.
  • useIP enables the usage of IP addresses instead of hostnames to connect to the lights. Defaults to false. Should only be turn on if you experience connection issues.

All settings can conveniently configured using the Homebridge Web UI.

Known issues

Unable to register accessory

Some users have had an issue where Homebridge was unable to connect to the lights after setting the plugin up. This seems to be a common issue where the lights become unresponsive after not being polled for some time, and also happens with the official Elgato app.

As a fix, try power cycling the lights and then restart Homebridge. Usually, the lights are discovered and since the plugin polls the status of the lights regularly, they keep working. In case you are still unable to connect to the lights, try the useIP option described in the settings.