Quick Start - loopingz/hue-api GitHub Wiki

Quick start guide

Bridges

Get the current bridge, if only one exists on your network

Bridge.get();

Test if it's registered to the bridge, if not register it, you should press the bridge button during the register

if (!bridge.isRegister(applicationSecret)) { bridge.register(applicationName, applicationSecret,30); }

Get the lights

bridge.listLights();

Lights

Switch on/off

light.on(); light.off();

Change color

light.changeColor(0.3F,0.4F,9); light.setBrightness(130);

Rename

light.rename("New name");

Use alert

light.setAlert(AlertEnum.LSELECT);