Every other hour on / off


#1

1) Give a description of the problem
the piston does run every hour, but no actions happen in ST

2) What is the expected ![download%20(2)|690x444] ?
On the even hour turn virtual contact “on”, the odd hour, turn it “off”

3) What is happening/not happening?
no actions in ST

**4) Post a Green Snapshot of the piston![image|45x37]



(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
/10/2021, 6:59:59 PM +62ms
+0ms ╔Received event [Home].time = 1615424400000 with a delay of -939ms
+262ms ║RunTime Analysis CS > 235ms > PS > 4ms > PE > 23ms > CE
+264ms ║Runtime (37526 bytes) successfully initialized in 4ms (v0.3.113.20210203) (263ms)
+265ms ║╔Execution stage started
+290ms ║║Comparison (enum) off is (string) off = true (2ms)
+292ms ║║Condition #8 evaluated true (13ms)
+293ms ║║Condition group #2 evaluated true (state did not change) (16ms)
+298ms ║║Comparison (integer) 18 is_even = true (2ms)
+301ms ║║Cancelling statement #6’s schedules…
+308ms ║║Skipped execution of physical command [null].on([]) because it would make no change to the device. (4ms)
+309ms ║║Executed [Pool pump].on (6ms)
+311ms ║║Condition #3 evaluated true (17ms)
+312ms ║║Condition group #2 evaluated true (state did not change) (18ms)
+316ms ║╚Execution stage complete. (51ms)
+318ms ║Setting up scheduled job for Wed, Mar 10 2021 @ 8:00:00 PM CST (in 3600s)
+325ms ╚Event processed successfully (326ms)

3/10/2021, 7:27:59 PM +971ms
+0ms	╔Starting piston... (v0.3.113.20210203)
+191ms	║╔Subscribing to devices...
+291ms	║║Subscribing to pool pump override...
+293ms	║║Subscribing to Pool pump...
+294ms	║╚Finished subscribing (112ms)
+341ms	║Comparison (enum) off is (string) off = true (1ms)
+342ms	║Cancelling condition #2's schedules...
+347ms	║Comparison (integer) 19 is_even = false (1ms)
+356ms	║Cancelling condition #2's schedules...
+372ms	║Setting up scheduled job for Wed, Mar 10 2021 @ 8:28:00 PM CST (in 3599s)
+385ms	╚Piston successfully started (385ms)

(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

REMOVE BELOW AFTER READING

These are virtual “alexa switches” that show up in ST as contact sensors, I do have full control of them in alexa, IFTTT, and the ST apps, if that matters

also, tied changing the time to several minutes after the hour, and no difference.

This is partially taken form someone else’s piston that they shared. I don’t know how to remove their comment ref the Thermostat, that’s theirs not mine.


#2

That doesn’t look right. It shouldn’t say null. I’m not sure what to suggest to fix that. Maybe remove the device from webCoRE and add it again or something.

Edit the piston and click on the piston name in line 2 and it should appear in the settings.

I’d counsel against setting a timer on the hour and then checking whether $hour24 is even. Timers aren’t accurate enough for that.


#3

It started working on its’ own beginning 27 minutes after midnight, and has been working all day, So, idk what was wrong or how it started working, but I guess I’ll take it.

How would you recommend accomplishing this task?


#4

Simply run it a tad later if you can. A minute or two past the hour. If you aim to run on the hour then the piston only has to fire one second early to change the time from an odd hour to an even hour. A few seconds early is quite common.