Issue getting Leviton VRCS4 to work with Piston


#1

1) Give a description of the problem
Trying to get a Leviton VRCS4 Scene controller working with a very basic piston and is not working.

2) What is the expected behavior?
Hit button 1 - turn on light, set a variable, hit button 1 a second time and turn off light, change variable

3) What is happening/not happening?
Doesn’t work at all?

4) Post a Green Snapshot of the pistonimage

`

5) Attach any logs (From ST IDE and by turning logging level to Full)
`9/24/2017, 11:40:32 AM +132ms
+2ms ╔Received event [Home].execute = 174.49.158.145 with a delay of 90ms
+189ms ║RunTime Analysis CS > 25ms > PS > 105ms > PE > 60ms > CE
+291ms ║Runtime (39749 bytes) successfully initialized in 105ms (v0.2.0e9.20170921) (287ms)
+292ms ║╔Execution stage started
+321ms ║║Condition #11 evaluated false (15ms)
+322ms ║║Condition group #1 evaluated false (state did not change) (17ms)
+338ms ║║Condition #6 evaluated false (10ms)
+340ms ║║Condition group #2 evaluated false (state did not change) (13ms)
+346ms ║╚Execution stage complete. (53ms)
+355ms ╚Event processed successfully (355ms)
9/24/2017, 11:38:31 AM +230ms
+1ms ╔Received event [Nursery Keypad].button = default with a delay of 771ms
+157ms ║RunTime Analysis CS > 27ms > PS > 78ms > PE > 52ms > CE
+167ms ║Runtime (39751 bytes) successfully initialized in 78ms (v0.2.0e9.20170921) (164ms)
+168ms ║╔Execution stage started
+187ms ║║Comparison (enum) default gets (string) pushed = false (2ms)
+190ms ║║Condition #11 evaluated false (10ms)
+191ms ║║Condition group #1 evaluated false (state did not change) (12ms)
+203ms ║║Comparison (enum) default gets (string) pushed = false (1ms)
+206ms ║║Condition #6 evaluated false (9ms)
+207ms ║║Condition group #2 evaluated false (state did not change) (12ms)
+212ms ║╚Execution stage complete. (45ms)
+222ms ╚Event processed successfully (222ms)


#2

I don’t have that device but first thing I’d check on in the IDE is the live logging to see what happens when you push a button. If WC is expecting a push but the device handler is sending something else, then it might not work.


#3

Try removing the second if button 1 gets pushed in the else section


#4

I can’t remove that second IF statement as I want it to toggle the light on/off depending on the variable. How else would I perform such a function?

Looking in the IDE logs and in the Android App I see that button 1 is pressed and about 500ms later it is released.


#5

Do not remove the whole if statement. Leave the check for the variable but remove the part about the button. It will not be getting pushed again


#6

Just for kicks, try changing the WITH to Never Cancel in the Task Cancellation Policy.


#7

Ok I am getting further with my Piston. I finally got button 1 to work correctly and I proceeded to program the rest of my buttons. However for some reason only button 1 and button 3 are working correctly(for the most part, if I hit button 3 a second time White Bulb 8 comes back on?).

Can someone review my piston and tell my why button 2 and 4 are not working?


#8

I finally figured out that the issue is with the DTH. I have since gotten smart and use virtual switches with the Leviton Scene controller smartapp to trigger the Piston. Things are now working smoothly!


#9

Are you able to share your DHT? Definitely very interested to see your implementation.


#10

Can you tell me the DTH you used as well as how to set the 4 buttons as a virtual switch. Im trying to get one of these things to work.