Wanted thanks folks who had been helping me out with my Cooper Switch Associations with a bit of help on how to keep your Master/Accessory Switch always in sync and functioning with Instant Status –
These instructions are for Cooper RF 9540/9542 dimmers and 9501/9517 binary switches
Updated with new parameter fix for dimmers and switches (thanks to Wholm for this awesome undocumented hack!)
First you must associate the switches or dimmers to each other, using group 1. Make sure Master and all Aux have associations to all other Aux/master in the circuit.
Problem… LEDs don’t stay in in sync on the AUX Switch
After you associate your Master and Accessory switch they work great when you manually push the button, but if you try to use Vera, Vera scenes, phone App, etc to turn on or off your Master Switch, the LED on your Accessory Switch does not stay sync, meaning you might have to double tap it later to get it work.
Solution…
Add the following to the Master Switch Only
On device options tab add
Parameter 10 using 1 Byte hex and set to 1
This will ensure both the on/off LED and Dimmer Level LED stays in sync for all scenarios.
Problem… Instant Status seems flaky or not working:
If your Instant Status is not working properly (this is usually caused by having a secondary controller or scene controller in your network that controls your lights and it eats your instant status). So if you have a Minimote you are using, or in-wall scene controller you might see this behavior.
Solution…
Add an association in Group 255 from the Master switch, back to the Vera (Device ID 1, which is listed as “ZWAVE” in the device list in unassigned, should be at the very bottom of the list in the UI).
Problem… your LEDs on your AUX switches are still not staying in sync sometimes.
Unfortunately I have found that sometimes parameter 10 doesn’t work quite reliably (if the connection between the switches is weak particularly for the On command), if you try to use it, and only the off command will sync or neither. You can use Scenes instead or in addition to using parameter 10 try the following:
Solution…
Create two scenes to control the two (or more) switches together using the Advanced Scene editor, one scene to turn the LED on, and one to turn the LED off, using the Master Switch (on or off) as the trigger for the scene.
Don’t know how to get the advanced Scene Editor? Just start out by creating a manually triggered scene to turn your master switch on, near the end of the process in step three you will see Advanced Editor, click on it. From there add an Action, you can now select the Accessory Switch, and Set the Target to True (1) to match the Master Switch. If you have more that one Accessory switch add it as well.
Now make sure you set the trigger to be the off or on state of the master switch. Save your Scene and repeat but create an Off Scene.
Note: if the SetTarget is not available in the advanced editor for your Aux switch, give it a few minutes it take several minutes for it to be available after you first add it to Vera.
If you have an old Dimmer switch that does not support parameter 10 for some reason you can use the two scene method above then add the following to your “on” scene to sync the dimmer level. Note that since just changing the dimmer level on the master will not trigger instant status you aux will still be a little out of sync at times but this will catch them up the next time the master is turned on.
Now you need to add a little LUUP code to your Scenes to fix your blue LED –
Use below code:
Where light_main should be set to your master dimmer
light_aux should be set to your accessory dimmer
Note the 3 in the call_delay command you be equal to or higher than the ramp speed on your dimmer. The default on the coopers is 3. If you ramp speed is slower you need to set that to match (otherwise it sync the led mid ramp…which is wrong).
You should also add this LUUP code to any scene where you are setting the dimmer level on your master switch as purely changing the dimmer level (with out turning the switch on/off) via the UI or a scene does not trigger the on/off scene to sync the blue LED, you need the cal the LUUP code any time there is a change that only the load level is changing and not the power state.
function delaysync()
local light_dstat = “0”
local light_main = 34
local light_aux = 35
light_dstat = luup.variable_get(“urn:upnp-org:serviceId:Dimming1”, “LoadLevelStatus”, light_main)
luup.call_action(“urn:upnp-org:serviceId:Dimming1”, “SetLoadLevelTarget”, {newLoadlevelTarget = light_dstat}, light_aux)
end
luup.call_delay(“delaysync”,3,“”)
Lastly if you have scenes that change the dimming level of the master, you can add advance scene edits for the AUX dimmers by setting their SetLoadLevelTarget to the same value you are setting the Master in your scene.
The only way now your dimmer levels will get out of sync is when you directly change the master dimmer level from web/app with out turning it off/on.
Hope this helps folks!
Enjoy!