Almost working piston


#1

1) Give a description of the problem
Everything work except the last if

2) What is the expected behaviour?
The last if should turn off some light

3) What is happening/not happening?
Its not working

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

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Not sure why it isn’t working. Is it running at the right time? Try just using ‘turn off’. That command will work even with multiple devices.


#3

The turn all off command calls the allOff() command which I understand is a custom command associated with Logitech Harmony devices. You just want turn off which calls off().

One of the ‘gotchas’ with using device variables is that webCoRE can’t help narrow down the available commands for you.