cancel
Showing results for 
Search instead for 
Did you mean: 

Promting for a 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.  

6 REPLIES 6

virnab
Community Specialist
Community Specialist

Hi Gduck24,

 

Thanks for reaching out to our community.

I appreciate your inquiry about the way to script something that swaps the regular alarm for your sunrise alarm. Thank you for sharing with us an example of the action you want to create for your sunrise alarm. It is my pleasure to assist you with this concern.

Before I start further troubleshooting, let me ask you a few questions:

  • Could you please send me a screenshot of your actual automation "goodnight”?
  • Could you please provide me with more details about the alarms that you are using?
  • What is the make and model of your lamp?
  • Are you using Script Editor or the Google Home app to set up your automations?
  • If you are using the Script Editor, are you accessing it with the Google Home for web or with the mobile Google Home app?

Thanks for your kind attention; I will be looking forward to hearing from you.

 

Best regards,

Virna 

Gduck24
Community Member

I am using the script editor.  I am using a nanoleaf matter/thread bulb.  I am using the web version.  The alarm that I have set up now to ask me came as a stock prompt in the app.  

Gduck24_0-1742416634620.png

 

virnab
Community Specialist
Community Specialist

Hi Gduck24,

 

Thank you for your timely response and the comprehensive information you've provided. It is my pleasure to continue assisting you to find the solution.

Based on the information you shared, I recommend you visit our Google Developer Center: LightEffectWakeCommand where you can find the Google Automations Script Editor to customize your automation. 

If you need further assistance with your Google Nest products, please feel free to contact us whenever you need it.

 

Best regards,

Virna. 

Gduck24
Community Member

I know how to do that.  How do I get it to go off at a specific time that my google device asks me like it asks me when to set an alarm?

virnab
Community Specialist
Community Specialist

Hi Gduck24,

 

Thanks for clarifying that you need more specific instructions to customize your sunrise alarm to automate it to trigger at a specific time, similar to how Google Assistant prompts for alarm settings. I will be more than glad to help you with your questions.

Regarding your question, in order to specify a time on your routine, you need to use the command TimeScheduleEvent . With this command you should be able to specify a time.

An example of the routine that you want to create can be found here: example scripted automations.

Thanks for your kind attention; I will be looking forward to hearing from you.

 

Best regards,

Virna

Gduck24
Community Member

Neither of these scripts get google to ask me what time I want the light to turn on.  I understand how to write a light to come on at a specific time.  I want google to ask me when, because I dont always set the time the same, so I say " hey google, set a sunrise alarm"  it says "ok, what time?"  and then I tell it a time and the lights come on at the time I say.