RolfKoenders / hue-energy-saver

πŸ’‘ Do you have a light you sometimes forget to switch off? This simple utility will turn them off for you!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hue Energy Saver

Do you have a light you sometimes forget to switch off? This simple utility will turn them off for you! At this moment its not configurable after how many minutes the light will be switched off. Currently its set to 5 minutes.

Run

Run the script with node.

$ npm i
$ node index.js

Docker

There is a dockerfile if you want to build a docker image yourself. Run the following inside the project directory to build the image:

$ docker build -t hue-energy-saver .

And launch it with the following command:

$ docker run -d --name save-light hue-energy-saver

Configuration

Configuration can be done by setting environment variables.

ENV Description Required
HES_BRIDGE Hue Bridge Host βœ“
HES_USERNAME Hue username βœ“
HES_LIGHTNAME The name of the light you want to save. βœ“

About

πŸ’‘ Do you have a light you sometimes forget to switch off? This simple utility will turn them off for you!


Languages

Language:JavaScript 100.0%