next alarm variable

Post your questions and help other users.

Moderator: Martin

Post Reply
xtofke
Posts: 10
Joined: 12 Feb 2014 11:18

next alarm variable

Post by xtofke » 16 Dec 2016 06:08

Hi, I've created a flow which runs every evening and sets an alarm for the next morning based of some conditions in my calendar.
This works very good and I would like to have a notification containing the next alam set.

As the last-1 step of my flow I've used the "init variable next alarm" action.
As the last step I used the action to show the value of this variable in a notification, but it always returns null.

When I run the flow for the second time the notification shows the correct time of the alarm that was just set.

Why isn't this working from the first time?

I've also tried to put the notification in another flow and execute that one as last step from the first flow but the behaviour is the same.

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: next alarm variable

Post by bogdyro » 18 Dec 2016 10:27

Maybe there's a delay until tHe system updates the new alarm.
Try adding a 5 second sleep delay before running the notification action

Post Reply