tp1de / ioBroker.ems-esp

EMS-ESP Adapter
MIT License
18 stars 4 forks source link

Viele Error + Warnungen im LOG #5

Closed mbhomie007 closed 2 years ago

mbhomie007 commented 2 years ago

Buderus Wärmepumpe mit IP-Inside KM200

image

ems-esp.1 | 2022-02-17 17:50:20.870 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason -- | -- | -- | -- ems-esp.1 | 2022-02-17 17:50:20.867 | info | terminating ems-esp.1 | 2022-02-17 17:50:20.860 | error | Cannot read property 'length' of undefined ems-esp.1 | 2022-02-17 17:50:20.859 | error | TypeError: Cannot read property 'length' of undefined at hours (/opt/iobroker/node_modules/iobroker.ems-esp/lib/km200.js:469:41) at async km200_recordings (/opt/iobroker/node_modules/iobroker.ems-esp/lib/km200.js:396:17) at async Object.init (/opt/iobroker/node_modules/iobroker.ems-esp/lib/km200.js:98:4) at async main (/opt/iobroker/node_modules/iobroker.ems-esp/main.js:99:49) ems-esp.1 | 2022-02-17 17:50:20.857 | error | unhandled promise rejection: Cannot read property 'length' of undefined ems-esp.1 | 2022-02-17 17:50:20.856 | error | Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). ems-esp.1 | 2022-02-17 17:50:20.665 | info | km200:true 300 secs ems-esp.1 | 2022-02-17 17:50:20.664 | info | end of initializing km200 states ems-esp.1 | 2022-02-17 17:50:20.652 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:20.652 | warn | Object ems-esp.1.gateway.logging.userAcceptance is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:20.503 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:20.502 | warn | Object ems-esp.1.gateway.update.status is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:20.360 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:20.359 | warn | Object ems-esp.1.gateway.instWriteAccess is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:20.220 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:20.220 | warn | Object ems-esp.1.gateway.instAccess is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:19.657 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:19.656 | warn | Object ems-esp.1.gateway.uuid is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:19.352 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:19.351 | warn | Object ems-esp.1.system.holidayModes.hm5.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:19.201 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:19.200 | warn | Object ems-esp.1.system.holidayModes.hm5.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:18.770 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:18.770 | warn | Object ems-esp.1.system.holidayModes.hm4.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:18.631 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:18.630 | warn | Object ems-esp.1.system.holidayModes.hm4.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:18.190 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:18.190 | warn | Object ems-esp.1.system.holidayModes.hm3.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:18.040 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:18.040 | warn | Object ems-esp.1.system.holidayModes.hm3.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:17.622 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:17.621 | warn | Object ems-esp.1.system.holidayModes.hm2.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:17.474 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:17.473 | warn | Object ems-esp.1.system.holidayModes.hm2.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:17.043 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:17.042 | warn | Object ems-esp.1.system.holidayModes.hm1.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:16.894 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:16.893 | warn | Object ems-esp.1.system.holidayModes.hm1.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:15.603 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:15.602 | warn | Object ems-esp.1.system.healthStatus is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:15.162 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:15.162 | warn | Object ems-esp.1.system.bus is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:15.017 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:15.016 | warn | Object ems-esp.1.system.systemType is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:14.866 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:14.865 | warn | Object ems-esp.1.system.brand is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:14.715 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:14.714 | warn | Object ems-esp.1.heatingCircuits.hc1.status is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:14.564 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:14.563 | warn | Object ems-esp.1.heatingCircuits.hc1.holidayMode.activated is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:14.415 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:14.414 | warn | Object ems-esp.1.heatingCircuits.hc1.currentSuWiMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:14.271 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:14.270 | warn | Object ems-esp.1.heatingCircuits.hc1.suWiSwitchMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:13.253 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:13.252 | warn | Object ems-esp.1.heatingCircuits.hc1.switchProgramMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:13.105 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:13.103 | warn | Object ems-esp.1.heatingCircuits.hc1.activeSwitchProgram is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:12.243 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:12.242 | warn | Object ems-esp.1.heatingCircuits.hc1.operationMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:11.820 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:11.820 | warn | Object ems-esp.1.dhwCircuits.dhw1.status is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:11.680 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:11.680 | warn | Object ems-esp.1.dhwCircuits.dhw1.holidayMode.activated is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:11.250 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:11.250 | warn | Object ems-esp.1.dhwCircuits.dhw1.charge is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:09.933 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:09.932 | warn | Object ems-esp.1.dhwCircuits.dhw1.operationMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:09.784 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:09.783 | warn | Object ems-esp.1.heatSources.hs1.flameStatus is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:09.501 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:09.500 | warn | Object ems-esp.1.heatSources.hs1.type is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:06.031 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-17 17:50:06.030 | warn | Object ems-esp.1.heatSources.flameStatus is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-17 17:50:05.455 | info | start initializing km200 states ems-esp.1 | 2022-02-17 17:50:05.451 | info | write km200 file:/opt/iobroker/iobroker-data//ems-esp/1/km200.csv ems-esp.1 | 2022-02-17 17:50:05.449 | info | End reading km200 data-structure: 104 fields found ems-esp.1 | 2022-02-17 17:49:26.428 | info | start reading km200 data-structure ems-esp.1 | 2022-02-17 17:49:24.581 | info | starting. Version 1.1.1 in /opt/iobroker/node_modules/iobroker.ems-esp, node: v14.19.0, js-controller: 4.0.10 ems-esp.1 | 2022-02-17 17:49:18.622 | info | Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason ems-esp.1 | 2022-02-17 17:49:18.620 | info | terminating ems-esp.1 | 2022-02-17 17:49:18.616 | info | Got terminate signal TERMINATE_YOURSELF
mbhomie007 commented 2 years ago

