03-15-2025 05:14 AM - edited 03-15-2025 05:15 AM
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.
03-18-2025 02:07 PM
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:
Thanks for your kind attention; I will be looking forward to hearing from you.
Best regards,
Virna
03-19-2025 01:35 PM - edited 03-19-2025 01:37 PM
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.
03-20-2025 05:05 PM
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.
03-21-2025 09:29 AM
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?
03-24-2025 05:31 PM - edited 03-24-2025 05:32 PM
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
03-26-2025 02:01 PM
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.