Multi-trigger piston


#1

1) Give a description of the problem
I want two different triggers (SHM change or a switch change) to execute rest of piston which will set my Leeo color LED based on certain conditions.

2) What is the expected behavior?
Switch5 is a virtual switch that I set on when SHM has triggered alarm. I want that switch changed event OR a change of SHM to then do:

If switch5 on, set Leeo led red
If SHM armed, set Leeo led orange
Else set Leeo led yellow

3) What is happening/not happening?
In the editor after saving I see the trigger ‘lightning bolt’ where my ‘if switch is on’ logic is, it won’t let me add the set led orange

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

5) Attach any logs (From ST IDE and by turning logging level to Full)
8/13/2018, 11:18:35 PM +216ms
+363ms ║An error has occurred while subscribing: groovy.lang.MissingPropertyException: No such property: r for class: java.lang.Boolean

I’ve read through some other topics and tried changing some of the if and with advanced options (TSP TCP) but didnt seem to help.


#2

You can have as many triggers in a piston as you want.

It’s a little odd that the STATUS in your line 20 is purple… not italic black like the switch in the line above. Did the ‘status’ you selected from the dropdown menu have a symbol in front of it? If it did, try finding one that doesn’t. You might have selected the ‘status’ that is online or offline (which wouldn’t be a valid trigger), rather than the status that is armed, disarmed, etc.


#3

Ok, I reshuffled your original piston to how I think you’re trying to do it. You can rename the ifttt trigger to your version, I didn’t know how you named the rest of yours.

I think there was something corrupt in your original piston that was throwing the exception errors.


#4

“smart home monitor status” is an item in virtual devices

Thanks that seems to work. I thought I needed to use switch5 change as a trigger in order for the piston to execute. As you did it, it just continually loops checking the condition I guess.

Thanks again!


#5

In the absence of a trigger, conditions will act like one as indicated by the lightning bolt. You can also force the subscription by clicking on the cog icon and selecting “always subscribe”.