Homebridge-flux automatically adjusts the color temperature of your smart lights throughout the day to limit blue light closer to night time
Go to file
Brandon Watson b5fe4a64b9
Some checks failed
continuous-integration/drone/push Build is failing
Updating registry
2021-12-22 20:58:24 -05:00
.vscode Initial commit 2020-04-08 21:02:08 -04:00
src Fixed bug where flux doesn't run after the first night 2020-04-25 08:46:37 -04:00
.drone.yml Update drone.yml 2021-12-22 20:54:14 -05:00
.gitignore Initial commit 2020-04-08 21:02:08 -04:00
deploy.sh Reset sunset times every time enabled 2020-04-11 16:44:55 -04:00
homebridge-flux.code-workspace Initial commit 2020-04-08 21:02:08 -04:00
package-lock.json Updating registry 2021-12-22 20:58:24 -05:00
package.json Updating registry 2021-12-22 20:58:24 -05:00
README.md Update 'README.md' 2020-11-15 19:38:29 -05:00
tsconfig.json Working. Still need some testing 2020-04-11 15:49:07 -04:00

homebridge-flux

Homebridge-flux automatically adjusts the color temperature of your smart lights throughout the day to limit blue light closer to night time.

Installation

  1. To install from source, clone the repo
git clone ssh://git@thebword.ddns.net:3122/watsonb8/homebridge-flux.git
  1. Install the repo globally
npm install -g --unsafe-perm .
  1. Configure and run

Configuration Example

{
       "platform": "Flux",
       "ipAddress": "192.168.1.238",
       "userName": "[redacted]",
       "clientKey": "[redacted]",
       "latitude": 39.103119,
       "longitude": -84.512016,
       "lights": [
         "Play left",
         "Play right",
         "Floor lamp",
         "White floor lamp",
         "End table lamp",
         "Night Stand",
         "Ceiling Light A",
         "Ceiling Light B"
       ],
       "name": "Flux",
       "ceilingColorTemp": 4000,
       "sunsetColorTemp": 1900,
       "floorColorTemp": 1500,
       "sunsetDuration": 1800000,
       "transition": 10000,
       "delay": 30000
     },

Options

  • platfrom: "Flux"

  • ipAddress: The ip address of your phillips hue bridge

  • userName: Automatically filled in by program

  • clientKey: Automatically filled in by program

  • latitude: Your latitude coordinate for the location of the lights that you would like to control (this is used to find the time of sunset in your location)

  • longitude: Your longitude coordinate for the location of the lights that you would like to control (this is used to find the time of sunset in your location).

  • lights: An array of light names registered with your hue bridge

  • name: The name of the enable switch to appear in your HomeKit appear

  • ceilingColorTemp: The upper range of color temperatures to start with. This will be the color temperature at the before of the sunset

  • sunsetColorTemp: The middle range of color temperatures to use. This will be the color temperature during sunset

  • floorColorTemp: The lower range of color temperatures to end with. This will be the color temperature at the end of sunset

  • sunsetDuration: The total time of the sunset. Setting this to a longer period will lengthen or shorten the time between ceiling and floor color temperatures

  • transition: The time in ms to transition from one color temperature to the next

  • delay: The time in ms between color transitions