Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted
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

Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...