Smart Lock Announcment


#1

In my piston I want it to announce through my Sonos’ a custom text announcement depending on whose code is used to unlock the door.

This works fine, but the problem is if I unlock it from the inside to leave the house, it also announces the #1 user announcement. I do not want it to announce anything if I’m not using a code, only if i’m on the outside and using a code to get in.

Please see attached screenshot, thanks.


#2

Try using three individual IF blocks for each lock code instead one IF block with two else statements embedded. Right now, any code that is not #2 will default to the first else statement to play for code 1


#3

Thanks for the tip, but how do i add a individual IF block? When I click Add a new condition it makes it an AND statement. OR do you mean add 3 separate pistons for each condition?


#4

If you click on add new statement below each IF block, you can add new ones.


#5

Doh! Yes i see it now, thank you I will try it this way, thanks for your patience.


#6

Ok I tried your suggestion and it still does the same. Here’s how it looks now, it still says the Hello1 option if i unlock it from the inside without using a code:


#7

It looks like you still have nested IFs. They should all be in line. I think that should help solve your issue


#8


#9

Thanks, i tried this also without the nested ifs and same result…

Says it even when opened from inside.