I’ve played around with this for a while now, and as with most of my Vera experiences, what I wanted to accomplish sounded simple but ended up being more difficult than I expected.
In my foyer by the front door, I have a dimmable switch that supports association.
What I wanted to do is enable a double-off tap to trigger a ‘leaving home’ scene that would turn off all the lights in a particular order, leaving the foyer for last.
Originally I attempted to do so using an association to a virtual switch, but later learned that virtual switches don’t work that way. Why? No good answer - all I could gather is that the association only really works properly with a physical switch.
So the next attempt was to use a specific physical switch. I chose a floor lamp in the living room. I use the physical switch on the lamp, but have it connected to a switch (Aeon Labs DSC06106-ZWUS - Z-Wave Smart Energy Switch) so that it can be turned off remotely. I created the scene, and the scene is triggered by that zwave switch being turned off. Works!
Next I connected that switch to the foyer dimmer switch by association. Works!
HOWEVER, when the floor lamp is switched by association, it doesn’t trigger the scene. If I switch it manually it does. What am I missing here?
(as a note - I’m triggering the scene by the switch state, and I can’t use a minimum current trigger, since the physical switch on the lamp will very often be off)
Is there some kind of complicated luup code that needs to be executed for this simple idea? I’m lost at this point.
I imagine for future capabilities, an ideal way to be able to control multiple scenes like this would be to have a binary state/condition code of multiple switches trigger different events. (i.e. if lamp 1 on, 2 off, 3 on, 4 on trigger scene A if lamp 1 on, 2 off, 3 on, 4 off trigger scene B) But now I might be getting ahead of myself.
Thanks for everyone’s help.