iobroker.airzone 2.0.0 → 2.0.1

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.
@@ -37,8 +37,15 @@ class AirzoneLocalApi {
37
37
  }
38
38
 
39
39
  async getZoneState() {
40
+ if(this.system == undefined)
41
+ return undefined;
42
+
40
43
  var url = "http://"+this.local_ip+":3000/api/v1/hvac";
41
- const data = JSON.stringify({"systemID":this.system?.id, "ZoneID":0});
44
+ var systemId = this.system.id;
45
+ this.logInfo("SystemId: "+systemId);
46
+ //const data = JSON.stringify({"systemID":this.system?.id, "ZoneID":0});
47
+ var data = '{\"systemID\":'+systemId+', \"ZoneID\":0}';
48
+ this.logInfo(data);
42
49
  var response = await AsyncRequest.jsonPostRequest(url, data);
43
50
 
44
51
  var errors = response["errors"];
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common":{
3
3
  "name":"airzone",
4
- "version":"2.0.0",
4
+ "version":"2.0.1",
5
5
  "news":{
6
6
  "1.0.0":{
7
7
  "en": "initial release",
@@ -74,6 +74,18 @@
74
74
  "es": "Uso de la API local",
75
75
  "pl": "Korzystanie z lokalnego API",
76
76
  "zh-cn": "使用本地API"
77
+ },
78
+ "2.0.1":{
79
+ "en": "Small fixes",
80
+ "de": "Kleine Korrekturen",
81
+ "ru": "Небольшие исправления",
82
+ "pt": "Pequenas correções",
83
+ "nl": "Kleine reparaties",
84
+ "fr": "Petits correctifs",
85
+ "it": "Piccole correzioni",
86
+ "es": "Pequeñas correcciones",
87
+ "pl": "Małe poprawki",
88
+ "zh-cn": "小修正"
77
89
  }
78
90
  },
79
91
  "title":"Airzone Local API",
@@ -131,7 +143,7 @@
131
143
  ]
132
144
  },
133
145
  "native":{
134
- "local_ip":"192.168.XXX.XXX",
146
+ "local_ip":"",
135
147
  "system_id":1,
136
148
  "sync_time":5
137
149
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"iobroker.airzone",
3
- "version":"2.0.0",
3
+ "version":"2.0.1",
4
4
  "description":"Airzone local api integration for ioBroker",
5
5
  "author":{
6
6
  "name":"Christian Schemmer",