2.0.1 • Published 8 years ago
@homenet/plugin-hue v2.0.1
homenet-plugin-hue
Philips Hue plugin for Homenet
Requires
homenet-coreversion4.0.0-beta.15or above.
Installing
npm install -g homenet-hueUsage
Once installed globally it should be automatically discovered when you run homenet4.
Configuration
In the configuration file create a hue.hubs key and register each Hue hub/controller.
Note: at present
{
"hue": {
"hubs": [
{ "id": "main", "name": "Main", "host": "192.168.0.123", "key": "valid_hue_api_key" }
]
}
}Classes
Only the light class for Homenet is implemented.
To add an instance use the type hue.
For options specify the Hue groupId or lightId (should be an integer), and the ID of the hub registered above.
{
"instances": [
{ "class": "light", "id": "lounge-room", "type": "hue", "options": { "groupId": 3, "hub": "main" } }
]
}Example Config
{
"instances": [
{ "class": "light", "id": "lounge-room", "type": "hue", "options": { "groupId": 3, "hub": "main" } }
],
"hue": {
"hubs": [
{ "id": "main", "name": "Main", "host": "192.168.0.123", "key": "valid_hue_api_key" }
]
}
}