From 5130a793cb742614a7ac2511c6d9806db4280835 Mon Sep 17 00:00:00 2001 From: Poltorak Serguei Date: Sat, 27 Nov 2021 01:34:23 +0300 Subject: [PATCH] Fixed ThermostatSetpoint with controlled only ThermostatMode --- modules/ZWave/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ZWave/index.js b/modules/ZWave/index.js index 7a092c9a..d2c9dabc 100644 --- a/modules/ZWave/index.js +++ b/modules/ZWave/index.js @@ -5516,11 +5516,11 @@ ZWave.prototype.parseAddCommandClass = function(nodeId, instanceId, commandClass instance.ThermostatSetPoint.Set(mode, args.level); } if (command === "on" || command === "exact") { - instance.ThermostatMode && instance.ThermostatMode.Set(mode == MODE_HEAT ? MODE_HEAT : MODE_COOL); // modes are not always same in ThermostatSetPoint and in ThermostatMode, but here they are same + instance.ThermostatMode && instance.ThermostatMode.data.supported.value && instance.ThermostatMode.Set(mode == MODE_HEAT ? MODE_HEAT : MODE_COOL); // modes are not always same in ThermostatSetPoint and in ThermostatMode, but here they are same } if (command === "update") { instance.ThermostatSetPoint.Get(mode); - instance.ThermostatMode && instance.ThermostatMode.Get(); + instance.ThermostatMode && instance.ThermostatMode.data.supported.value && instance.ThermostatMode.Get(); } }, moduleId: self.id