Alarm help NODE-RED

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.

https://zachowj.github.io/node-red-contrib-home-assistant-websocket/cookbook/using-date-and-time-entities-to-trigger-flows.html

1 Like

You explained it well.

I literally set this up last week!

Lucky for you, a fellow member posted up exactly how over on Reddit.

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.

Thank you so much. It worked perfectly.

1 Like