Trying to figure out a piston using GCal Search (google calendar search)


#23

What is the next scheduled showing in the piston quick facts. Don’t look at the variables. If the event is no longer valid or expired it will have a description of ‘ no events found’. Then the piston won’t trigger any longer until there is a valid event description. It doesn’t clear the old dates until it finds a new event date. What we are really concerned with is the next scheduled event. If that is empty it will not turn on any lights. If it is filled in then the lights will turn on at that time


#24

The quick facts (section under variable definitions) is showing next date as 12/08/17 but the next start time is showing correctly with 12/09/17’s start time.

download


#25

That’s what we are concerned with. As log as that next start time is set for the correct time to turn on lights, your stuff should work properly. If you go into the smartthings app and open your gcal event what does it say in the description box? Is there a new event that hasn’t occurred yet?


#26

Does it look like this?

That means no more scheduled events in google calendar and variables won’t change

If it looks like this

Then the variables should have changed to reflect that info

What we are most concerned with is this is set correctly to right time


#27

Checked everything you asked about.

  1. Smartthings app shows next event as 12:00pm 12/10/17 (correct)
  2. Logs match above
  3. Quick Facts show next scheduled “never”
  4. Log variables show start time 12:00am (instead of PM) and date 12/09/17 (instead of 12/10/17)

Piston turns on light on every run I assume because the event is showing in the past?


#28

Ahh got it… change the variable type for startTime to string not time