Nachtrag/Korrektur: Heizung: Buderus Wärmepumpe WLW196i AR Regelsystem Logamatic EMS plus mit Bedieneinheit Logamatic HMC300 IP-Inside

tp1de commented 2 years ago

Wirkungsgrad macht bei WP keinen Sinn. Statistiken fragen den Flammenstatus ab. Gibt es nicht bei WP. Funktioniert der Adapter ohne Recordings, Wirkungsgrad und Statistiken?

tp1de commented 2 years ago

Benutzt Du eventuell den js-controller 4.xx ? So wie es aussieht ja. Der ist noch in Beta und hat geänderte Anforderungen an Adapter Coding. Ich bin gerade dabei zu testen .....

Der Programm-Abbruch kommt von den fehlenden Recordings. Muss ich noch besser abfangen.

tp1de commented 2 years ago

Ich habe mit der Version 1.2.0 die Anpassungen an den JS-Controller V4 eingefügt. Ist über Github bzw. NPM installierbar und im Laufe des Tages sollte die Version im ioBroker-Repository (Beta) sein.

In dieser Version ist die Verschlüsselung des privaten Passwortes anders gelöst. Falls es Probleme gibt, dann bitte neu eingeben. Schreib bitte, ob es nun funktioniert.

mbhomie007 commented 2 years ago

Wirkungsgrad macht bei WP keinen Sinn. Statistiken fragen den Flammenstatus ab. Gibt es nicht bei WP. Funktioniert der Adapter ohne Recordings, Wirkungsgrad und Statistiken?

Habe nun Recordings, Wirkungsgrad und Statistiken deaktiviert. Scheint nun ohne Abbruch zu laufen. Version 1.1.1, node: v14.19.0, js-controller: 4.0.10

