cancel
Showing results for 
Search instead for 
Did you mean: 

Script for Sunrise Alarm

Gduck24
Community Member

Right now I can tell my google home goodnight, and it asks me what time I want to set an alarm for.  I am currently using scripts to turn on a lamp slowly over the course of 10 minutes at a set time, but I would like to script something that swaps the regular alarm for my sunrise alarm.  Does anyone know if this is possible?  

something like Hey google goodnight, then it asks me what time I want the sunrise alarm to start, then when that time comes the light comes on over the duration of 10 minutes.  

1 Recommended Answer

Suc1
Solutions Expert
Solutions Expert

You can achieve this using Google Home Routines with delayed actions. Create a custom routine triggered by your "goodnight" phrase that first asks for your wake time, then schedules both your alarm and a gradual brightness increase for your lamp starting at that time.

For the technical implementation, you'll need to use the Home API  that runs when the alarm triggers, gradually increasing brightness over your desired 10-minute period. Have you already set up developer access to the Home API  capabilities?

View Recommended Answer in original post

1 REPLY 1

Suc1
Solutions Expert
Solutions Expert

You can achieve this using Google Home Routines with delayed actions. Create a custom routine triggered by your "goodnight" phrase that first asks for your wake time, then schedules both your alarm and a gradual brightness increase for your lamp starting at that time.

For the technical implementation, you'll need to use the Home API  that runs when the alarm triggers, gradually increasing brightness over your desired 10-minute period. Have you already set up developer access to the Home API  capabilities?