@jms777/homebridge-rgb-light
v2.0.3
Published
A homebridge plugin designed to work with a light exposed via an API (see README.md for more details)
Downloads
5
Readme
Homebridge RGB Light
A basic homebridge plugin used to integrate with a light exposed by an API with there required endpoints.
Expected Light Endpoints
Information (GET) Required
Should return a json object with the following fields (note if not using the brightness or colour endpoints these can be ommitted):
{
"device": {
"state": boolean,
"brightness": number between 0 and 100,
"hsv": { "h": number, "s": number, "v": number (not used)}
}
}
State (PUT) Required
Should expect a json body containing:
{
"state": boolean
}
Brightness (PUT) Optional
Should expect a json body containing:
{
"brightness": number between 0 - 100,
}
Colour (PUT) Optional
Should expect a json body containing:
{
"hsv": { "h": number, "s": number, "v": number (not used)}
}