homebridge-keylights v1.3.2
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.
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-keylightsTo 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"
    }
  ]
}nameis the name of the plugin to appear in the log file. Defaults toElgato Key Lights.pollingRateis the rate at which to poll the lights for changes in milliseconds. Defaults to1000.powerOnBehavioris the behaviour when powering the lights on. Defaults to1which means restore the last settings used.2means restoring the default values configured below.powerOnBrightnessis the default brightness value when powering on in percent. Defaults to20. Range is0to100.powerOnTemperatureis the default colour temperature when powering on in Kelvin. Defaults to4695. Range is2900to7000.switchOnDurationMsis the duration of the switch on sequence in milliseconds. Defaults to100.switchOffDurationMsis the duration of the switch off sequence in milliseconds. Defaults to300.colorChangeDurationMsis the duration of a colour temperature change in milliseconds. Defaults to100.useIPenables the usage of IP addresses instead of hostnames to connect to the lights. Defaults tofalse. 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.