Jump to content
C4 Forums | Control4

Dynamically changing a Security Partition Capability.


Recommended Posts

Hi all,

I have a request to allow an installer to select whether the Alarm will use AWAY only, instead STAY or AWAY via the Properties Tab.

I can obtain the capability with C4:GetCapability("arm_states") which returns "STAY,AWAY". Now I want to write "AWAY" back there.

  <capabilities>
    <arm_states>STAY,AWAY</arm_states>
  </capabilities>

So I get

  <capabilities>
    <arm_states>AWAY</arm_states>
  </capabilities>
 

I can't find a function that will do this. The messy way is have 2 drivers.

 

Any suggestions?

Cheers

John

Link to comment
Share on other sites


This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.