Skip to content

Commit

Permalink
Fixed ThermostatSetpoint with controlled only ThermostatMode
Browse files Browse the repository at this point in the history
  • Loading branch information
PoltoS committed Nov 26, 2021
1 parent eee3db6 commit 5130a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ZWave/index.js
Expand Up @@ -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
Expand Down

0 comments on commit 5130a79

Please sign in to comment.