Scene trigger by switch via association?

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.

If this worked I believe it would contravene the Lutron instant update patent. It also is meant for device to device connection and virtual switches are not real devices.

When the switch is triggered manually, it sends a status signal to vera and vera runs the scene. When controlled by association it does not send a signal and relies on the next poll. If you wait long enough, does it eventually work?

[quote=“burboeck, post:1, topic:189957”]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.[/quote]The very good answer is that you don’t understand what associations are and that there is no association capability in a virtual switch. An association is a list of devices within a physical switch, that the physical switch is supposed to send Z-Wave commands to. Since a virtual switch is not a Z-Wave device…

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?
When using the dimmer to turn on the associated lamp, the dimmer is sending a Z-Wave command directly to the lamp, without involving Vera and the lamp does not announce its state to Vera by default. In this case, Vera will discover the new state of the lamp when next it polls the lamp and the scene will be triggered then.

I believe that the Aeon DSC06106-ZWUS can be made to immediately announce its state change to Vera by setting Parameter 80 - 1 byte Decimal = 1