Automated Philips Hue Light Adjustment for Natural Daylight Cycles
MIT License
Hue Daylight Sync is a Homebridge plugin that automatically adjusts your Philips Hue lights based on the natural daylight cycle. It calculates the ideal color temperature throughout the day based on your geographical location and smoothly transitions your lights to match.
npm install -g homebridge-hue-daylight-sync
config.json
or through the Homebridge UI.Add the following to your Homebridge config.json
file:
{
"platforms": [
{
"platform": "HueDaylightSync",
"name": "Hue Daylight Sync",
"bridgeIp": "YOUR_HUE_BRIDGE_IP",
"apiToken": "YOUR_HUE_API_TOKEN",
"latitude": "YOUR_LATITUDE",
"longitude": "YOUR_LONGITUDE",
"warmTemp": 2700,
"coolTemp": 3000,
"updateInterval": 300000,
"inputDebounceDelay": 750,
"defaultAutoMode" : true
}
]
}
bridgeIp
The IP address of your Hue BridgeapiToken
Your Hue API tokenlatitude
Your geographical latitudelongitude
Your geographical longitudewarmTemp
Warmest color temperature in Kelvin (default 2700K)coolTemp
Coolest color temperature in Kelvin (default 3000K)updateInterval
Interval in milliseconds between temperature updates (default 300000 - 5 minutes)inputDebounceDelay
Prevents rapid, successive updates when adjusting the brightness slider or color temperature (default 750ms)defaultAutoMode
Set to true to enable Auto Mode by default, false to disable (default true)Once installed and configured, the plugin will appear in your Home app as a light accessory with an additional switch for the Auto Mode.
When Auto Mode is enabled, the plugin will automatically adjust your Hue lights' color temperature throughout the day to match natural daylight patterns.
If you encounter any issues:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.