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
watsonb8 f69f2a3ca5
All checks were successful
Build homebridge-flux / Build (push) Successful in 16s
Build homebridge-flux / Version (push) Successful in 7s
Build homebridge-flux / Publish Latest (push) Successful in 9s
Build homebridge-flux / Deploy (push) Successful in 13s
Adding ci action
2024-06-06 10:25:45 -05:00
.gitea/workflows Adding ci action 2024-06-06 10:25:45 -05:00
.vscode Squashed commit of the following: 2022-09-06 20:28:49 -05:00
src Adding separate configuration for wiz vs hue lights 2023-04-30 12:14:10 -05:00
.drone.yml Adding separate configuration for wiz vs hue lights 2023-04-30 12:14:10 -05:00
.gitignore Initial commit 2020-04-08 21:02:08 -04:00
.prettierrc Squashed commit of the following: 2022-09-06 20:28:49 -05:00
config.schema.json Adding separate configuration for wiz vs hue lights 2023-04-30 12:14:10 -05: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 Adding separate configuration for wiz vs hue lights 2023-04-30 12:14:10 -05:00
package.json Adding separate configuration for wiz vs hue lights 2023-04-30 12:14:10 -05:00
README.md Update 'README.md' 2020-11-15 19:38:29 -05:00
tsconfig.json Squashed commit of the following: 2022-09-06 20:28:49 -05: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