Help with timer piston


#1

1) Give a description of the problem
I’ve got yellow jackets living in the corner of my house. I’ve setup a shop vac to suck them out. It’s worked great thus far but I’d like to put it on a timer to not wear out the motor. I created a piston that I thought would work but apparently not.

2) What is the expected behavior?
Between sunrise and sunset, turn vacuum on for 1 hour, turn off for half hour.

3) What is happening/not happening?
Vacuum turns on but only turns off after sunset.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
This is difficult at the moment since it take over an hour to see if it’s working and I’m currently at work.


#2

If you want to debug this while away from home… try creating virtual devices that you can later swap out for your actual device. Use Log to console to put some debugging points in your code. Just a note that you if you’re using Chrome, use an incognito tab/window to log in to the IDE.


#3

Couldn’t someone just tell me what’s wrong with my rules? I’m guessing there’s also probably a cleaner way to accomplish my goal but I’m not as familiar yet with some of the advanced features of webcore.


#4

You could simplify it by doing something like this: