Jump to content
C4 Forums | Control4

Get Dropdown of Thermostats


Engineerisaac

Recommended Posts

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


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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