Engineerisaac Posted May 17, 2018 Share Posted May 17, 2018 Hey guys, Im getting a much better understanding of the Control4 Driver Universe. I can write some nice drivers now. However I am having some mental blocks when reaching across the table to find elements like thermostats or lights in a project. Is there a good way or code example to bring a listed drop down of electable thermostats? I am attempting to read the temperature value of the thermostats in a project and bring them into my driver. I have not worked deep into the functions of this yet and was wondering if anybody had a good pointer for it? Link to comment Share on other sites More sharing options...
Cyknight Posted May 17, 2018 Share Posted May 17, 2018 Hmm there are many more qualified to give you details than me, but you should be able to search by proxy id Link to comment Share on other sites More sharing options...
RyanE Posted May 17, 2018 Share Posted May 17, 2018 You can create a property in your driver that allows the installer (or homeowner with HE) to select a set of devices by proxy (or device) type: <property> <name>Temperature Sensors</name> <type>DEVICE_SELECTOR</type> <items> <item>thermostat.c4i</item> <item>control4_thermostat_proxy.c4i</item> <item>cardaccess_wirelessrelay.c4i</item> <item>cardaccess_wirelesscontact.c4i</item> </items> <multiselect>true</multiselect> </property> RyanE Link to comment Share on other sites More sharing options...
Engineerisaac Posted May 17, 2018 Author Share Posted May 17, 2018 Thanks Ryan that was exactly what I was looking for! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.