Piston does not work after switching from ST to Hubitat


#1

1) Give a description of the problem
Received an Invalid Variable Error. I used this piston previously with smarthings, but stopped after I was not able to use Echo Speaks for the announcements. I am now using hubitat, I copied the ST piston over, but it is not making the announcement or texting my phone.

2) What is the expected behavior?
Receive notification after dryer stops running

3) What is happening/not happening?
I do not receive a notification

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full
2/6/2021, 12:05:40 PM +749ms
+3ms ╔Received event [DCHome].time = 1612631140713 with a delay of 36ms, canQueue: true, calledMyself: false
+23ms ║RunTime initialize > 22 LockT > 1ms > rtDT > 1ms > pistonT > 0ms (first state access 20 4 18)
+26ms ║Runtime (7606 bytes) successfully initialized in 1ms (v0.3.113.20210203_HE)
+31ms ║╔Execution stage started
+39ms ║║Cancelling condition #10’s schedules…
+40ms ║║Condition #10 evaluated true (2ms)
+44ms ║║Comparison (error) Variable ‘@DryerIsRunning’ not found is (boolean) true = false (1ms)
+46ms ║║Condition #11 evaluated false (5ms)
+48ms ║║Condition group #3 evaluated false (state did not change) (10ms)
+51ms ║╚Execution stage complete. (22ms)
+54ms ╚Event processed successfully (53ms)
2/6/2021, 12:05:10 PM +657ms
+3ms ╔Received event [Dryer].power = 3.3904 with a delay of 23ms, canQueue: true, calledMyself: false
+24ms ║RunTime initialize > 22 LockT > 1ms > rtDT > 1ms > pistonT > 0ms (first state access 20 5 17)
+27ms ║Runtime (7579 bytes) successfully initialized in 1ms (v0.3.113.20210203_HE)
+28ms ║╔Execution stage started
+40ms ║║Comparison (decimal) 3.3904 stays_greater_than (integer) 50 = false (1ms)
+42ms ║║Cancelling any timed trigger schedules for condition 2
+43ms ║║Cancelling statement #2’s schedules…
+44ms ║║Cancelling condition #2’s schedules…
+45ms ║║Condition #2 evaluated false (9ms)
+47ms ║║Cancelling condition #1’s schedules…
+48ms ║║Condition group #1 evaluated false (state changed) (12ms)
+54ms ║║Comparison (decimal) 3.3904 stays_less_than (integer) 30 = true (1ms)
+56ms ║║Adding a timed trigger schedule for condition 10
+58ms ║║Condition #10 evaluated false (9ms)
+59ms ║║Condition group #3 evaluated false (state did not change) (10ms)
+67ms ║╚Execution stage complete. (39ms)
+83ms ║Setting up scheduled job for Sat, Feb 6 2021 @ 12:05:40 PM EST (in 30s)
+85ms ╚Event processed successfully (83ms)
2/6/2021, 12:04:39 PM +155ms
+5ms ╔Received event [DCHome].time = 1612631079085 with a delay of 70ms, canQueue: true, calledMyself: false
+22ms ║RunTime initialize > 21 LockT > 1ms > rtDT > 2ms > pistonT > 1ms (first state access 18 6 15)
+26ms ║Runtime (7598 bytes) successfully initialized in 2ms (v0.3.113.20210203_HE)
+29ms ║╔Execution stage started
+33ms ║║Cancelling condition #2’s schedules…
+34ms ║║Condition #2 evaluated true (2ms)
+35ms ║║Cancelling condition #1’s schedules…
+36ms ║║Condition group #1 evaluated true (state changed) (5ms)
+38ms ║║Cancelling statement #4’s schedules…
+44ms ║║Invalid variable @DryerIsRunning
+46ms ║║Executed virtual command setVariable (4ms)
+51ms ║╚Execution stage complete. (21ms)
+54ms ╚Event processed successfully (51ms)
2/6/2021, 12:04:09 PM +56ms
+3ms ╔Received event [Dryer].power = 251.1524 with a delay of 32ms, canQueue: true, calledMyself: false
+13ms ║RunTime initialize > 12 LockT > 1ms > rtDT > 1ms > pistonT > 0ms (first state access 10 4 8)
+16ms ║Runtime (7537 bytes) successfully initialized in 1ms (v0.3.113.20210203_HE)
+18ms ║╔Execution stage started
+27ms ║║Comparison (decimal) 251.1524 stays_greater_than (integer) 50 = true (2ms)
+29ms ║║Adding a timed trigger schedule for condition 2
+32ms ║║Condition #2 evaluated false (11ms)
+34ms ║║Condition group #1 evaluated false (state did not change) (13ms)
+40ms ║║Comparison (decimal) 251.1524 stays_less_than (integer) 30 = false (1ms)
+41ms ║║Cancelling any timed trigger schedules for condition 10
+42ms ║║Cancelling statement #10’s schedules…
+43ms ║║Cancelling condition #10’s schedules…
+44ms ║║Condition #10 evaluated false (10ms)
+46ms ║║Condition group #3 evaluated false (state did not change) (11ms)
+50ms ║╚Execution stage complete. (32ms)
+65ms ║Setting up scheduled job for Sat, Feb 6 2021 @ 12:04:39 PM EST (in 30s)
+67ms ╚Event processed successfully (65ms)

.


#2

Don’t forget to create the global variable as that doesn’t copy over.


#3

That fixed it, thank you.