Code: Select all
ZUNO_SETUP_CHANNELS(
ZUNO_THERMOSTAT(THERMOSTAT_FLAGS_OFF|THERMOSTAT_FLAGS_HEAT|THERMOSTAT_FLAGS_COOL,
THERMOSTAT_UNITS_CELSIUS,
THERMOSTAT_RANGE_POS,
3,
getterThermostatMode, setterThermostatMode, getterThermostatTemp, setterThermostatTemp)
);
void setup() {
// put your setup code here, to run once:
Serial.begin();
Serial.println("start");
delay(5*1000);
}
void loop() {
// put your main code here, to run repeatedly:
delay(1000);
}
byte getterThermostatMode() {
Serial.println("getterThermostatMode");
return 0;
}
void setterThermostatMode(byte thermostatMode) {
Serial.println("setterThermostatMode");
}
word getterThermostatTemp(byte thermostatMode) {
Serial.println("getterThermostatTemp");
return 200;
}
void setterThermostatTemp(byte thermostatMode, word thermostatTemp) {
Serial.println("setterThermostatTemp");
}
Code: Select all
Z-Wave Expert UI - ERROR
Unable to update data. devices[40].instances[0].commandClasses[67].Set(1,20.5)
Code: Select all
CommandClass
/: None (10:59)
1: None (10:59)
val: 20 (10:59)
scale: 0 (10:59)
scaleString: °C (10:59)
setVal: 20 (10:59)
modeName: Heating (10:59)
deviceScale: 0 (10:59)
deviceScaleString: °C (10:59)
min: 0 (10:59)
max: -0.1 (10:59)
2: None (10:59)
val: 20 (10:59)
scale: 0 (10:59)
scaleString: °C (10:59)
setVal: 20 (10:59)
modeName: Cooling (10:59)
deviceScale: 0 (10:59)
deviceScaleString: °C (10:59)
min: 0 (10:59)
max: -0.1 (10:59)
supported: true (10:59)
version: 3 (10:59)
security: true (10:59)
interviewDone: true (10:59)
interviewCounter: 9 (10:59)
modemask: 6 (10:59)