daikin-controller-cloud
Advanced tools
Comparing version
@@ -27,2 +27,3 @@ /** | ||
_traverseDatapointStructure(obj, data, pathPrefix) { | ||
if (obj === null) return; | ||
data = data || {}; | ||
@@ -38,3 +39,6 @@ pathPrefix = pathPrefix || ''; | ||
data[pathPrefix + '/' + sub] = obj[sub]; | ||
} else if (typeof obj[sub] === 'object') { // go one level deeper | ||
} else if (sub ==="electrical" && pathPrefix === '' && typeof obj[sub] === 'object' && obj[sub] !== null) { // hack for missing "unit" field in electical on Altherma devices | ||
obj[sub].unit = 'kWh'; | ||
data[pathPrefix + '/' + sub] = obj[sub]; | ||
} else if (typeof obj[sub] === 'object' && obj[sub] !== null) { // go one level deeper | ||
//console.log(' found ' + sub); | ||
@@ -41,0 +45,0 @@ this._traverseDatapointStructure(obj[sub], data, pathPrefix + '/' + sub); |
{ | ||
"name": "daikin-controller-cloud", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Interact with Daikin Cloud devices and retrieve Tokens", | ||
@@ -5,0 +5,0 @@ "author": "Apollon77 <iobroker@fischer-ka.de>", |
@@ -82,2 +82,5 @@ # daikin-controller-cloud | ||
## Changelog: | ||
### 1.2.0 (2023-08-29) | ||
* (Apollon77) Add parsing support for Altherma electrical device data, missing "unit" is added to the data | ||
### 1.1.0 (2023-08-23) | ||
@@ -84,0 +87,0 @@ * (Apollon77) Fix crash cases |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
673691
0.07%1185
0.34%124
2.48%3
-25%