Can I get a list of Component Drivers

I'd like to have a drop-down Command input that displays a list of all the available drivers so a user can select one to add as a child device.

Is there a way, within a driver, to get a listing of all installed drivers that can be installed? Though I'm particularly interested in the component drivers, if I can get all of them I assume I can just easily filter them.

Thanks

I dont think there is a built in way to get these in groovy. I just copied the list manually from the select device driver drop down on a virtual device page.

Check out this driver which has some of the functionality you mentioned. I split the list of virtual drivers into 2 command because all options were too many characters to save in a single command.

https://raw.githubusercontent.com/michaelbarone/hubitat/master/drivers/virtualDeviceManager.groovy

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.