ems-esp.1 | 2022-02-18 15:10:29.640 | info | km200:true 300 secs -- | -- | -- | -- ems-esp.1 | 2022-02-18 15:10:29.639 | info | end of initializing km200 states ems-esp.1 | 2022-02-18 15:10:29.626 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:29.625 | warn | Object ems-esp.1.gateway.logging.userAcceptance is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:29.473 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:29.472 | warn | Object ems-esp.1.gateway.update.status is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:29.333 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:29.332 | warn | Object ems-esp.1.gateway.instWriteAccess is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:29.192 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:29.192 | warn | Object ems-esp.1.gateway.instAccess is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:28.625 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:28.624 | warn | Object ems-esp.1.gateway.uuid is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:28.343 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:28.342 | warn | Object ems-esp.1.system.holidayModes.hm5.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:28.203 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:28.202 | warn | Object ems-esp.1.system.holidayModes.hm5.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:27.775 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:27.774 | warn | Object ems-esp.1.system.holidayModes.hm4.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:27.626 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:27.625 | warn | Object ems-esp.1.system.holidayModes.hm4.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:27.175 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:27.174 | warn | Object ems-esp.1.system.holidayModes.hm3.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:27.035 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:27.034 | warn | Object ems-esp.1.system.holidayModes.hm3.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:26.603 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:26.602 | warn | Object ems-esp.1.system.holidayModes.hm2.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:26.463 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:26.462 | warn | Object ems-esp.1.system.holidayModes.hm2.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:26.043 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:26.043 | warn | Object ems-esp.1.system.holidayModes.hm1.dhwMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:25.905 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:25.904 | warn | Object ems-esp.1.system.holidayModes.hm1.hcMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:24.633 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:24.632 | warn | Object ems-esp.1.system.healthStatus is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:24.203 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:24.202 | warn | Object ems-esp.1.system.bus is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:24.037 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:24.036 | warn | Object ems-esp.1.system.systemType is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:23.879 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:23.878 | warn | Object ems-esp.1.system.brand is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:23.727 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:23.726 | warn | Object ems-esp.1.heatingCircuits.hc1.status is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:23.576 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:23.575 | warn | Object ems-esp.1.heatingCircuits.hc1.holidayMode.activated is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:23.416 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:23.415 | warn | Object ems-esp.1.heatingCircuits.hc1.currentSuWiMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:23.266 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:23.265 | warn | Object ems-esp.1.heatingCircuits.hc1.suWiSwitchMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:22.263 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:22.262 | warn | Object ems-esp.1.heatingCircuits.hc1.switchProgramMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:22.123 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:22.122 | warn | Object ems-esp.1.heatingCircuits.hc1.activeSwitchProgram is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:21.173 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:21.172 | warn | Object ems-esp.1.heatingCircuits.hc1.operationMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:20.745 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:20.744 | warn | Object ems-esp.1.dhwCircuits.dhw1.status is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:20.605 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:20.604 | warn | Object ems-esp.1.dhwCircuits.dhw1.holidayMode.activated is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:20.183 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:20.182 | warn | Object ems-esp.1.dhwCircuits.dhw1.charge is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:19.015 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:19.014 | warn | Object ems-esp.1.dhwCircuits.dhw1.operationMode is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:18.867 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:18.866 | warn | Object ems-esp.1.heatSources.hs1.flameStatus is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:18.566 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:18.565 | warn | Object ems-esp.1.heatSources.hs1.type is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:14.976 | warn | This object will not be created in future versions. Please report this to the developer. ems-esp.1 | 2022-02-18 15:10:14.975 | warn | Object ems-esp.1.heatSources.flameStatus is invalid: obj.common.states has an invalid type! Expected "object", received "string" ems-esp.1 | 2022-02-18 15:10:14.413 | info | start initializing km200 states ems-esp.1 | 2022-02-18 15:10:14.411 | info | write km200 file:/opt/iobroker/iobroker-data//ems-esp/1/km200.csv ems-esp.1 | 2022-02-18 15:10:14.410 | info | End reading km200 data-structure: 104 fields found ems-esp.1 | 2022-02-18 15:09:44.289 | info | start reading km200 data-structure ems-esp.1 | 2022-02-18 15:09:42.451 | info | starting. Version 1.1.1 in /opt/iobroker/node_modules/iobroker.ems-esp, node: v14.19.0, js-controller: 4.0.10
mbhomie007 commented 2 years ago

Benutzt Du eventuell den js-controller 4.xx ? So wie es aussieht ja. Der ist noch in Beta und hat geänderte Anforderungen an Adapter Coding. Ich bin gerade dabei zu testen .....

Der Programm-Abbruch kommt von den fehlenden Recordings. Muss ich noch besser abfangen.

Ja genau. Adapter Version 1.1.1, node: v14.19.0, js-controller: 4.0.10

tp1de commented 2 years ago

Sei vorsichtig zu früh Beta-Versionen des js-controllers bei Haupt-Versionsänderungen V3 -> V4 produktiv einzusetzen. Viele Adapter funktionieren noch nicht sauber mit der aktuellen V4 Version 4.0.12.

Ich habe nun mit V 1.2.1 alle Anpassungen gemacht, so dass der ems-esp Adapter sauber laufen müsste. Die Warnmeldungen s.o. hatten zwar keinen Einfluss auf die Funktion, aber die States sind nun anders zu definieren - ist nun erfolgt.

Probiere mal aus und schalte mal Recordings ein, falls Du Energieverbräuche in den Buderus / Bosch App's hast.

mbhomie007 commented 2 years ago

