ZUNO_THERMOSTAT - Returning temperature
Posted: 24 Jun 2018 22:53
I've got the latest 1.4 beta and set up my ZUNO as follows:
My Z-UNO is talking (SoftwareSerial at 4800baud) to a PRT-N Heatmiser RS485 Thermostat, reporting/setting values. I've paired it with SmartThings and now watching messages between the two. I think I'm happy with my understanding for getterMode and setterMode in that I return THERMOSTAT_MODE_HEAT when it's in non-frost mode (on) and THERMOSTAT_MODE_OFF when it's in frost mode (off).
However, I'm not clear how the SetPoint Temperature or probe/thermostat temperature get returned. It seems that the temperature processed by getterTemp () is being set as the SetPoint temperature in SmartThings. Does the Mode that is passed to getterTemp () determine which temperature to return? Does the Mode in getterTemp () have some other function ?
Thx
Code: Select all
ZUNO_THERMOSTAT(THERMOSTAT_FLAGS_OFF|THERMOSTAT_FLAGS_HEAT, THERMOSTAT_UNITS_CELSIUS, THERMOSTAT_RANGE_POS, 40, getterMode, setterMode, getterTemp, setterTemp)
However, I'm not clear how the SetPoint Temperature or probe/thermostat temperature get returned. It seems that the temperature processed by getterTemp () is being set as the SetPoint temperature in SmartThings. Does the Mode that is passed to getterTemp () determine which temperature to return? Does the Mode in getterTemp () have some other function ?
Thx