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 the script with node.
$ npm i
$ node index.js
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 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. | β |