setFanMode method
Implementation
Future<void> setFanMode(int mode, {bool fanOn = true}) async {
var offAndMode = (fanOn ? 0x00 : 0x80) + (mode & 0x0F);
await commandHandler!.request(ZwRequest(
logger,
id,
buildSendDataRequest(id, [
COMMAND_CLASS_THERMOSTAT_FAN_MODE,
THERMOSTAT_FAN_MODE_SET,
offAndMode,
]),
));
fanMode = ThermostatFanModeReport._(id, offAndMode);
}