RickBullotta / azure-iot-hue

Azure IoT Device SDK example for Philips Hue Lighting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

services platforms author
iot-hub, iot-central
Nodejs
rickb

Azure IoT Hub/IoT Central Philips Hue Interface

This utilizes the Azure IoT Node.js SDK to connect to the Philips Hue lighting system

How To Configure This Device Connector

In a connect.json file, you'll need to provide the idScope, deviceId, and connection key that are displayed when you select "Connect" from the device view inside of IoT Central

{ "idScope" : "0ne00000000", "deviceId" : "MyHue", "symmetricKey" : "z11uz4E35gO0Z9uI0PYcVm/twUyAm/iJovuMk8A2xpo=", }

In the connect.json file, you'll also need to provide the IP address of your Philips Hue Hub, along with a userName that was generated on that hub. Refer to the Hue Developer documentation at https://developers.meethue.com/ for instructions on how to find the IP of your hub and generate a user name/token.

"hubAddress" : "192.168.1.178" "userName" : "aMLiCr4yyDQjFV6bSN5BGoxuuCDuEmVxmePX00AO"

You can also specify how frequently you would like the lighting configuration from the Hue Hub and the Device Twin to be synchronized via the "interval" property in the config.json file. The interval is expressed in milliseconds.

"interval": 300000

How To Run This Device Connector

Launch index.js to execute this connector.

Features

This connector allows you to turn on/off individual lights, groups of lights, and set their color and brightness (individually or in groups). These capabilities are exposed as device methods/commands. Also, this connector will periodically synchronize its device twin with configuration information describing the specific lights and groups defined on your Hue hub.

About

Azure IoT Device SDK example for Philips Hue Lighting


Languages

Language:JavaScript 100.0%