Ich habe mit der Version 1.2.0 die Anpassungen an den JS-Controller V4 eingefügt. Ist über Github bzw. NPM installierbar und im Laufe des Tages sollte die Version im ioBroker-Repository (Beta) sein.

In dieser Version ist die Verschlüsselung des privaten Passwortes anders gelöst. Falls es Probleme gibt, dann bitte neu eingeben. Schreib bitte, ob es nun funktioniert.

Ich habe mir nun von Github direkt die Version 1.2.1 geladen. Jetzt läuft es ohne Error und Warnungen.

ems-esp.1 | 2022-02-18 15:23:22.759 | info | km200:true 300 secs -- | -- | -- | -- ems-esp.1 | 2022-02-18 15:23:22.759 | info | end of initializing km200 states ems-esp.1 | 2022-02-18 15:23:07.577 | info | start initializing km200 states ems-esp.1 | 2022-02-18 15:23:07.573 | info | write km200 file:/opt/iobroker/iobroker-data//ems-esp/1/km200.csv ems-esp.1 | 2022-02-18 15:23:07.571 | info | End reading km200 data-structure: 104 fields found ems-esp.1 | 2022-02-18 15:22:37.452 | info | start reading km200 data-structure ems-esp.1 | 2022-02-18 15:22:35.733 | info | starting. Version 1.2.1 (non-npm: tp1de/ioBroker.ems-esp) in /opt/iobroker/node_modules/iobroker.ems-esp, node: v14.19.0, js-controller: 4.0.10 ems-esp.1 | 2022-02-18 15:22:29.026 | info | Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason ems-esp.1 | 2022-02-18 15:22:29.024 | info | terminating ems-esp.1 | 2022-02-18 15:22:29.022 | info | Got terminate signal TERMINATE_YOURSELF

Einziger Punkt: Ich vermisse wie in dem Adapter "km200" die Recordings. Ich hatte zum Test auch mal wieder die Recordings, Wirkungsgrad und Statistiken aktiviert, hat leider nicht geklappt. Kann man dies noch integrieren?

image

tp1de commented 2 years ago

Ist das die States-Struktur (s.o.) aus dem Adapter zum energyMonitoring? Diese ist anders als beim km200 bei Gas- / Öl-Heizungsanlagen. Diese haben als Einstiegspunkt recordings. Ist dort bei Dir irgendwas angelegt worden?

mbhomie007 commented 2 years ago

Ist das die States-Struktur (s.o.) aus dem Adapter zum energyMonitoring?

Ja, die States oben sind aus dem Adapter "km200". Dies sind die Einstellungen: image

Diese haben als Einstiegspunkt recordings. Ist dort bei Dir irgendwas angelegt worden?

Manuell habe ich sonst nichts weiter angelegt.

tp1de commented 2 years ago

Was kommt aus dem ems-esp Adapter als Struktur raus? (energyMonitoring und unter recordings)

mbhomie007 commented 2 years ago

Ahhh sorry!

Was kommt aus dem ems-esp Adapter als Struktur raus? (energyMonitoring und unter recordings)

image

image

tp1de commented 2 years ago

OK die Einstiegspunkte sind bei der Wärmepumpe anders. Ich berechne die Recordings aber wesentlich anders als der km200 Adapter, damit die Werte mit denen der App übereinstimmen. Da muss ich mal überlegen. Ich habe keine WP zum testen.

Hast Du denn im km200-Adapter keine "recordings" Struktur? Ist alles unter "energyMonitoring"?

image

mbhomie007 commented 2 years ago

Ich berechne die Recordings aber wesentlich anders als der km200 Adapter, damit die Werte mit denen der App übereinstimmen.

Genau, so soll es sein! Und da der Km200 Adapter Entwickler anscheinend nicht mehr dran entwickelt, möchte ich gerne deinen Adapter nutzen.

Hast Du denn im km200-Adapter keine "recordings" Struktur? Ist alles unter "energyMonitoring"?

Ist bei mir ganz übergeordnet.

image

/////////

image

tp1de commented 2 years ago

OK. Da komm ich an Grenzen meiner bisherigen Logik. Da muss ich mal nachdenken, wie ich den Adapter umschreiben kann. Wird aber etwas Aufwand und wird etwas dauern. Wärst Du denn bereit dann zu testen?

mbhomie007 commented 2 years ago

