Last active
April 2, 2020 21:07
-
-
Save lumaxis/083dd6313f9a38552a10995e5c7168ad to your computer and use it in GitHub Desktop.
Homebridge plugin homebridge-http-lightbulb example configuration with Elgato Key Light
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bridge": { | |
"name": "Homebridge", | |
"username": "AA:BB:CC:DD:EE:FF", | |
"port": 51826, | |
"pin": "000-11-222" | |
}, | |
"accessories": [ | |
{ | |
"accessory": "HTTP-LIGHTBULB", | |
"name": "Elgato Key Light", | |
"onUrl": { | |
"url": "http://elgato-key-light-600d.local:9123/elgato/lights", | |
"method": "PUT", | |
"body": { | |
"numberOfLights": 1, | |
"lights": [{ | |
"on": 1 | |
}] | |
} | |
}, | |
"offUrl": { | |
"url": "http://elgato-key-light-600d.local:9123/elgato/lights", | |
"method": "PUT", | |
"body": { | |
"numberOfLights": 1, | |
"lights": [{ | |
"on": 0 | |
}] | |
} | |
}, | |
"statusUrl": "http://elgato-key-light-600d.local:9123/elgato/lights", | |
"statusPattern": "\"on\":1", | |
"brightness": { | |
"statusUrl": "http://elgato-key-light-600d.local:9123/elgato/lights", | |
"statusPattern": "\"brightness\":([0-9]{1,3})", | |
"unit": "percent", | |
"numericValue": true, | |
"setUrl": { | |
"url": "http://elgato-key-light-600d.local:9123/elgato/lights", | |
"method": "PUT", | |
"body": "{\"numberOfLights\": 1, \"lights\": [{ \"brightness\": %s }] }" | |
} | |
}, | |
"colorTemperature": { | |
"statusUrl": "http://elgato-key-light-600d.local:9123/elgato/lights", | |
"statusPattern": "\"temperature\":([0-9]{3})", | |
"unit": "mired", | |
"numericValue": true, | |
"minValue": 143, | |
"maxValue": 344, | |
"setUrl": { | |
"url": "http://elgato-key-light-600d.local:9123/elgato/lights", | |
"method": "PUT", | |
"body": "{\"numberOfLights\": 1, \"lights\": [{ \"temperature\": %s }] }" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment