Using fixed time and ST Routine to fire piston


#1

1) Give a description of the problem
I can’t seen to find the appropriate activation to use a scheduled time or routine from ST to fire the Piston.

2) What is the expected behavior?
I want to have "Lights on at say 6.00pm or use my ST routine “sunset lighting”

3) What is happening/not happening?
Using execute works for set times but can’t seem to figure out how to add “or routine”

If I use IF “time” is 6.00pm
or
Routine, the “time” element of the piston doesn’t fire at 6.00pm.

4) Post a Green Snapshot of the pistonimage


#2

That’s a very straightforward piston and should work. What jumps out at me, however, is that is in your snapshot there are no lightning symbols next to either of your two conditions. This tells me that the piston has not subscribed to either of these events and will not fire.

The only way I can think this might have happened was that you edited the piston while it was already paused, saved it, and then clicked resume. Be sure the piston is not paused (the button below status should say resume), open the piston and then save it again. See it the lightning bolts appear next to 18 and 20.


#3


#4

That looks good, except for the extraneous (if harmless) if statement at the bottom of the statement. You can of course test if by running the routine or changing the time condition to something more immediate.


#5

Thank you bthrock - I removed the extra IF. I think I worked our what was wrong. After I made the piston and associated it with “or virtual switch” I tested it with the virtual switch, which of course worked… I think at this point the piston then counted the period to the next "IF time] trigger, ie 27 hours later…! Could this be rights?


#6

Unlikely, at least to the extent that I correctly understand the scenario you’re describing. As I said, the original snapshot showed that none of your triggers were subscribed, and a piston without subscriptions will never run on its own.


#7

No, this will trigger both at time and if the Sunset routine fires. So, you might get it happening twice. If the sunset routine runs at 20 mins to sunset, it will fire again at 10 mins to sunset as well. Just trying to make sure you understand the implications of how you’ve built it.


#8

Thank you Ryan. The routine in ST has no values just simply a way of me invoking the sunset piston in WebCoRE if I need to. I can also report that everything worked ok last night. Now I have the fundamentals working I can hopefully build on this. Thank you for your input.