homebridge-edomoticz 2.1.47 → 2.1.48

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") ? true : false;
636
+ var therm = (this.Type == "Thermostat" && this.subType == "SetPoint" || this.Type == "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;
@@ -2223,7 +2223,7 @@ eDomoticzAccessory.prototype = {
2223
2223
  this.services.push(rainService);
2224
2224
  break;
2225
2225
  }
2226
- case this.Type == "Heating" || this.Type == "Thermostat":
2226
+ case this.Type == "Heating" || this.Type == "Thermostat" || this.Type == "Setpoint":
2227
2227
  {
2228
2228
  var HeatingDeviceService = this.getService(Service.Thermostat);
2229
2229
  if (!HeatingDeviceService) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-edomoticz",
3
- "version": "2.1.47",
3
+ "version": "2.1.48",
4
4
  "description": "homebridge-plugin for Domoticz https://github.com/nfarina/homebridge",
5
5
  "main": "index.js",
6
6
  "scripts": {