Skip to content

Small deamon to manage state of your hue lights after a power off

License

Notifications You must be signed in to change notification settings

barisahmet/hue-state

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hue state

Small deamon to manage state of your hue lights after power off.

Setup

npm

npm install

Bridge ip

You need to know your bridge ip address. You can visit meethue site to help you out.

Create username

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.

Run

node main.js --host=BRIDGE_IP --username=USERNAME

or even better using forever

forever start main.js --host=BRIDGE_IP --username=USERNAME

Docker

# 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

About

Small deamon to manage state of your hue lights after a power off

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 75.7%
  • Dockerfile 24.3%