Jump to content

Strangeness with Abris power


PanelBuilder

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Recently Browsing   0 members

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