Jump to content
C4 Forums | Control4

Driverworks - Add actions and commands dynamically ?


Akshay

Recommended Posts

Hi,

I'm working on control4 driver development and supporting for programming interface in composer pro. Following is my requirement,

  1. Adding actions and commands dynamically during runtime using driver code based on different device configuration.
  2. We are able to hide and show properties based on device configuration. Is it possible to link properties to action such a way that
    we can enable actions dynamically

We have a requirement where device actions should not be displayed in actions page if peripheral's are not connected to gateway device.

Example : If valve is not connected, action tab should not show valve related actions.

Thanks in advance,

Akshay

Link to comment
Share on other sites


I don't believe you can have dynamic commands in a driver.

Commands and actions are only specified via the XML structure, and can't change dynamically.

You could have the commands and actions not perform anything when called, and indicate this with a 'Status' field in the properties, but that's about all you can do at this point in time.

RyanE

 

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.