Hi, hope someone can help. I have three Leviton dimmers that support instant update, I would like to have them linked so when I turn on one to 20, 30 or whatever %, the other two do the same. I have tried using the Property as input and I can get the loadlevelstatus, but I cant set it as the new property for the other two. Thanks!
This is difficult to do without getting into an infinite recursion.
I will have to fix that in a later release (4.4)
But the stategy will be to define inputs:
DV1 Dimmer1 LoadLevelStatus
DV2 Dimmer2 LoadLevelStatus
DV3 Dimmer3 LoadLevelStatus
Conditions:
D1Change (DV2;DV1) and (DV3;DV1)
D2Change (DV1;DV2) and (DV3;DV2)
D3Change (DV1;DV3) and (DV2;DV3)
Actions:
D1Change Set DV2 and DV3 loadlevel status
D2Change Set DV1 and DV3 loadlevel status
D3Change Set DV1 and DV2 loadlevel status
To do this you will use the Advanced tab of the Action editor.
Change the value to {(DVN)} as appropriate.
[hr]
But this is an INFINITE loop right now … because when you manually change D1
it sets new values for D2 and D3. Which in turn each trigger PLEG. It does not know the difference between manually changed and dynamically changed.
I will break the loop by not evaluating property changes when the new and old values are the same.
For now, you can code this up as 1 master and 2 slaves. So the slaves only follow the master. (i.e. ONLY define actions for one of these conditions, that one is the master!)
Richard, thank you very much. I did this and apparently its working fine. But I don’t know if there is an infinite loop. How could I know? Is there a way to know if PLEG is looping??? Thank you!
Check the log file.
It might be that I do not need a fix, if Vera does not call me back if a variable is changed to it’s same value. I have not tested.
Richard, I did something simpler and it works and I think it is not looping, is this correct??
DV1 Dimmer1 LoadLevelStatus
DV2 Dimmer2 LoadLevelStatus
DV3 Dimmer3 LoadLevelStatus
Conditions:
D1Change DV1
D2Change DV2
D3Change DV3
Actions:
D1Change Set DV2 and DV3 LoadLevelStatus
D2Change Set DV1 and DV3 LoadLevelStatus
D3Change Set DV1 and DV2 LoadLevelStatus
Still has the possibility to loop, unless Vera suppresses change requests when you change something to it’s current value.
Richard, I am trying to do this association thing with two dimmers but ONLY if the two are ON, if any of those is OFF, it should not follow the other. Hope you can help. Thanx.