About

Hugh is a service that runs on your computer and automates your Philips Hue lights.

The main purpose is to automate the colour temperature of your lights throughout the day, taking the local sunset/sunrise into account. Think of it like f.lux, redshift, or Apple’s Night Shift for your home’s lights.

Schedules

An example Hugh schedule might look like this:

timecolour tempbrightness
sunrise200040
sunrise+1h289080
sunrise+2h4291100
sunset-2h3500100
sunset-1h2890100
sunset289080
sunset-1h230070
23:00offoff

Hugh will then smoothly transition between the different points as the day goes on.

Local sunrise/sunset is calculated every day.

Tech

Hugh is written in go and uses the Philips Hue API to control the lights.

It takes advantage of the V2 API which provides server-sent events for changes to lights which means the hue bridge doesn’t have to be constantly polled for their latest status.