Akshay Posted February 4, 2021 Share Posted February 4, 2021 Hi, I'm working on control4 driver development and supporting for programming interface in composer pro. Following is my requirement, Adding actions and commands dynamically during runtime using driver code based on different device configuration. 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 Quote Link to comment Share on other sites More sharing options...
RyanE Posted February 5, 2021 Share Posted February 5, 2021 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 Akshay 1 Quote Link to comment Share on other sites More sharing options...
alanchow Posted February 5, 2021 Share Posted February 5, 2021 Could possibly usa CUSTOM_SELECT command type to dynamically populate a parameter. EG The command can be called fire command and PARAM1 could be called command with type CUSTOM_SELECT Andrew luecke and Akshay 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.