Hey I have a question I didn’t I need to ask, or even how to ask it.
Is it possible, with node-red, to turn on my light 5 minutes before my phone alarm goes off?
I know I have a sensor for next alarm, but it gives value like: 2020-09-09T05:00:00.000Z.
Is there way in node-red to make something trigger 5 minutes before that time?
Thank you so much and sorry for stupid explanation, but I am not really sure what to ask.
Look further down at his comment and you will see the code so you can import that into your Node Red.
Note: For that setup you need to use the HA Companion app, and go into the settings to enable “Next Alarm”.
If you don’t want to use the HA Companion app, you can set up a time flow manually; though I think it’s awesome that this works if you change alarm or snooze.