diff --git a/lib/extractKeys.js b/lib/extractKeys.js index 76284cc..ed02d78 100644 --- a/lib/extractKeys.js +++ b/lib/extractKeys.js @@ -219,6 +219,7 @@ function extractArray(adapter, element, key, path, write, preferedArrayName, for if (keyName.endsWith("Id")) { if (arrayElement[keyName] && arrayElement[keyName].replace) { arrayPath = arrayElement[keyName].replace(/\./g, ""); + arrayPath = arrayPath.replace(/;/g, "_"); } else { arrayPath = arrayElement[keyName]; } @@ -233,12 +234,14 @@ function extractArray(adapter, element, key, path, write, preferedArrayName, for if (arrayElement.id) { if (arrayElement.id.replace) { arrayPath = arrayElement.id.replace(/\./g, ""); + arrayPath = arrayPath.replace(/;/g, "_"); } else { arrayPath = arrayElement.id; } } if (arrayElement.name) { arrayPath = arrayElement.name.replace(/\./g, ""); + arrayPath = arrayPath.replace(/;/g, "_"); } if (arrayElement.start_date_time) { arrayPath = arrayElement.start_date_time.replace(/\./g, ""); diff --git a/main.js b/main.js index a6cd5a2..7aa07c7 100644 --- a/main.js +++ b/main.js @@ -305,7 +305,7 @@ class Viessmannapi extends utils.Adapter { return role.includes("type:gateway") || role.includes("type:virtual"); }) ) { - this.log.debug("ignore " + device.device.deviceType); + this.log.debug("ignore " + device.deviceType); continue; } await this.requestClient({