Best daily deals
Best daily deals

Links on Android Authority may earn us a commission. Learn more.

How to set Philips Hue to turn on and off at sunrise and sunset

Sunrise and sunset are moving targets, but it's easy to have your Philips Hue lights sync with them every day.
May 4, 2022

You can do many things with Philips Hue smart lighting, one of the most common being turning bulbs on and off at specific times. In this tutorial, we’ll look at turning Hue lights on and off at sunset and sunrise, times that vary every day of the year.

Read also: The best Philips Hue apps for Android


To set Philips Hue to turn lights on and off at sunrise and sunset, open the Hue app and select the Automations tab. Tap the plus icon, then scroll down and select Custom. Under Start at, you can choose Sunrise or Sunset as a variable, then configure the rest of the automation with the duration, schedule, and lights you want to use. You'll need a Hue Hub to make this work.



Two Philips Hue bulbs, a Hue Bridge, and the Hue smartphone app.

Because this is dependent on cloud data and automations, there are a few things you’ll need:

With all of that, you should be able to get started.

Method 1: The Philips Hue app

The Hue app is the simplest method and probably the one most people should rely on. Here’s what to do:

  • After launching the app, select the Automations tab.
  • Tap the plus icon in the upper-right corner.
  • You’ll see a list of common automations, but we want the Custom button at the bottom.
  • Tap Start at and choose Sunrise or Sunset. You can optionally specify an offset up to 120 minutes before or after — we recommend taking advantage of this, especially for sunset, since it’s often dark inside well before the sun goes down.
  • Tap Fade duration if you want lights to fade in or out over a set time. The default is “Instant,” but you can specify fades up to 60 minutes.
  • Use End at if you need a routine to switch off at a specific time.
  • Make sure Repeat is toggled on, and choose the days of the week you want an automation to run. 
  • Make sure Randomize times is set to No, then hit Next.
  • Select the rooms or individual lights you want an automation to impact. For individual lights, use the drop-down arrows to show their checkboxes.
  • Pick a Scene you want your automation to trigger. Choose Off if you want lights to go out. If you’re making them turn on, we recommend Bright unless you have a specific color scheme in mind.
  • Tap Next, then name your automation. Make its title descriptive, so you know what it handles — e.g., Living Room Sunrise.
  • Tap Done.
  • Repeat this process to create as many sunrise or sunset routines as you need.

You can always toggle an automation on and off from the Automations tab. If you want to edit or permanently delete one, tap on its name to see the options.

Method 2: Amazon Alexa or Google Assistant

A morning view on the second-generation Google Nest Hub.
Jimmy Westenberg / Android Authority

In some cases, you may want to incorporate Hue lights into a sunrise or sunset routine created for Alexa or Google Assistant. Use this approach if you want more than just lights to be triggered — a sunset routine might also close blinds and make sure all your doors are locked.

For Alexa

  • Open the Alexa app and select the More tab.
  • Tap Routines, then the plus icon in the upper-right.
  • Select Enter routine name and enter something short but descriptive.
  • Select When this happens, then Schedule.
  • Choose Sunrise or Sunset. You can specify offsets up to 60 minutes before or after.
  • Tap Repeat to choose when the automation runs. The default is Every Day, but like the Hue app, you can pick specific days of the week.
  • Tap Next, then Add action
  • To control your Hue lights, select Smart Home.
  • Tap Lights to select lights individually, or else Control group or Control scene. The latter will let you trigger Scenes built in the Hue app.
  • If applicable, use the Power, Brightness, and Set color temperature options to tweak the desired lighting, then tap Next.
  • If you want to combine lighting with other actions, use the Add action button as many times as you need.
  • When you’re done, tap Save in the upper-right corner of the New Routine pane.

For Google Assistant

  • Open the Google Home app and select Routines.
  • Tap the plus icon in the lower-right corner.
  • Use the pencil icon to change the routine’s name.
  • Tap Add starter, then At sunrise or sunset.
  • Choose Sunrise/Sunset location, then your home address.
  • Tap When the sun rises/sets if you need to choose a time offset.
  • Under Repeats every, choose the days of the week you want your automation to run. Once you’re done, tap Add starter.
  • Tap Add action.
  • Try Adjust Home Devices > Adjust lights, plugs, and more if you’re not familiar with what your lights are called and/or you just want them to turn on or off. You’ll have to tap on Adjust lights, plugs, and more from the main routine page to select lights individually.
  • Alternately, pick Try adding your own and type in a phrase as if you were talking to Assistant yourself, e.g., Set the Bedroom lights to 50%.
  • Add as many actions as you need. When you’re finished, hit Save.