Skip to main content

Hue driver

The hue driver simply interfaces with the hub hub. It adds credentials to each API call. The supported calls are as follows:

endpointmethoddescriptionparams
/ui/api/hexGETChange the hue lights to a hex colourhex: a hex string (without #) eg 4c00b0
/ui/api/onGETTurn lights on
/ui/api/offGETTurn lights off
/ui/api/redGETMake lights red (just used for testing really)
/ui/api/whiteGETMake lights white (just used for testing really)
/ui/api/light_scriptGETRun a more complex light scriptscript_id : an id corresponding to a script in light_script.json