OK. Da komm ich an Grenzen meiner bisherigen Logik. Da muss ich mal nachdenken, wie ich den Adapter umschreiben kann. Wird aber etwas Aufwand und wird etwas dauern. Wärst Du denn bereit dann zu testen?

Bin auf jeden Fall bereit zum testen. Erst einmal vielen Dank für den großartigen Service bis hierhin! 💯 Kein Stress!

tp1de commented 2 years ago

Ich plane meine Gasheizung zum Hybrid-System mit WP zu erweitern. Bin also selber interessiert. Ich melde mich dann wieder ...

mbhomie007 commented 2 years ago

Vielen Dank & ein schönes Wochenende!

tp1de commented 2 years ago

@mbhomie007 wenn Du möchtest, dann kannst Du testen.

Ich habe die Logik zu den recordings geändert und finde nun hoffentlich alle. Kannst aus dem Github installieren (ich habe die Versionsnummer noch nicht geändert).

Es wird dann für die recording States folgende State-Struktur angelegt: (Beispiel actualPower) image

Unter km200 sind 1:1 die Werte aus den km200 API-calls als Referenz verzeichnet. Jeweils 3 API-Calls pro Tag (Hours) / Monat (Days) / Jahr (Months) - also insgesamt 9 API-Calls pro Recording-State.

Im Unterschied zum km200 Adapter sind unter _Hours, _Days, _Months die Daten nicht als array sondern mit SQL-Statements direkt in der Datenbank eingetragen. Darstellung mit Flot, Grafana oder in den Verlaufsdaten:

image

Das erste Befüllen dauert aktuell beim ersten Mal noch etwas über eine Stunde nach dem Adapterstart. (kannst aber nachdem im Protokoll der Eintrag "recordings:true hour" erscheint, den Adapter neu starten um die Zeit zu verkürzen).

Im aktuellen Monat speichere ich den Wert als Summe aller Tageswerte. Monatswerte sind als Datum auf den 15. gespeichert. Im State last12m ist bei Energie-Recordings die Summe der letzten 12 Monate gespeichert.

Schreib mal, ob es nun funktioniert.

tp1de commented 2 years ago

... und wundere Dich nicht wenn bei Dir einzelne Monatswerte fehlen (0 sind). Buderus / Bosch scheint da einen Bug zu haben.

mbhomie007 commented 2 years ago

Das sieht sehr vielversprechend aus! Ich melde mich morgen dazu.

mbhomie007 commented 2 years ago

Ich habe die Version direkt von GitHub geladen.

Der Adapter bricht immer wieder ab und endet in einer Bootschleife.

image

mbhomie007 commented 2 years ago

Auch ohne sql Adapter müsste er die Werte der Anlage doch auslesen und schreiben. Die States im Ordner "recordings" bleiben komplett leer.

tp1de commented 2 years ago

Der Fehler kommt vom Auslesen der "unitOfMeasure" des zu aufzuzeichnenden States. Ich habe die Stelle geändert und der Adapter sollte im Protokoll diese Fälle listen und den Fehler überspringen. Kannst Du bitte noch einmal vom Github laden und das Protokoll posten?

Ohne SQL-Adapter (mySQL oder InfluxDB) funktionieren die recordings nicht ! (Der Adapter schreibt direkt in die Datenbank )

mbhomie007 commented 2 years ago

Ohne SQL-Adapter (mySQL oder InfluxDB) funktionieren die recordings nicht ! (Der Adapter schreibt direkt in die Datenbank )

Okay, dann habe ich persönlich erstmal eine andere Baustelle und muss mich hiermit beschäftigen. Bis jetzt benutze ich nur den "History-Adapter".

Ich bin davon ausgegangen, dass wie im "km200-Adapter" die States trotzdem beschrieben werden und dann somit im Ordner "recordings" sichtbar sind. Vielleicht als Alternative möglich?

Ich melde mich dann nochmal wenn der SQL-Adapter läuft.

tp1de commented 2 years ago

Ich bin davon ausgegangen, dass wie im "km200-Adapter" die States trotzdem beschrieben werden und dann somit im Ordner "recordings" sichtbar sind. Vielleicht als Alternative möglich?

Ich überlege mal, aber die Darstellung im km200 Adapter war ohne zeitliche Referenz. Ich habe immer "gerätselt" welcher Wert für welchen Zeitraum gedacht ist. Auch waren grafische Darstellungen (z.B. mit Flot) nicht möglich.

