i Just wanted to say, that after some research and coding I now understand the concept of a ZWAVE
thermostat and what you were trying to explain. I didn't realise that a ZWAVE thermostat definition is all about the SetPoint and Mode. It makes sense as the other sensors could include temperature, humidity etc, hence the reason to include a MultiSensor. Given that I'm interfacing to SmartThings, I had hoped there would be some intrinsic support, but alas it looks as though I'll have to create a (Groovy) device handler. In terms of the ZUNO defintions, is there best practice around which of the following would be preferable ?
Code: Select all
ZUNO_SETUP_CHANNELS(
ZUNO_THERMOSTAT(THERMOSTAT_FLAGS_OFF|THERMOSTAT_FLAGS_HEAT, THERMOSTAT_UNITS_CELSIUS, THERMOSTAT_RANGE_POS, 40, getterMode1, setterMode1, getterSetPoint1, setterSetPoint1),
ZUNO_SENSOR_MULTILEVEL_TEMPERATURE(getterTemperature1),
ZUNO_THERMOSTAT(THERMOSTAT_FLAGS_OFF|THERMOSTAT_FLAGS_HEAT, THERMOSTAT_UNITS_CELSIUS, THERMOSTAT_RANGE_POS, 40, getterMode2, setterMode2, getterSetPoint2, setterSetPoint2),
ZUNO_SENSOR_MULTILEVEL_TEMPERATURE(getterTemperature2)
);
or
Code: Select all
ZUNO_SETUP_CHANNELS(
ZUNO_THERMOSTAT(THERMOSTAT_FLAGS_OFF|THERMOSTAT_FLAGS_HEAT, THERMOSTAT_UNITS_CELSIUS, THERMOSTAT_RANGE_POS, 40, getterMode1, setterMode1, getterSetPoint1, setterSetPoint1),
ZUNO_THERMOSTAT(THERMOSTAT_FLAGS_OFF|THERMOSTAT_FLAGS_HEAT, THERMOSTAT_UNITS_CELSIUS, THERMOSTAT_RANGE_POS, 40, getterMode2, setterMode2, getterSetPoint2, setterSetPoint2),
ZUNO_SENSOR_MULTILEVEL_TEMPERATURE(getterTemperature1),
ZUNO_SENSOR_MULTILEVEL_TEMPERATURE(getterTemperature2)
);
I've had great success with the 4800 baud SoftwareSerial. No problems at all.