Small deamon to manage state of your hue lights after power off.
npm install
You need to know your bridge ip address. You can visit meethue site to help you out.
run the following in a terminal (you need curl)
curl -H "Content-Type: application/json" -X POST -d '{"devicetype":"my_hue_app#android yourname"}' http://BRIDGE_IP/api
it will tell you to push the button, do it, then call that again. It should return a new username.
node main.js --host=BRIDGE_IP --username=USERNAME
or even better using forever
forever start main.js --host=BRIDGE_IP --username=USERNAME
# build the container
docker build -t hue-state .
# run in a new container
docker run --restart always --name hue-state -d hue-state node main.js --host=BRIDGE_IP --username=USERNAME