Hi all,
I have question about Thermostat Sample from ZigBee Home Automation profile.
If I understand relation correctly: Temperature sensor sends to Thermostat value of temperature. It reads that value and accordingly to it sends on/off command to Heating-Cooling unit:
Sensor ---> Thermostat --->Heating/Cooling Unit
I assume that my understanding is properly. If so, the Heating-Cooling Unit only receives data and not resend it - just turns on or turns off according to read value. There should be a ZCL_CLUSTER_ID_HVAC_THERMOSTAT in OutClusterList in the simpledescriptor.
Indeed it is, when you look at an old version of zstack - for example you can check it here:
http://processors.wiki.ti.com/index.php/Thermostat_Sample
But in the latest version of zstack, ZCL_CLUSTER_ID_HVAC_THERMOSTAT is located in InClusterList:
const cId_t zclSampleHeatingCoolingUnit_InClusterList[ZCLSAMPLEHEATINGCOOLINGUNIT_MAX_INCLUSTERS] = { ZCL_CLUSTER_ID_GEN_BASIC, ZCL_CLUSTER_ID_GEN_IDENTIFY, ZCL_CLUSTER_ID_GEN_ON_OFF, ZCL_CLUSTER_ID_HVAC_THERMOSTAT }; #define ZCLSAMPLEHEATINGCOOLINGUNIT_MAX_OUTCLUSTERS 1 const cId_t zclSampleHeatingCoolingUnit_OutClusterList[ZCLSAMPLEHEATINGCOOLINGUNIT_MAX_OUTCLUSTERS] = { ZCL_CLUSTER_ID_GEN_BASIC };
Why so? Does Heating-Cooling Unit receive data for now?