PanelBuilder Posted April 2, 2011 Posted April 2, 2011 I wonder if any lua experts can shed some light on this. The Abris power switch works as expected. Send it a 1 and it goes up/on. If it's already up it just stays there. Same for 0 and down/off. But the Abris itself changes state on or off whenever it gets a 0 or 1 regardless of the switch setting. This is not a good thing, because if you send it your switch state at startup and it's 1, and the it's already on, the Abris turns off. Can anything be done about this? Thanks everyone. Colin
Gadroc Posted April 2, 2011 Posted April 2, 2011 Somewhere in the system you'll have to compare current value against what you are trying to set. You can get the current value using the get argument value function on the main panel passing in the argument id for that switch. If the values are equal then don't call perform clickable action.
PanelBuilder Posted April 3, 2011 Author Posted April 3, 2011 Somewhere in the system you'll have to compare current value against what you are trying to set. You can get the current value using the get argument value function on the main panel passing in the argument id for that switch. If the values are equal then don't call perform clickable action. Thanks Gadroc. I guess that's what I'll have to do. Cheers, Colin
Gadroc Posted April 3, 2011 Posted April 3, 2011 Unfortunately I've run into several little quirks like that which required specific code in Helios. A lot of tinkering, but fun especially once you get things working.
C6_Hellfrog Posted April 4, 2011 Posted April 4, 2011 hmmm ... Gadroc still remain extremly modest : I'am smiling when earing at him with "several" and "little"...
Recommended Posts