homebridge-edomoticz 2.1.48 → 2.1.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -633,7 +633,7 @@ eDomoticzAccessory.prototype = {
633
633
  var sArray = Helper.sortByKey(json.result, "Name");
634
634
  sArray.map(function (s) {
635
635
  var heat = (this.Type == "Heating" && this.subType == "Zone") ? true : false;
636
- var therm = (this.Type == "Thermostat" && this.subType == "SetPoint" || this.Type == "Setpoint") ? true : false;
636
+ var therm = ((this.Type == "Thermostat" || this.Type == "Setpoint") && this.subType == "SetPoint") ? true : false;
637
637
  temp = (heat || therm) ? Helper.oneDP(Helper.cleanFloat(s.SetPoint)) : Helper.oneDP(Helper.cleanFloat(s.Temp));
638
638
  url = this.platform.apiBaseURL + "type=command&param=setused&idx=" + this.idx + "&setpoint=";
639
639
  url = url + temp + "&mode=" + mode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-edomoticz",
3
- "version": "2.1.48",
3
+ "version": "2.1.49",
4
4
  "description": "homebridge-plugin for Domoticz https://github.com/nfarina/homebridge",
5
5
  "main": "index.js",
6
6
  "scripts": {