Lights to go red on contact sensor or lock unlocked


#1
  1. Give a description of the problem
    added in the yale lock and now the lights dont go red

  2. What is the expected behaviour?
    normally have the contact sensors changing the lights to red when they change to open. Now i’ve added an yale lock and when that unlocks i’d like the lights to go red as well but they dont

3) What is happening/not happening?
I’d like it that if any contact sensors or lock is unlocked the lights go red as they did before the lock was introduced to the piston.

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)


#2

Change lock 1’s lock is unlocked to lock 1’s lock changes to unlocked and see if that works better


#3

ha that was all it was,thanks!!


#4

Good catch @jkp, classic Trigger vs. Condition.

Just FYI @Baldog, so you know for next time, look for the little lightning bolt on your piston next to the parts of your if statement.

image

If it you don’t see the little symbol next to something, that means that changes to that “thing” will not cause the piston to be executed. (Aka there’s no subscriptions to those events.) In this case, you had one trigger and one condition. The condition will only be evaluated not cause the piston to execute. Conditions will act like triggers but only if there are no triggers in the piston. When you define the if part of the piston, the triggers and conditions are separated in the drop-down to let you know which are which.

I had a lot of trouble understanding this when I fist started with webCoRE. I mean a LOT. Hopefully this helps you avoid some of the headaches I had. I can feel a throbbing behind my left eye just thinking about it! :smiley:


#5

@Ryan780 Thanks for this, its very helpful. Slowly getting there its still all very new to me but it does work well with smart things.