Solution - Fairly basic rule not work. Is it something basic I have missed, or should it be ELSE conditions?


#1

1) Give a description of the problem
Press a button, if condition # 1 is met, TTS, if condition # 2 is met, TTS, if condition # 3 is met, TTS. The TTS part is not working. Not sure if I should be using an ELSE condition instead?? If so, not sure what it should be.

2) What is the expected behavior?
As above

3) What is happening/not happening?
As above

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

Preformatted text[23ea6ee4-da36-48f7-a7c4-885d53f04a52](https://graph-na04-useast2.api.smartthings.com/ide/logs#23ea6ee4-da36-48f7-a7c4-885d53f04a52) 07:29:24: debug Test Button 2: [name:button, value:released, data:[buttonNumber:1], isStateChange:true, descriptionText:Test Button 2 was released]

[23ea6ee4-da36-48f7-a7c4-885d53f04a52](https://graph-na04-useast2.api.smartthings.com/ide/logs#23ea6ee4-da36-48f7-a7c4-885d53f04a52) 07:29:24: debug Test Button 2: Calling Release Button

[23ea6ee4-da36-48f7-a7c4-885d53f04a52](https://graph-na04-useast2.api.smartthings.com/ide/logs#23ea6ee4-da36-48f7-a7c4-885d53f04a52) 07:29:21: debug Test Button 2: Parse returned [name:button, value:pushed, data:[buttonNumber:1], isStateChange:true, descriptionText:Test Button 2 was pushed]

[23ea6ee4-da36-48f7-a7c4-885d53f04a52](https://graph-na04-useast2.api.smartthings.com/ide/logs#23ea6ee4-da36-48f7-a7c4-885d53f04a52) 07:29:21: debug Test Button 2: Parsing 'on/off: 0' Event Result: [name:switch, value:off]


#2

The problem was with the Virtual Switch. Lines 21, 30, 39 were using the switches $status. The fix was to use switch. Made this change and it appears to be working.