Wozu willst Du die Werte gebrauchen? Ich empfehle aber dringend auf eine Datenbank zu wechseln. Ich benutze seit vielen Jahren mySQL unter Docker oder native im Raspi4. Ist sehr performant (auch bei 15 Mio records).

tp1de commented 2 years ago

P.S.: Ich bin dabei auch die Variante ohne SQL umzusetzen. Sollte morgen fertig werden.

mbhomie007 commented 2 years ago

Wozu willst Du die Werte gebrauchen? Ich empfehle aber dringend auf eine Datenbank zu wechseln. Ich benutze seit vielen Jahren mySQL unter Docker oder native im Raspi4. Ist sehr performant (auch bei 15 Mio records).

Angedacht ist ein Tablet an der Wand mit einer schönen Visualisierung. So weit bin ich aber noch nicht und versuche erstmal so viele Geräte wie möglich zu verknüpfen.

mbhomie007 commented 2 years ago

P.S.: Ich bin dabei auch die Variante ohne SQL umzusetzen. Sollte morgen fertig werden.

Das hört sich gut an! Ich bin gespannt, werde ich dann testen.

tp1de commented 2 years ago

Die neue Variante (alte Versionsnummer) ist unter Github installierbar. Die Konfigurationsparameter sind etwas geändert. Es werden States mit den Werten als Array angelegt und wenn eine Datenbank-Instanz ausgewählt wurde (und diese aktiv ist) werden auch DB-Einträge zur grafischen Visualisierung erzeugt. (_Hours,_Days,_Months)

Für die States Werte (Hours,Days,Months) ist wählbar ob ein Array mit Werten analog dem KM200-Adapter oder zusätzlich Timestamps bzw. Datum-Angaben mit ins Array übernommen werden.

Diese recordings-Datenstruktur müsste dann bei Dir unter den energyMonitoring States angelegt werden und nicht wie bei mir unter recordings ..... schau mal und berichte, ob es nun funktioniert.

mbhomie007 commented 2 years ago

Ich habe eben die neue Version von Github geladen.

Für die Zukunft werden ich mich dann nochmal mit SQL beschäftigen. Meine Adapter Einstellungen ohne SQL:

image

Log:

image

-- image

-- image

-- image

-- image

-- image

-- image

tp1de commented 2 years ago

Gut so. Der Adapter erkennt die "recordings" und erstellt die Werte-Arrays. Kannst Du mal die Objektdaten für die 4 States im Log posten. Z.B.: heatSources.total.energyMonitoring.compressor.

analog zu: image

mbhomie007 commented 2 years ago

image

image

image

image

image

image

tp1de commented 2 years ago

Danke aber würde gerne die referenzierten States sehen:

also die ohne "recordings" am Anfang. Also z.B. heatSources.energyMonitoring.total.consumedEnergy u.s.w. Aus diesen States versucht der Adapter die "unitOfMeasure" => unit d.h. die Einheit kWh / C zu lesen.

mbhomie007 commented 2 years ago

Was anderes finde ich bei mir komischerweise nicht...

image

tp1de commented 2 years ago

schon merkwürdig, dass der zu recordende State nicht vorhanden ist. Ist bei mir anders ..... Habe den Code so geändert, dass dann kWh als Einheit genommen. Ich werde aber morgen den Code so ändern, dass per Api dieser Wert versucht wird direkt zu lesen.

mbhomie007 commented 2 years ago

Kurze Rückmeldung zur neuen Version 1.3.3

Log sieht sauber aus: image

heatSources/energyMonitoring: image

recordings/heatSources/energyMonitoring:

image

also die ohne "recordings" am Anfang. Also z.B. heatSources.energyMonitoring.total.consumedEnergy u.s.w.

Das ist bei mir weiterhin nicht zu finden.

tp1de commented 2 years ago

Das ist bei mir weiterhin nicht zu finden.

Ja ist richtig, ich habe nur die Warnmeldungen rausgenommen. Ich lass die Funktion erst einmal so, dass nur "gefundene" Datenstrukturen angelegt werden. Warum das "zu recordende" Referenzobjekt nicht vorhanden ist, muss an Deiner Anlagenkonfiguration liegen.

Ich schließe dieses Github Issue erst einmal.

mbhomie007 commented 2 years ago

Vielen Dank für deinen Support und die Entwicklung deines genialen Adapters. 💯