What format does the time have to be in for the expression to be able to extract that information?
Trigger an action 5 minutes before "GCal Search" event
Typically any standard date/time format would work. But randomly stuck in a message probably won’t do it.
I’m going to refer to the entire expression you have above as $data just for simplicity.
Try this
addMinutes(time($data), -5)
Instead of trimming the last one by 15 can you just wrap it in another time() function?
The original intent was to trigger an alert 5 minutes before correct?
You can do a time happens daily (under virtual devices/time) and then change the value field to expression and plug the above in.
I wanted to play a notification on speakers 5 minutes before the event. Is it normal to see the random number here? Thanks for all of your help by the way. All this is new to me.
That is just the converted time in milliseconds.
As for your piston. Currently it should execute everyday at that time. Since I don’t think this is what you wanted. There needs to be logo logic to limit it to the day it’s happening. Can you stick this in the original piston? Or does the presence sensor (GCal event) only activate at the exact time?
What is logo?
I suppose I can add this to the original Piston.
The presence Sensor activates at the exact time of the event start.
Sorry was supposed to say logic.
Also adding this to the original won’t work then. We are going to have to catch the date as well in order for this alert to work properly. I am about to fall asleep though. I’ll have to pick this back up in the morning
Hey, thanks for everything. If I can donate let me know. Even if this doesn’t work out I have learned plenty.
eventSummary attribute shows “No events found” when not scheduled. Thinking I can just add that to part of the condition.
Perfect!! You are definitely learning!
As for donating there is a PayPal link at the top of the page. It all goes to Adrian. Minions are just here to help!!