Grizzelbee / ioBroker.mielecloudservice

Integrates your MieleCloudService (aka Miele@Home) Devices to ioBroker
MIT License
20 stars 9 forks source link

TargetTemp Action for fridges causes exception #127

Closed aski71 closed 3 years ago

aski71 commented 3 years ago

Ich habe versucht, von 3.0.2 auf 4.0.13 upzugraden. Seitdem funktioniert gar nichts mehr. Weder der Adapter, noch kann ich ihn ordnungsgemäß deinstallieren, noch kann ich ihn ordnungsgemäß installieren.

Habe nun schon vieles erfolglos versucht: `$ ./iobroker del mielecloudservice Delete adapter "mielecloudservice" host.homie Counted 1 meta of mielecloudservice host.homie Counted 1 adapter for mielecloudservice host.homie file mielecloudservice.admin deleted host.homie object mielecloudservice deleted host.homie object mielecloudservice.admin deleted host.homie Deleting 2 object(s). npm uninstall iobroker.mielecloudservice --loglevel error --prefix "/opt/iobroker" (System call) npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /opt/iobroker/node_modules/acme-http-01-standalone npm ERR! dest /opt/iobroker/node_modules/.acme-http-01-standalone-sG2kCsLK npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/acme-http-01-standalone' -> '/opt/iobroker/node_modules/.acme-http-01-standalone-sG2kCsLK'

npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2021-04-14T19_49_13_118Z-debug.log ERROR: Error deleting adapter mielecloudservice from disk: Error: host.homie: Cannot uninstall iobroker.mielecloudservice: 217 ERROR: You might have to delete it yourself! process exited with code 0`

aski71 commented 3 years ago

Ich konnte die Installation inzwischen bereinigen, allerdings crashed 4.0.13 jetzt:

`

       
mielecloudservice.0 2021-04-14 23:53:08.159 warn (22901) Terminated (UNCAUGHT_EXCEPTION): Without reason
mielecloudservice.0 2021-04-14 23:53:08.158 info (22901) terminating
mielecloudservice.0 2021-04-14 23:53:08.157 info (22901) Unloading MieleCloudService...
mielecloudservice.0 2021-04-14 23:53:08.032 error (22901) Unauthorized
mielecloudservice.0 2021-04-14 23:53:08.031 error (22901) Error: Unauthorized at APISendRequest (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-apiTools.js:348:19) at process._tickCallback (internal/process/next_tick.js:68:7)
mielecloudservice.0 2021-04-14 23:53:08.027 error (22901) unhandled promise rejection: Unauthorized
mielecloudservice.0 2021-04-14 23:53:08.022 error (22901) 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().
mielecloudservice.0 2021-04-14 23:53:08.019 error (22901) Response.data: {"code":401,"message":"Unauthorized"}
mielecloudservice.0 2021-04-14 23:53:08.014 error (22901) Response.headers: {"date":"Wed, 14 Apr 2021 21:53:07 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","strict-transport-security":"max-age=15724800; in
mielecloudservice.0 2021-04-14 23:53:08.011 error (22901) Response.status:401
mielecloudservice.0 2021-04-14 23:53:08.010 error (22901) Request made and server responded:
mielecloudservice.0 2021-04-14 23:53:08.005 error (22901) [APISendRequest] {"message":"Request failed with status code 401","name":"Error","stack":"Error: Request failed with status code 401\n at createError (/opt/iobroker/node_modules/axios/lib/c
mielecloudservice.0 2021-04-14 23:53:07.800 info (22901) Clearing Timeout: _pollTimeout
mielecloudservice.0 2021-04-14 23:53:07.753 error (22901) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-14 23:53:07.752 error (22901) Error: The state contains no properties! At least one property is expected! at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-14 23:53:07.748 error (22901) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-14 23:53:07.744 error (22901) 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().
mielecloudservice.0 2021-04-14 23:53:07.614 info (22901) Starting poll timer with a [1] Minute(s) interval.
mielecloudservice.0 2021-04-14 23:53:07.014 info (22901) Setting up devices ...
mielecloudservice.0 2021-04-14 23:53:06.984 info (22901) Access-Token expires at: [Fri May 14 2021 23:53:00 GMT+0200 (GMT+02:00)]
mielecloudservice.0 2021-04-14 23:53:06.159 info (22901) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16
mielecloudservice.0 2021-04-14 23:52:33.056 error (22130) Unauthorized
mielecloudservice.0 2021-04-14 23:52:33.056 error (22130) Error: Unauthorized at APISendRequest (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-apiTools.js:348:19) at process._tickCallback (internal/process/next_tick.js:68:7)
mielecloudservice.0 2021-04-14 23:52:33.055 error (22130) unhandled promise rejection: Unauthorized
mielecloudservice.0 2021-04-14 23:52:33.054 error (22130) 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().
mielecloudservice.0 2021-04-14 23:52:33.052 error (22130) Response.data: {"code":401,"message":"Unauthorized"}
mielecloudservice.0 2021-04-14 23:52:33.052 error (22130) Response.headers: {"date":"Wed, 14 Apr 2021 21:52:33 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","strict-transport-security":"max-age=15724800; in
mielecloudservice.0 2021-04-14 23:52:33.051 error (22130) Response.status:401
mielecloudservice.0 2021-04-14 23:52:33.050 error (22130) Request made and server responded:
mielecloudservice.0 2021-04-14 23:52:33.050 error (22130) [APISendRequest] {"message":"Request failed with status code 401","name":"Error","stack":"Error: Request failed with status code 401\n at createError (/opt/iobroker/node_modules/axios/lib/c
mielecloudservice.0 2021-04-14 23:52:33.036 warn (22130) Terminated (UNCAUGHT_EXCEPTION): Without reason
mielecloudservice.0 2021-04-14 23:52:33.034 info (22130) terminating
mielecloudservice.0 2021-04-14 23:52:33.033 info (22130) Unloading MieleCloudService...
mielecloudservice.0 2021-04-14 23:52:32.772 info (22130) Clearing Timeout: _pollTimeout
mielecloudservice.0 2021-04-14 23:52:32.747 error (22130) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-14 23:52:32.746 error (22130) Error: The state contains no properties! At least one property is expected! at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-14 23:52:32.743 error (22130) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-14 23:52:32.742 error (22130) 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().
mielecloudservice.0 2021-04-14 23:52:32.645 info (22130) Starting poll timer with a [1] Minute(s) interval.
mielecloudservice.0 2021-04-14 23:52:32.134 info (22130) Setting up devices ...
mielecloudservice.0 2021-04-14 23:52:32.129 info (22130) Access-Token expires at: [Fri May 14 2021 23:52:00 GMT+0200 (GMT+02:00)]
mielecloudservice.0 2021-04-14 23:52:31.604 info (22130) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16
mielecloudservice.0 2021-04-14 23:51:58.486 error (21184) Cannot read property 'access_token' of undefined
mielecloudservice.0 2021-04-14 23:51:58.485 error (21184) TypeError: Cannot read property 'access_token' of undefined at APISendRequest (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-apiTools.js:308:45) at Object.module.exports.
mielecloudservice.0 2021-04-14 23:51:58.482 error (21184) unhandled promise rejection: Cannot read property 'access_token' of undefined
mielecloudservice.0 2021-04-14 23:51:58.481 error (21184) 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().
mielecloudservice.0 2021-04-14 23:51:58.428 warn (21184) Terminated (UNCAUGHT_EXCEPTION): Without reason
mielecloudservice.0 2021-04-14 23:51:58.426 info (21184) terminating
mielecloudservice.0 2021-04-14 23:51:58.423 info (21184) Unloading MieleCloudService...
mielecloudservice.0 2021-04-14 23:51:58.167 info (21184) Clearing Timeout: _pollTimeout
mielecloudservice.0 2021-04-14 23:51:58.134 error (21184) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-14 23:51:58.133 error (21184) Error: The state contains no properties! At least one property is expected! at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-14 23:51:58.128 error (21184) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-14 23:51:58.127 error (21184) 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().
mielecloudservice.0 2021-04-14 23:51:57.991 info (21184) Starting poll timer with a [1] Minute(s) interval.
mielecloudservice.0 2021-04-14 23:51:57.480 info (21184) Setting up devices ...
mielecloudservice.0 2021-04-14 23:51:57.467 info (21184) Access-Token expires at: [Fri May 14 2021 23:51:00 GMT+0200 (GMT+02:00)]
mielecloudservice.0 2021-04-14 23:51:56.999 info (21184) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16

`

Grizzelbee commented 3 years ago

Hmmm. Das sieht komisch aus: Von unten nach oben:

  1. Der Adapter startet.
  2. Der Adapter logged sich bei Miele ein und bekommt anscheinend einen Token, der bereits abgelaufen ist.
  3. Der Adapter versucht die Geräte einzulesen und scheitert in der Folge mit "unautorized", da der Token ungültig ist.

So weit so plausibel.

mielecloudservice.0 2021-04-14 23:52:32.134 info (22130) Setting up devices ...
mielecloudservice.0 2021-04-14 23:52:32.129 info (22130) Access-Token expires at: [Fri May 14 2021 23:52:00 GMT+0200 (GMT+02:00)]
mielecloudservice.0 2021-04-14 23:52:31.604 info (22130) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16

Ich verstehe aber noch nicht wie und warum das passiert, denn der erste Login an der Miele-API scheint ja zu funktinieren und nur einen ungültigen Token zu bekommen - was wiederum seltsam ist. Meine erste Vermutung ist, das bei der Bereinigung etwas schief gegangen ist. Kannst Du bitte noch einmal versuchen den kompletten Adapter zu deinstallieren (zur Not im Dateisystem löschen), Datenpunkte löschen, etc. und neu zu installieren? Wenn das nicht hilft schick mir bitte das debug-Log vom Start des Adapters bis zum Auftreten des Fehlers.

aski71 commented 3 years ago

Das hatte ich gestern schon gemacht. Und obiges war das Ergebnis. Ich habe es eben nochmal versucht. Ergebnis unten.

Welche additiven Logs brauchst Du und wo/wie schalte ich die ein?

`

       
mielecloudservice.0 2021-04-15 09:32:38.402 warn (11449) Terminated (UNCAUGHT_EXCEPTION): Without reason
mielecloudservice.0 2021-04-15 09:32:38.401 info (11449) terminating
mielecloudservice.0 2021-04-15 09:32:38.399 info (11449) Unloading MieleCloudService...
mielecloudservice.0 2021-04-15 09:32:38.324 error (11449) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-15 09:32:38.323 error at process._tickCallback (internal/process/next_tick.js:68:7)
mielecloudservice.0 2021-04-15 09:32:38.323 error at addMieleDeviceState (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:580:34)
mielecloudservice.0 2021-04-15 09:32:38.323 error at Object.module.exports.createStateTargetTemperatureFridge (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-Tools.js:1387:17)
mielecloudservice.0 2021-04-15 09:32:38.323 error at Adapter.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5935:21)
mielecloudservice.0 2021-04-15 09:32:38.323 error at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-15 09:32:38.323 error (11449) Error: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-15 09:32:38.318 error (11449) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-15 09:32:38.317 error (11449) 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().
mielecloudservice.0 2021-04-15 09:32:37.963 info (11449) Clearing Timeout: _pollTimeout
mielecloudservice.0 2021-04-15 09:32:37.912 error (11449) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-15 09:32:37.911 error at processImmediate (timers.js:658:5)
mielecloudservice.0 2021-04-15 09:32:37.911 error at tryOnImmediate (timers.js:676:5)
mielecloudservice.0 2021-04-15 09:32:37.911 error at runCallback (timers.js:706:11)
mielecloudservice.0 2021-04-15 09:32:37.911 error at Immediate.mieleTools.createExtendObject (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-Tools.js:1383:25)
mielecloudservice.0 2021-04-15 09:32:37.911 error at Adapter.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5935:21)
mielecloudservice.0 2021-04-15 09:32:37.911 error at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-15 09:32:37.911 error (11449) Error: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-15 09:32:37.906 error (11449) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-15 09:32:37.905 error (11449) 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().
mielecloudservice.0 2021-04-15 09:32:37.677 info (11449) Starting poll timer with a [1] Minute(s) interval.
mielecloudservice.0 2021-04-15 09:32:37.172 info (11449) Setting up devices ...
mielecloudservice.0 2021-04-15 09:32:37.168 info (11449) Access-Token expires at: [Sat May 15 2021 09:32:00 GMT+0200 (GMT+02:00)]
mielecloudservice.0 2021-04-15 09:32:36.572 info (11449) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16
mielecloudservice.0 2021-04-15 09:29:21.406 info (6893) Terminated (ADAPTER_REQUESTED_TERMINATION): Invalid Configuration.
mielecloudservice.0 2021-04-15 09:29:21.401 warn (6893) Adapter config is invalid. Please fix.
mielecloudservice.0 2021-04-15 09:29:21.400 warn (6893) Miele API client secret is missing.
mielecloudservice.0 2021-04-15 09:29:21.400 warn (6893) Miele API client ID is missing.
mielecloudservice.0 2021-04-15 09:29:21.399 warn (6893) Miele password is missing.
mielecloudservice.0 2021-04-15 09:29:21.397 warn (6893) Miele account is missing.
mielecloudservice.0 2021-04-15 09:29:21.350 info (6893) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16

`

Grizzelbee commented 3 years ago

In der Instanzen-Ansicht im ioBroker kannst Du den Log-Level pro Adapter einstellen. Beim Miele bitte auf "Debug" umstellen.

Hier sehe ich aber gerade etwas:

mielecloudservice.0 2021-04-15 09:29:21.401 warn (6893) Adapter config is invalid. Please fix.
mielecloudservice.0 2021-04-15 09:29:21.400 warn (6893) Miele API client secret is missing.
mielecloudservice.0 2021-04-15 09:29:21.400 warn (6893) Miele API client ID is missing.
mielecloudservice.0 2021-04-15 09:29:21.399 warn (6893) Miele password is missing.
mielecloudservice.0 2021-04-15 09:29:21.397 warn (6893) Miele account is missing.

Du scheinst den Adapter nach der Bereinigung nicht neu konfiguriert zu haben.

Edit: Ich sehe gerade erst das folgende Log. Da läuft die Anmeldung bei Miele dann durch und der crashed erst später. Also bitte Debug-Log. Am liebesten als Datei (Log-Herunterladen).

aski71 commented 3 years ago

Das hab ich auch gesehen. Es stimmt aber nicht. Ich habe den Adapter konfiguriert und wenn ich die Konfigurationsmaske öffne, steht auch alles drin, wie ich es eingetragen habe. Hat mich auch gewundert.

Also entweder sitze ich auf den Augen, aber ich finde in der Instanzen-Ansicht nicht, wo man pro Adapter den Log-Level einstellt. Weder in der normalen, noch in der Expertenansicht, noch in der Einstellungen-Ansicht des Adapters. Wo ist das genau?

Grizzelbee commented 3 years ago

grafik

aski71 commented 3 years ago

Meine Güte! Da bin ich ja wirklich auf den Augen gesessen... sorry.

`

       
mielecloudservice.0 2021-04-16 13:57:48.793 warn (22587) Terminated (UNCAUGHT_EXCEPTION): Without reason
mielecloudservice.0 2021-04-16 13:57:48.791 info (22587) terminating
mielecloudservice.0 2021-04-16 13:57:48.790 info (22587) Unloading MieleCloudService...
mielecloudservice.0 2021-04-16 13:57:48.789 debug (22587) API returned Status: [204]
mielecloudservice.0 2021-04-16 13:57:48.650 error (22587) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 13:57:48.649 error (22587) Error: The state contains no properties! At least one property is expected! at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-16 13:57:48.648 error (22587) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 13:57:48.635 error (22587) 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().
mielecloudservice.0 2021-04-16 13:57:48.633 debug (22587) addSuperFreezingSwitch: Path[Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 13:57:48.633 debug (22587) addSuperCoolingSwitch: Path[Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 13:57:48.632 debug (22587) createStateTargetTemperatureFreezer: Path[Fridge/Freezer_Combination.007116614756], setup: [false], min: [-26], max: [-16], value: [{}]
mielecloudservice.0 2021-04-16 13:57:48.631 debug (22587) createStateTargetTemperatureFridge: Path[Fridge/Freezer_Combination.007116614756], setup: [false], min: [1], max: [9], value: [{}]
mielecloudservice.0 2021-04-16 13:57:48.630 debug (22587) [createNumber]: invalid value detected. Skipping...
mielecloudservice.0 2021-04-16 13:57:48.630 debug (22587) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_2] Value[null] Unit[Celsius]
mielecloudservice.0 2021-04-16 13:57:48.629 debug (22587) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 13:57:48.621 debug (22587) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsi
mielecloudservice.0 2021-04-16 13:57:48.621 debug (22587) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_2]
mielecloudservice.0 2021-04-16 13:57:48.620 debug (22587) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_1] Value[-18] Unit[Celsius]
mielecloudservice.0 2021-04-16 13:57:48.619 debug (22587) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 13:57:48.618 debug (22587) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsi
mielecloudservice.0 2021-04-16 13:57:48.617 debug (22587) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_1]
mielecloudservice.0 2021-04-16 13:57:48.617 debug (22587) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_0] Value[4] Unit[Celsius]
mielecloudservice.0 2021-04-16 13:57:48.616 debug (22587) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 13:57:48.607 debug (22587) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsi
mielecloudservice.0 2021-04-16 13:57:48.606 debug (22587) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_0]
mielecloudservice.0 2021-04-16 13:57:48.605 debug (22587) Number of Items in Array: [3]
mielecloudservice.0 2021-04-16 13:57:48.605 debug (22587) createArray: Path[Fridge/Freezer_Combination.007116614756.Temperature], setup: [false], path: [Fridge/Freezer_Combination.007116614756.Temperature], value: [[object Object],[object Object],[ob
mielecloudservice.0 2021-04-16 13:57:48.604 debug (22587) createStateTemperature: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [[object Object],[object Object],[object Object]]
mielecloudservice.0 2021-04-16 13:57:48.603 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.mobileStart] Value[false]
mielecloudservice.0 2021-04-16 13:57:48.602 debug (22587) createStateMobileStart: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:48.601 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.smartGrid] Value[false]
mielecloudservice.0 2021-04-16 13:57:48.600 debug (22587) createStateSmartGrid: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:48.599 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.fullRemoteControl] Value[true]
mielecloudservice.0 2021-04-16 13:57:48.589 debug (22587) createStateFullRemoteControl: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 13:57:48.588 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.signalDoor] Value[false]
mielecloudservice.0 2021-04-16 13:57:48.587 debug (22587) createStateSignalDoor: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:48.584 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInfo] Value[false]
mielecloudservice.0 2021-04-16 13:57:48.582 debug (22587) createStateSignalInfo: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:48.581 debug (22587) CurrentlyPermittedActions: {"processAction":[4,6],"light":[],"ambientLight":[1],"startTime":[],"ventilationStep":[],"programId":[],"targetTemperature":[{"zone":1,"min":1,"max":9},{"zone":2,"mi
mielecloudservice.0 2021-04-16 13:57:48.580 debug (22587) API returned Status: [200]
mielecloudservice.0 2021-04-16 13:57:48.518 debug (22587) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 13:57:48.518 debug (22587) [APILogOff]: Invalidating: tokenType: [access_token]/(DE_0e378e88f66601e6c297fe9efdd57a00)
mielecloudservice.0 2021-04-16 13:57:48.517 debug (22587) API returned Status: [204]
mielecloudservice.0 2021-04-16 13:57:48.344 debug (22587) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 13:57:48.343 debug (22587) addDeviceNicknameAction: Path:[Fridge/Freezer_Combination.007116614756], mieleDevice:[{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},
mielecloudservice.0 2021-04-16 13:57:48.342 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.ACTIONS.Action_Information] Value[]
mielecloudservice.0 2021-04-16 13:57:48.341 debug (22587) createStateActionsInformation: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: []
mielecloudservice.0 2021-04-16 13:57:48.341 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInUse] Value[true]
mielecloudservice.0 2021-04-16 13:57:48.340 debug (22587) createStateSignalInUse: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 13:57:48.340 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.Connected] Value[true]
mielecloudservice.0 2021-04-16 13:57:48.339 debug (22587) createStateConnected: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 13:57:48.338 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.signalFailure] Value[false]
mielecloudservice.0 2021-04-16 13:57:48.337 debug (22587) createStateSignalFailure: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:48.336 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.Status] Value[In Betrieb]
mielecloudservice.0 2021-04-16 13:57:48.334 debug (22587) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Status_raw] Value[5] Unit[]
mielecloudservice.0 2021-04-16 13:57:48.333 debug (22587) createStateDeviceMainState: Path[Fridge/Freezer_Combination.007116614756.Status], setup: [false], path: [Fridge/Freezer_Combination.007116614756.Status], value: [In Betrieb]
mielecloudservice.0 2021-04-16 13:57:48.332 debug (22587) addMieleDevice:state
mielecloudservice.0 2021-04-16 13:57:48.332 debug (22587) addMieleDevice:ident
mielecloudservice.0 2021-04-16 13:57:48.331 debug (22587) addMieleDevice: NewPath = [Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 13:57:48.329 debug (22587) This is a Kühl-Gefrierkombination
mielecloudservice.0 2021-04-16 13:57:48.329 debug (22587) splitMieleDevices: 007116614756: [007116614756] *** Value: [{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIde
mielecloudservice.0 2021-04-16 13:57:48.327 debug (22587) [splitMieleDevices] Splitting JSON to single devices.
mielecloudservice.0 2021-04-16 13:57:48.326 debug (22587) refreshMieleData: data [{"007116614756":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumber
mielecloudservice.0 2021-04-16 13:57:48.325 debug (22587) refreshMieleData: handover all devices data to splitMieleDevices
mielecloudservice.0 2021-04-16 13:57:48.324 debug (22587) API returned Status: [200]
mielecloudservice.0 2021-04-16 13:57:48.286 debug (22587) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 13:57:48.282 debug (22587) [APILogOff]: Invalidating: tokenType: [refresh_token]/(DE_8f389b46229a07c9ff3e087857869c75)
mielecloudservice.0 2021-04-16 13:57:48.278 info (22587) Clearing Timeout: _pollTimeout
mielecloudservice.0 2021-04-16 13:57:48.239 error (22587) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 13:57:48.238 error (22587) Error: The state contains no properties! At least one property is expected! at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-16 13:57:48.234 error (22587) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 13:57:48.233 error (22587) 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().
mielecloudservice.0 2021-04-16 13:57:48.077 debug (22587) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 13:57:48.077 debug (22587) refreshMieleData: get data from API
mielecloudservice.0 2021-04-16 13:57:48.076 debug (22587) Updating device states (polling API scheduled).
mielecloudservice.0 2021-04-16 13:57:48.001 info (22587) Starting poll timer with a [1] Minute(s) interval.
mielecloudservice.0 2021-04-16 13:57:47.991 debug (22587) addSuperFreezingSwitch: Path[Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 13:57:47.990 debug (22587) addSuperCoolingSwitch: Path[Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 13:57:47.982 debug (22587) createStateTargetTemperatureFreezer: Path[Fridge/Freezer_Combination.007116614756], setup: [true], min: [-26], max: [-16], value: [{}]
mielecloudservice.0 2021-04-16 13:57:47.980 debug (22587) createStateTargetTemperatureFridge: Path[Fridge/Freezer_Combination.007116614756], setup: [true], min: [1], max: [9], value: [{}]
mielecloudservice.0 2021-04-16 13:57:47.973 debug (22587) [createNumber]: invalid value detected. Skipping...
mielecloudservice.0 2021-04-16 13:57:47.973 debug (22587) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_2] Value[null] Unit[Celsius]
mielecloudservice.0 2021-04-16 13:57:47.972 debug (22587) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 13:57:47.963 debug (22587) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsi
mielecloudservice.0 2021-04-16 13:57:47.962 debug (22587) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_2]
mielecloudservice.0 2021-04-16 13:57:47.961 debug (22587) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_1] Value[-18] Unit[Celsius]
mielecloudservice.0 2021-04-16 13:57:47.961 debug (22587) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 13:57:47.960 debug (22587) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsi
mielecloudservice.0 2021-04-16 13:57:47.959 debug (22587) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_1]
mielecloudservice.0 2021-04-16 13:57:47.959 debug (22587) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_0] Value[4] Unit[Celsius]
mielecloudservice.0 2021-04-16 13:57:47.958 debug (22587) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 13:57:47.957 debug (22587) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsi
mielecloudservice.0 2021-04-16 13:57:47.956 debug (22587) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_0]
mielecloudservice.0 2021-04-16 13:57:47.956 debug (22587) Number of Items in Array: [3]
mielecloudservice.0 2021-04-16 13:57:47.937 debug (22587) createArray: Path[Fridge/Freezer_Combination.007116614756.Temperature], setup: [true], path: [Fridge/Freezer_Combination.007116614756.Temperature], value: [[object Object],[object Object],[obj
mielecloudservice.0 2021-04-16 13:57:47.936 debug (22587) createStateTemperature: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [[object Object],[object Object],[object Object]]
mielecloudservice.0 2021-04-16 13:57:47.936 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.mobileStart] Value[false]
mielecloudservice.0 2021-04-16 13:57:47.927 debug (22587) createStateMobileStart: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:47.926 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.smartGrid] Value[false]
mielecloudservice.0 2021-04-16 13:57:47.925 debug (22587) createStateSmartGrid: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:47.915 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.fullRemoteControl] Value[true]
mielecloudservice.0 2021-04-16 13:57:47.914 debug (22587) createStateFullRemoteControl: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 13:57:47.913 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.signalDoor] Value[false]
mielecloudservice.0 2021-04-16 13:57:47.912 debug (22587) createStateSignalDoor: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:47.879 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInfo] Value[false]
mielecloudservice.0 2021-04-16 13:57:47.878 debug (22587) createStateSignalInfo: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:47.877 debug (22587) CurrentlyPermittedActions: {"processAction":[4,6],"light":[],"ambientLight":[1],"startTime":[],"ventilationStep":[],"programId":[],"targetTemperature":[{"zone":1,"min":1,"max":9},{"zone":2,"mi
mielecloudservice.0 2021-04-16 13:57:47.871 debug (22587) API returned Status: [200]
mielecloudservice.0 2021-04-16 13:57:47.267 debug (22587) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 13:57:47.265 debug (22587) addDeviceNicknameAction: Path:[Fridge/Freezer_Combination.007116614756], mieleDevice:[{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},
mielecloudservice.0 2021-04-16 13:57:47.264 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.ACTIONS.Action_Information] Value[]
mielecloudservice.0 2021-04-16 13:57:47.263 debug (22587) createStateActionsInformation: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: []
mielecloudservice.0 2021-04-16 13:57:47.262 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInUse] Value[true]
mielecloudservice.0 2021-04-16 13:57:47.261 debug (22587) createStateSignalInUse: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 13:57:47.260 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.Connected] Value[true]
mielecloudservice.0 2021-04-16 13:57:47.259 debug (22587) createStateConnected: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 13:57:47.258 debug (22587) createBool: Path[Fridge/Freezer_Combination.007116614756.signalFailure] Value[false]
mielecloudservice.0 2021-04-16 13:57:47.256 debug (22587) createStateSignalFailure: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 13:57:47.253 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.Status] Value[In Betrieb]
mielecloudservice.0 2021-04-16 13:57:47.147 debug (22587) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Status_raw] Value[5] Unit[]
mielecloudservice.0 2021-04-16 13:57:47.142 debug (22587) createStateDeviceMainState: Path[Fridge/Freezer_Combination.007116614756.Status], setup: [true], path: [Fridge/Freezer_Combination.007116614756.Status], value: [In Betrieb]
mielecloudservice.0 2021-04-16 13:57:47.135 debug (22587) addMieleDevice:state
mielecloudservice.0 2021-04-16 13:57:47.134 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.DeviceMatNumber] Value[09360040]
mielecloudservice.0 2021-04-16 13:57:47.133 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.DeviceTechType] Value[KFN 37452 iDE]
mielecloudservice.0 2021-04-16 13:57:47.133 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.DeviceSerial] Value[007116614756]
mielecloudservice.0 2021-04-16 13:57:47.125 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.ComModTechType] Value[EK044W]
mielecloudservice.0 2021-04-16 13:57:47.118 debug (22587) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.ComModFirmware] Value[02.72]
mielecloudservice.0 2021-04-16 13:57:47.117 debug (22587) addMieleDeviceIdent: Path = [Fridge/Freezer_Combination.007116614756.IDENT]
mielecloudservice.0 2021-04-16 13:57:47.116 debug (22587) addMieleDevice:ident
mielecloudservice.0 2021-04-16 13:57:47.114 debug (22587) addMieleDevice: NewPath = [Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 13:57:47.113 debug (22587) _knownDevices={"007116614756":{"deviceFolder":"Fridge/Freezer_Combination","name":"Fridge/Freezer combinations reported by Miele@Home API","icon":"icons/21_fridgefreezer.svg","fridgeZone":1,"f
mielecloudservice.0 2021-04-16 13:57:47.105 debug (22587) This is a Kühl-Gefrierkombination
mielecloudservice.0 2021-04-16 13:57:47.104 debug (22587) splitMieleDevices: 007116614756: [007116614756] *** Value: [{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIde
mielecloudservice.0 2021-04-16 13:57:47.103 debug (22587) [splitMieleDevices] Splitting JSON to single devices.
mielecloudservice.0 2021-04-16 13:57:47.102 debug (22587) refreshMieleData: data [{"007116614756":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumber
mielecloudservice.0 2021-04-16 13:57:47.101 debug (22587) refreshMieleData: handover all devices data to splitMieleDevices
mielecloudservice.0 2021-04-16 13:57:47.100 debug (22587) API returned Status: [200]
mielecloudservice.0 2021-04-16 13:57:46.934 debug (22587) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 13:57:46.933 debug (22587) refreshMieleData: get data from API
mielecloudservice.0 2021-04-16 13:57:46.932 info (22587) Setting up devices ...
mielecloudservice.0 2021-04-16 13:57:46.928 info (22587) Access-Token expires at: [Sun May 16 2021 13:57:00 GMT+0200 (GMT+02:00)]
mielecloudservice.0 2021-04-16 13:57:46.478 debug (22587) config API Language: [de]
mielecloudservice.0 2021-04-16 13:57:46.477 debug (22587) options OAuth2-VG: [de-DE]
mielecloudservice.0 2021-04-16 13:57:46.476 debug (22587) OAuth2 grant_type: [password]
mielecloudservice.0 2021-04-16 13:57:46.475 debug (22587) Awaiting OAuth2 Token.
mielecloudservice.0 2021-04-16 13:57:46.455 debug (22587) function APIGetAccessToken
mielecloudservice.0 2021-04-16 13:57:46.362 info (22587) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16

`

Grizzelbee commented 3 years ago

Meine erste Kühl-/Gefrierkombination! :)

Das ist ja echt spaßig! Die initiale Abfrage der API zum Erzeugen des Gerätes läuft und beim zweiten Lauf (dem erste Refresh) geht EXAKT der gleich Call kaputt! Naja. Ich habe mal ein bisschen Debug-code eingebaut. Bitte einmal über github (das Katzen Icon) updaten (Versionsnummer bleibt), ausführen und Debug-Log hier posten.

Edit: Oh cool! Das Gerät hat AmbientLight?

aski71 commented 3 years ago

Haha, hab auch gelacht, als ich das gelesen habe. :) Keine Ahnung, wo das herkommt. Alles default.

Das Gerät hat AmbientLight? Keine Ahnung.... lach.

Pardon my ignorance: Das Katzen Icon?

aski71 commented 3 years ago

... ach, das soll ne KATZE sein. ;-) Jetzt seh ich das erst...

aski71 commented 3 years ago

`

mielecloudservice.0 2021-04-16 15:53:00.418 info (25839) Unloading MieleCloudService...
mielecloudservice.0 2021-04-16 15:53:00.417 debug (25839) verifiedData: [OK]
mielecloudservice.0 2021-04-16 15:53:00.416 debug (25839) API returned Information: [undefined]
mielecloudservice.0 2021-04-16 15:53:00.415 debug (25839) API returned Status: [204]
mielecloudservice.0 2021-04-16 15:53:00.344 warn (25839) Terminated (UNCAUGHT_EXCEPTION): Without reason
mielecloudservice.0 2021-04-16 15:53:00.342 info (25839) terminating
mielecloudservice.0 2021-04-16 15:53:00.207 error (25839) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 15:53:00.205 error at process._tickCallback (internal/process/next_tick.js:68:7)
mielecloudservice.0 2021-04-16 15:53:00.205 error at addMieleDeviceState (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:583:34)
mielecloudservice.0 2021-04-16 15:53:00.205 error at Object.module.exports.createStateTargetTemperatureFridge (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-Tools.js:1387:17)
mielecloudservice.0 2021-04-16 15:53:00.205 error at Adapter.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5935:21)
mielecloudservice.0 2021-04-16 15:53:00.205 error at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-16 15:53:00.205 error (25839) Error: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 15:53:00.204 error (25839) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 15:53:00.201 error (25839) 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().
mielecloudservice.0 2021-04-16 15:53:00.198 debug (25839) addSuperFreezingSwitch: Path[Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 15:53:00.197 debug (25839) addSuperCoolingSwitch: Path[Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 15:53:00.195 debug (25839) createStateTargetTemperatureFreezer: Path[Fridge/Freezer_Combination.007116614756], setup: [false], min: [-26], max: [-16], value: [{}]
mielecloudservice.0 2021-04-16 15:53:00.194 debug (25839) createStateTargetTemperatureFridge: Path[Fridge/Freezer_Combination.007116614756], setup: [false], min: [1], max: [9], value: [{}]
mielecloudservice.0 2021-04-16 15:53:00.193 debug (25839) [createNumber]: invalid value detected. Skipping...
mielecloudservice.0 2021-04-16 15:53:00.191 debug (25839) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_2] Value[null] Unit[Celsius]
mielecloudservice.0 2021-04-16 15:53:00.190 debug (25839) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 15:53:00.190 debug (25839) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Cels
mielecloudservice.0 2021-04-16 15:53:00.189 debug (25839) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_2]
mielecloudservice.0 2021-04-16 15:53:00.187 debug (25839) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_1] Value[-18] Unit[Celsius]
mielecloudservice.0 2021-04-16 15:53:00.186 debug (25839) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 15:53:00.185 debug (25839) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Cels
mielecloudservice.0 2021-04-16 15:53:00.184 debug (25839) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_1]
mielecloudservice.0 2021-04-16 15:53:00.183 debug (25839) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_0] Value[4] Unit[Celsius]
mielecloudservice.0 2021-04-16 15:53:00.182 debug (25839) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 15:53:00.180 debug (25839) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Cels
mielecloudservice.0 2021-04-16 15:53:00.178 debug (25839) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_0]
mielecloudservice.0 2021-04-16 15:53:00.177 debug (25839) Number of Items in Array: [3]
mielecloudservice.0 2021-04-16 15:53:00.176 debug (25839) createArray: Path[Fridge/Freezer_Combination.007116614756.Temperature], setup: [false], path: [Fridge/Freezer_Combination.007116614756.Temperature], value: [[object Object],[object Object],[o
mielecloudservice.0 2021-04-16 15:53:00.173 debug (25839) createStateTemperature: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [[object Object],[object Object],[object Object]
mielecloudservice.0 2021-04-16 15:53:00.171 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.mobileStart] Value[false]
mielecloudservice.0 2021-04-16 15:53:00.170 debug (25839) createStateMobileStart: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:53:00.167 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.smartGrid] Value[false]
mielecloudservice.0 2021-04-16 15:53:00.166 debug (25839) createStateSmartGrid: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:53:00.165 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.fullRemoteControl] Value[true]
mielecloudservice.0 2021-04-16 15:53:00.163 debug (25839) createStateFullRemoteControl: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 15:53:00.162 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.signalDoor] Value[false]
mielecloudservice.0 2021-04-16 15:53:00.160 debug (25839) createStateSignalDoor: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:53:00.158 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInfo] Value[false]
mielecloudservice.0 2021-04-16 15:53:00.157 debug (25839) createStateSignalInfo: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:53:00.156 debug (25839) CurrentlyPermittedActions: {"processAction":[4,6],"light":[],"ambientLight":[1],"startTime":[],"ventilationStep":[],"programId":[],"targetTemperature":[{"zone":1,"min":1,"max":9},{"zone":2,"m
mielecloudservice.0 2021-04-16 15:53:00.155 debug (25839) verifiedData: [undefined]
mielecloudservice.0 2021-04-16 15:53:00.154 debug (25839) API returned Information: [undefined]
mielecloudservice.0 2021-04-16 15:53:00.153 debug (25839) API returned Status: [200]
mielecloudservice.0 2021-04-16 15:53:00.089 debug (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_f1b57
mielecloudservice.0 2021-04-16 15:53:00.088 debug (25839) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 15:53:00.086 debug (25839) [APILogOff]: Invalidating: tokenType: [access_token]/(DE_f1b57410b3bd471ec093c556b8ab27b2)
mielecloudservice.0 2021-04-16 15:53:00.085 debug (25839) verifiedData: [OK]
mielecloudservice.0 2021-04-16 15:53:00.084 debug (25839) API returned Information: [undefined]
mielecloudservice.0 2021-04-16 15:53:00.084 debug (25839) API returned Status: [204]
mielecloudservice.0 2021-04-16 15:52:59.808 debug (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"js
mielecloudservice.0 2021-04-16 15:52:59.807 debug (25839) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 15:52:59.806 debug (25839) addDeviceNicknameAction: Path:[Fridge/Freezer_Combination.007116614756], mieleDevice:[{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"}
mielecloudservice.0 2021-04-16 15:52:59.805 debug (25839) createString: Path[Fridge/Freezer_Combination.007116614756.ACTIONS.Action_Information] Value[]
mielecloudservice.0 2021-04-16 15:52:59.804 debug (25839) createStateActionsInformation: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: []
mielecloudservice.0 2021-04-16 15:52:59.803 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInUse] Value[true]
mielecloudservice.0 2021-04-16 15:52:59.802 debug (25839) createStateSignalInUse: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 15:52:59.791 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.Connected] Value[true]
mielecloudservice.0 2021-04-16 15:52:59.790 debug (25839) createStateConnected: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 15:52:59.789 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.signalFailure] Value[false]
mielecloudservice.0 2021-04-16 15:52:59.788 debug (25839) createStateSignalFailure: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:52:59.787 debug (25839) createString: Path[Fridge/Freezer_Combination.007116614756.Status] Value[In Betrieb]
mielecloudservice.0 2021-04-16 15:52:59.785 debug (25839) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Status_raw] Value[5] Unit[]
mielecloudservice.0 2021-04-16 15:52:59.784 debug (25839) createStateDeviceMainState: Path[Fridge/Freezer_Combination.007116614756.Status], setup: [false], path: [Fridge/Freezer_Combination.007116614756.Status], value: [In Betrieb]
mielecloudservice.0 2021-04-16 15:52:59.784 debug (25839) addMieleDevice:state
mielecloudservice.0 2021-04-16 15:52:59.783 debug (25839) addMieleDevice:ident
mielecloudservice.0 2021-04-16 15:52:59.782 debug (25839) addMieleDevice: NewPath = [Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 15:52:59.781 debug (25839) This is a Kühl-Gefrierkombination
mielecloudservice.0 2021-04-16 15:52:59.766 debug (25839) splitMieleDevices: 007116614756: [007116614756] *** Value: [{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceId
mielecloudservice.0 2021-04-16 15:52:59.765 debug (25839) [splitMieleDevices] Splitting JSON to single devices.
mielecloudservice.0 2021-04-16 15:52:59.765 debug (25839) refreshMieleData: data [{"007116614756":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumbe
mielecloudservice.0 2021-04-16 15:52:59.764 debug (25839) refreshMieleData: handover all devices data to splitMieleDevices
mielecloudservice.0 2021-04-16 15:52:59.763 debug (25839) verifiedData: [undefined]
mielecloudservice.0 2021-04-16 15:52:59.762 debug (25839) API returned Information: [undefined]
mielecloudservice.0 2021-04-16 15:52:59.761 debug (25839) API returned Status: [200]
mielecloudservice.0 2021-04-16 15:52:59.726 debug (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_42d22
mielecloudservice.0 2021-04-16 15:52:59.725 debug (25839) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 15:52:59.724 debug (25839) [APILogOff]: Invalidating: tokenType: [refresh_token]/(DE_42d228437e06f2dbc3ee70ca0684b9c1)
mielecloudservice.0 2021-04-16 15:52:59.721 info (25839) Clearing Timeout: _pollTimeout
mielecloudservice.0 2021-04-16 15:52:59.693 error (25839) The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 15:52:59.693 error at processImmediate (timers.js:658:5)
mielecloudservice.0 2021-04-16 15:52:59.693 error at tryOnImmediate (timers.js:676:5)
mielecloudservice.0 2021-04-16 15:52:59.693 error at runCallback (timers.js:706:11)
mielecloudservice.0 2021-04-16 15:52:59.693 error at Immediate.mieleTools.createExtendObject (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-Tools.js:1383:25)
mielecloudservice.0 2021-04-16 15:52:59.693 error at Adapter.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5935:21)
mielecloudservice.0 2021-04-16 15:52:59.693 error at validateSetStateObjectArgument (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5817:23)
mielecloudservice.0 2021-04-16 15:52:59.693 error (25839) Error: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 15:52:59.688 error (25839) unhandled promise rejection: The state contains no properties! At least one property is expected!
mielecloudservice.0 2021-04-16 15:52:59.685 error (25839) 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().
mielecloudservice.0 2021-04-16 15:52:59.465 debug (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"js
mielecloudservice.0 2021-04-16 15:52:59.458 debug (25839) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 15:52:59.456 debug (25839) refreshMieleData: get data from API
mielecloudservice.0 2021-04-16 15:52:59.455 debug (25839) Updating device states (polling API scheduled).
mielecloudservice.0 2021-04-16 15:52:59.408 info (25839) Starting poll timer with a [1] Minute(s) interval.
mielecloudservice.0 2021-04-16 15:52:59.405 debug (25839) addSuperFreezingSwitch: Path[Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 15:52:59.401 debug (25839) addSuperCoolingSwitch: Path[Fridge/Freezer_Combination.007116614756]
mielecloudservice.0 2021-04-16 15:52:59.400 debug (25839) createStateTargetTemperatureFreezer: Path[Fridge/Freezer_Combination.007116614756], setup: [true], min: [-26], max: [-16], value: [{}]
mielecloudservice.0 2021-04-16 15:52:59.396 debug (25839) createStateTargetTemperatureFridge: Path[Fridge/Freezer_Combination.007116614756], setup: [true], min: [1], max: [9], value: [{}]
mielecloudservice.0 2021-04-16 15:52:59.389 debug (25839) [createNumber]: invalid value detected. Skipping...
mielecloudservice.0 2021-04-16 15:52:59.387 debug (25839) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_2] Value[null] Unit[Celsius]
mielecloudservice.0 2021-04-16 15:52:59.386 debug (25839) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 15:52:59.386 debug (25839) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Cels
mielecloudservice.0 2021-04-16 15:52:59.385 debug (25839) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_2]
mielecloudservice.0 2021-04-16 15:52:59.385 debug (25839) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_1] Value[-18] Unit[Celsius]
mielecloudservice.0 2021-04-16 15:52:59.384 debug (25839) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 15:52:59.383 debug (25839) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Cels
mielecloudservice.0 2021-04-16 15:52:59.382 debug (25839) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_1]
mielecloudservice.0 2021-04-16 15:52:59.381 debug (25839) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_0] Value[4] Unit[Celsius]
mielecloudservice.0 2021-04-16 15:52:59.381 debug (25839) createArray: OrgUnit: [Celsius]
mielecloudservice.0 2021-04-16 15:52:59.379 debug (25839) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Cels
mielecloudservice.0 2021-04-16 15:52:59.375 debug (25839) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_0]
mielecloudservice.0 2021-04-16 15:52:59.371 debug (25839) Number of Items in Array: [3]
mielecloudservice.0 2021-04-16 15:52:59.370 debug (25839) createArray: Path[Fridge/Freezer_Combination.007116614756.Temperature], setup: [true], path: [Fridge/Freezer_Combination.007116614756.Temperature], value: [[object Object],[object Object],[ob
mielecloudservice.0 2021-04-16 15:52:59.369 debug (25839) createStateTemperature: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [[object Object],[object Object],[object Object]]
mielecloudservice.0 2021-04-16 15:52:59.368 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.mobileStart] Value[false]
mielecloudservice.0 2021-04-16 15:52:59.367 debug (25839) createStateMobileStart: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:52:59.359 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.smartGrid] Value[false]
mielecloudservice.0 2021-04-16 15:52:59.358 debug (25839) createStateSmartGrid: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:52:59.357 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.fullRemoteControl] Value[true]
mielecloudservice.0 2021-04-16 15:52:59.357 debug (25839) createStateFullRemoteControl: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 15:52:59.350 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.signalDoor] Value[false]
mielecloudservice.0 2021-04-16 15:52:59.348 debug (25839) createStateSignalDoor: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:52:59.341 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInfo] Value[false]
mielecloudservice.0 2021-04-16 15:52:59.340 debug (25839) createStateSignalInfo: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false]
mielecloudservice.0 2021-04-16 15:52:59.338 debug (25839) CurrentlyPermittedActions: {"processAction":[4,6],"light":[],"ambientLight":[1],"startTime":[],"ventilationStep":[],"programId":[],"targetTemperature":[{"zone":1,"min":1,"max":9},{"zone":2,"m
mielecloudservice.0 2021-04-16 15:52:59.335 debug (25839) verifiedData: [undefined]
mielecloudservice.0 2021-04-16 15:52:59.334 debug (25839) API returned Information: [undefined]
mielecloudservice.0 2021-04-16 15:52:59.327 debug (25839) API returned Status: [200]
mielecloudservice.0 2021-04-16 15:52:59.058 debug (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"js
mielecloudservice.0 2021-04-16 15:52:59.057 debug (25839) APISendRequest: Awaiting requested data.
mielecloudservice.0 2021-04-16 15:52:59.055 debug (25839) addDeviceNicknameAction: Path:[Fridge/Freezer_Combination.007116614756], mieleDevice:[{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"}
mielecloudservice.0 2021-04-16 15:52:59.053 debug (25839) createString: Path[Fridge/Freezer_Combination.007116614756.ACTIONS.Action_Information] Value[]
mielecloudservice.0 2021-04-16 15:52:59.051 debug (25839) createStateActionsInformation: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: []
mielecloudservice.0 2021-04-16 15:52:59.049 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInUse] Value[true]
mielecloudservice.0 2021-04-16 15:52:59.049 debug (25839) createStateSignalInUse: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true]
mielecloudservice.0 2021-04-16 15:52:59.047 debug (25839) createBool: Path[Fridge/Freezer_Combination.007116614756.Connected] Value[true]
mielecloudservice.0 2021-04-16 15:52:59.045 debug (25839) createStateConnected: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true]

`

Grizzelbee commented 3 years ago

Hmm. Genau der Teil, der interessant ist, ist leider abgeschnitten, weil das Log in der Browseransicht aggeschnitten wird.

mielecloudservice.0 2021-04-16 15:52:59.465 debug (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"js

Kannst Du vielleicht das Ganze noch einmal auf den MieleCloudService filtern und dann als Logfile herunterladen? Oder zumindest die Zeilen mit "axios options:" raussuchen und schicken?

AmbientLight: Zumindest die permittedActions deuten darauf hin:

  (25839) CurrentlyPermittedActions: {"processAction":[4,6],"light":[],"ambientLight":[1], [...]
aski71 commented 3 years ago

2021-04-16 15:52:58.705 - debug: mielecloudservice.0 (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/?language=de"}] 2021-04-16 15:52:59.058 - debug: mielecloudservice.0 (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions"}] 2021-04-16 15:52:59.465 - debug: mielecloudservice.0 (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/?language=de"}] 2021-04-16 15:52:59.726 - debug: mielecloudservice.0 (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_42d228437e06f2dbc3ee70ca0684b9c1","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/thirdparty/logout/"}] 2021-04-16 15:52:59.808 - debug: mielecloudservice.0 (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions"}] 2021-04-16 15:53:00.089 - debug: mielecloudservice.0 (25839) axios options: [{"headers":{"Authorization":"Bearer DE_f1b57410b3bd471ec093c556b8ab27b2","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_f1b57410b3bd471ec093c556b8ab27b2","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/thirdparty/logout/"}] 2021-04-16 15:53:34.353 - debug: mielecloudservice.0 (26787) axios options: [{"headers":{"Authorization":"Bearer DE_a597199a390703acb16438c85728397f","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/?language=de"}] 2021-04-16 15:53:34.635 - debug: mielecloudservice.0 (26787) axios options: [{"headers":{"Authorization":"Bearer DE_a597199a390703acb16438c85728397f","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions"}] 2021-04-16 15:53:35.013 - debug: mielecloudservice.0 (26787) axios options: [{"headers":{"Authorization":"Bearer DE_a597199a390703acb16438c85728397f","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/?language=de"}] 2021-04-16 15:53:35.253 - debug: mielecloudservice.0 (26787) axios options: [{"headers":{"Authorization":"Bearer DE_a597199a390703acb16438c85728397f","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_319c95ab52491a10b7df59fbe3d7ab85","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/thirdparty/logout/"}] 2021-04-16 15:53:35.324 - debug: mielecloudservice.0 (26787) axios options: [{"headers":{"Authorization":"Bearer DE_a597199a390703acb16438c85728397f","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions"}] 2021-04-16 15:53:35.479 - debug: mielecloudservice.0 (26787) axios options: [{"headers":{"Authorization":"Bearer DE_a597199a390703acb16438c85728397f","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_a597199a390703acb16438c85728397f","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/thirdparty/logout/"}] 2021-04-16 15:54:09.862 - debug: mielecloudservice.0 (27560) axios options: [{"headers":{"Authorization":"Bearer DE_dac4d7df6053ffff6a9807f3938fb4c6","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/?language=de"}] 2021-04-16 15:54:10.150 - debug: mielecloudservice.0 (27560) axios options: [{"headers":{"Authorization":"Bearer DE_dac4d7df6053ffff6a9807f3938fb4c6","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions"}] 2021-04-16 15:54:10.466 - debug: mielecloudservice.0 (27560) axios options: [{"headers":{"Authorization":"Bearer DE_dac4d7df6053ffff6a9807f3938fb4c6","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/?language=de"}] 2021-04-16 15:54:10.596 - debug: mielecloudservice.0 (27560) axios options: [{"headers":{"Authorization":"Bearer DE_dac4d7df6053ffff6a9807f3938fb4c6","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_41aa13a2995c8aa1735e6b86501b0a39","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/thirdparty/logout/"}] 2021-04-16 15:54:10.690 - debug: mielecloudservice.0 (27560) axios options: [{"headers":{"Authorization":"Bearer DE_dac4d7df6053ffff6a9807f3938fb4c6","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions"}] 2021-04-16 15:54:10.800 - debug: mielecloudservice.0 (27560) axios options: [{"headers":{"Authorization":"Bearer DE_dac4d7df6053ffff6a9807f3938fb4c6","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_dac4d7df6053ffff6a9807f3938fb4c6","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/thirdparty/logout/"}] 2021-04-16 15:54:10.891 - error: mielecloudservice.0 (27560) [APISendRequest] {"message":"Request failed with status code 401","name":"Error","stack":"Error: Request failed with status code 401\n at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11)\n at IncomingMessage.emit (events.js:203:15)\n at endReadableNT (_stream_readable.js:1145:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)","config":{"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions","method":"get","data":"","headers":{"Accept":"application/json","Authorization":"Bearer DE_dac4d7df6053ffff6a9807f3938fb4c6","Content-Type":"application/json","User-Agent":"axios/0.21.1"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"dataType":"json","json":true}} | [Stack]: Error: Request failed with status code 401

aski71 commented 3 years ago

Keine Ahnung, was das meint mit dem AmbientLight. Ich hab nur nen Kühlschrank. Wüsste nicht, was daran AmbientLight ist und wozu ich es brauche. ;-) Außer, dass beim Öffnen des Kühlschranks das Licht angeht.

Grizzelbee commented 3 years ago

Für mich sieht das so aus, als hättest Du drei Instanzen des Adapters laufen: grafik

Die ständig wechselnden Bearer deuten darauf hin. Es sollte nämlich nur einen geben. Und dann wäre auch der htp error 401 (Unauthorized) plausibel. Ich fürchte bei der Bereinigung ist etwas schief gelaufen. Hast du danch mal den kompletten Rechner neu gestartet?

aski71 commented 3 years ago

Hm. Unmittelbar nach der Bereinigung nicht. Was wäre die Idee? Den Adapter nochmal komplett löschen, Rechner neu starten und dann neu installieren? Müsste nicht auch reichen: iobroker stoppen und starten?

Grizzelbee commented 3 years ago

Hmm. Mit der Reparatur von Installationen habe ich nicht so viel Erfahrung - nur das das auf Linux deutlich stabiler läuft und einfacher ist, als unter Windows. Und das ist eine simple Beobachtung - kein System bashing.

Ich würde den Adapter noch einmal komplett deinstallieren und eventuell auch auf der Platte mal nach Resten suchen und weglöschen. Dann Rechner neustarten. Den Broker müsste in der Theorie auch reichen - ja. Aber in der Praxis habe ich schon Pferde ... Apotheke ... Da jeder Adapter in einem eigenen Prozeß läuft könnte da tatsächlich etwas schief gehen, wenn die Prozesse aus irgendeinem Grunde nicht mehr sauber miteinander verbunden sind. Ich bin bei so etwas ein Freund davon das gründlich und zweifelsfrei zu machen. erst recht, wenn ich schon Probleme habe. Und dann noch einmal von vorne anfangen. Mit Ruhe und Bedacht (Das bezieht sich nur auf mich und soll keine Unterstellung sein). Wie gesagt: Im Log sollte nur ein einziger bearer auftauchen - und das auch nicht in derart kurzen Abständen - sondern im Pollintervall.

aski71 commented 3 years ago

Es läuft bei mir unter Linux. :-) Windows kommt mir schon lange nicht mehr ins Haus. ;-)

Dann mach ich das mal so. Wo würde ich "Reste" finden? /opt/iobroker/node_modules/iobroker.mielecloudservice? Oder gibt's sonst noch was?

Grizzelbee commented 3 years ago

Das ist "nur" das installationsverzeichnis. Aber ja. Das würde ich weghauen. und auch \iobroker\iobroker-data\files\mielecloudservice.admin. Und vorher natürlich alle Objekte und instanzen sauber im Broker löschen.

Dann den Adapter über die Katze neu installieren.

aski71 commented 3 years ago

Ok. Alles über die Oberfläche deinstalliert. Es waren keine Objekte mehr vorhanden. Unter den node_modules war auch nix mehr mit Miele. Unter den iobroker-data/files war auch nix mehr mit Miele. Reboot. Über github neu installiert. Mit iobroker add die Instanz erzeugt (wurde nicht automatisch gemacht). Schmiert wieder ab:

2021-04-16 18:23:05.674 - info: host.homie iobroker url "https://github.com/Grizzelbee/ioBroker.mielecloudservice/tarball/master" mielecloudservice 2021-04-16 18:23:08.788 - info: host.homie iobroker install Grizzelbee/ioBroker.mielecloudservice#master 2021-04-16 18:23:10.316 - info: host.homie iobroker npm install Grizzelbee/ioBroker.mielecloudservice#master --loglevel error --prefix "/opt/iobroker" (System call) 2021-04-16 18:29:03.763 - info: host.homie iobroker upload [30] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/words.js words.js application/javascript 2021-04-16 18:29:05.515 - info: host.homie iobroker upload [20] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/45_steamoven_micro.svg icons/45_steamoven_micro.svg image/svg+xml 2021-04-16 18:29:05.580 - info: host.homie iobroker upload [19] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/32_winecabinet.svg icons/32_winecabinet.svg image/svg+xml 2021-04-16 18:29:05.669 - info: host.homie iobroker upload [18] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/31_steamovencombination.svg icons/31_steamovencombination.svg image/svg+xml 2021-04-16 18:29:05.758 - info: host.homie iobroker upload [17] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/27_hobinduction.svg icons/27_hobinduction.svg image/svg+xml 2021-04-16 18:29:05.824 - info: host.homie iobroker upload [16] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/25_dishwarmer.svg icons/25_dishwarmer.svg image/svg+xml 2021-04-16 18:29:05.888 - info: host.homie iobroker upload [15] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/24_washerdryer.svg icons/24_washerdryer.svg image/svg+xml 2021-04-16 18:29:05.959 - info: host.homie iobroker upload [14] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/23_roboticvacuumcleaner.svg icons/23_roboticvacuumcleaner.svg image/svg+xml 2021-04-16 18:29:06.038 - info: host.homie iobroker upload [13] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/21_fridgefreezer.svg icons/21_fridgefreezer.svg image/svg+xml 2021-04-16 18:29:06.099 - info: host.homie iobroker upload [12] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/20_freezer.svg icons/20_freezer.svg image/svg+xml 2021-04-16 18:29:06.159 - info: host.homie iobroker upload [11] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/19_fridge.svg icons/19_fridge.svg image/svg+xml 2021-04-16 18:29:06.223 - info: host.homie iobroker upload [10] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/18_hood.svg icons/18_hood.svg image/svg+xml 2021-04-16 18:29:06.285 - info: host.homie iobroker upload [9] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/17_coffeesystem.svg icons/17_coffeesystem.svg image/svg+xml 2021-04-16 18:29:06.348 - info: host.homie iobroker upload [8] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/16_microwave.svg icons/16_microwave.svg image/svg+xml 2021-04-16 18:29:06.418 - info: host.homie iobroker upload [7] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/15_steamoven.svg icons/15_steamoven.svg image/svg+xml 2021-04-16 18:29:06.487 - info: host.homie iobroker upload [6] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/14_hobhighlight.svg icons/14_hobhighlight.svg image/svg+xml 2021-04-16 18:29:06.549 - info: host.homie iobroker upload [5] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/13_ovenmicrowave.svg icons/13_ovenmicrowave.svg image/svg+xml 2021-04-16 18:29:06.617 - info: host.homie iobroker upload [4] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/12_oven.svg icons/12_oven.svg image/svg+xml 2021-04-16 18:29:06.679 - info: host.homie iobroker upload [3] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/07_dishwasher.svg icons/07_dishwasher.svg image/svg+xml 2021-04-16 18:29:06.743 - info: host.homie iobroker upload [2] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/02_dryer.svg icons/02_dryer.svg image/svg+xml 2021-04-16 18:29:06.809 - info: host.homie iobroker upload [1] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/01_washingmachine.svg icons/01_washingmachine.svg image/svg+xml 2021-04-16 18:29:06.870 - info: host.homie iobroker upload [0] mielecloudservice.admin /opt/iobroker/node_modules/iobroker.mielecloudservice/admin/icons/00_genericappliance.svg icons/00_genericappliance.svg image/svg+xml 2021-04-16 18:33:31.720 - info: host.homie instance system.adapter.mielecloudservice.0 started with pid 31303 2021-04-16 18:33:34.846 - info: mielecloudservice.0 (31303) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16 2021-04-16 18:33:34.942 - warn: mielecloudservice.0 (31303) Miele account is missing. 2021-04-16 18:33:34.944 - warn: mielecloudservice.0 (31303) Miele password is missing. 2021-04-16 18:33:34.944 - warn: mielecloudservice.0 (31303) Miele API client ID is missing. 2021-04-16 18:33:34.945 - warn: mielecloudservice.0 (31303) Miele API client secret is missing. 2021-04-16 18:33:34.946 - warn: mielecloudservice.0 (31303) Adapter config is invalid. Please fix. 2021-04-16 18:33:34.951 - info: mielecloudservice.0 (31303) Terminated (ADAPTER_REQUESTED_TERMINATION): Invalid Configuration. 2021-04-16 18:33:35.938 - error: host.homie instance system.adapter.mielecloudservice.0 terminated by request of the instance itself and will not be restarted, before user restarts it. 2021-04-16 18:33:35.940 - info: host.homie Do not restart adapter system.adapter.mielecloudservice.0 because desired by instance 2021-04-16 18:34:09.769 - info: host.homie instance system.adapter.mielecloudservice.0 started with pid 32243 2021-04-16 18:34:12.317 - info: mielecloudservice.0 (32243) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16 2021-04-16 18:34:12.901 - info: mielecloudservice.0 (32243) Access-Token expires at: [Sun May 16 2021 18:34:00 GMT+0200 (GMT+02:00)] 2021-04-16 18:34:12.915 - info: mielecloudservice.0 (32243) Setting up devices ... 2021-04-16 18:34:13.663 - info: mielecloudservice.0 (32243) Starting poll timer with a [1] Minute(s) interval. 2021-04-16 18:34:13.813 - error: mielecloudservice.0 (32243) 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(). 2021-04-16 18:34:13.815 - error: mielecloudservice.0 (32243) unhandled promise rejection: The state contains no properties! At least one property is expected! 2021-04-16 18:34:13.821 - error: mielecloudservice.0 (32243) Error: The state contains no properties! At least one property is expected! at Immediate.mieleTools.createExtendObject (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-Tools.js:1383:25) 2021-04-16 18:34:13.822 - error: mielecloudservice.0 (32243) The state contains no properties! At least one property is expected! 2021-04-16 18:34:13.901 - info: mielecloudservice.0 (32243) Clearing Timeout: _pollTimeout 2021-04-16 18:34:14.158 - error: mielecloudservice.0 (32243) 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(). 2021-04-16 18:34:14.159 - error: mielecloudservice.0 (32243) unhandled promise rejection: The state contains no properties! At least one property is expected! 2021-04-16 18:34:14.160 - error: mielecloudservice.0 (32243) Error: The state contains no properties! At least one property is expected! at Object.module.exports.createStateTargetTemperatureFridge (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-Tools.js:1387:17) at addMieleDeviceState (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:583:34) 2021-04-16 18:34:14.161 - error: mielecloudservice.0 (32243) The state contains no properties! At least one property is expected! 2021-04-16 18:34:14.225 - info: mielecloudservice.0 (32243) Unloading MieleCloudService... 2021-04-16 18:34:14.227 - info: mielecloudservice.0 (32243) terminating 2021-04-16 18:34:14.229 - warn: mielecloudservice.0 (32243) Terminated (UNCAUGHT_EXCEPTION): Without reason 2021-04-16 18:34:15.195 - error: host.homie instance system.adapter.mielecloudservice.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2021-04-16 18:34:15.197 - info: host.homie Restart adapter system.adapter.mielecloudservice.0 because enabled 2021-04-16 18:34:45.249 - info: host.homie instance system.adapter.mielecloudservice.0 started with pid 599 2021-04-16 18:34:47.518 - info: mielecloudservice.0 (599) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16 2021-04-16 18:34:48.073 - info: mielecloudservice.0 (599) Access-Token expires at: [Sun May 16 2021 18:34:00 GMT+0200 (GMT+02:00)] 2021-04-16 18:34:48.079 - info: mielecloudservice.0 (599) Setting up devices ... 2021-04-16 18:34:48.774 - info: mielecloudservice.0 (599) Starting poll timer with a [1] Minute(s) interval. 2021-04-16 18:34:48.866 - error: mielecloudservice.0 (599) 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(). 2021-04-16 18:34:48.867 - error: mielecloudservice.0 (599) unhandled promise rejection: The state contains no properties! At least one property is expected! 2021-04-16 18:34:48.872 - error: mielecloudservice.0 (599) Error: The state contains no properties! At least one property is expected! at Immediate.mieleTools.createExtendObject (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-Tools.js:1383:25) 2021-04-16 18:34:48.873 - error: mielecloudservice.0 (599) The state contains no properties! At least one property is expected! 2021-04-16 18:34:48.893 - info: mielecloudservice.0 (599) Clearing Timeout: _pollTimeout 2021-04-16 18:34:49.131 - info: mielecloudservice.0 (599) Unloading MieleCloudService... 2021-04-16 18:34:49.133 - info: mielecloudservice.0 (599) terminating 2021-04-16 18:34:49.134 - warn: mielecloudservice.0 (599) Terminated (UNCAUGHT_EXCEPTION): Without reason 2021-04-16 18:34:49.157 - error: mielecloudservice.0 (599) [APISendRequest] {"message":"Request failed with status code 401","name":"Error","stack":"Error: Request failed with status code 401\n at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11)\n at IncomingMessage.emit (events.js:203:15)\n at endReadableNT (_stream_readable.js:1145:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)","config":{"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions","method":"get","data":"","headers":{"Accept":"application/json","Authorization":"Bearer DE_d3b53f5a3461b389b350a384532a98d8","Content-Type":"application/json","User-Agent":"axios/0.21.1"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"dataType":"json","json":true}} | [Stack]: Error: Request failed with status code 401 2021-04-16 18:34:49.158 - error: mielecloudservice.0 (599) Request made and server responded: 2021-04-16 18:34:49.160 - error: mielecloudservice.0 (599) Response.status:401 2021-04-16 18:34:49.162 - error: mielecloudservice.0 (599) Response.headers: {"date":"Fri, 16 Apr 2021 16:34:49 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","strict-transport-security":"max-age=15724800; includeSubDomains"} 2021-04-16 18:34:49.163 - error: mielecloudservice.0 (599) Response.data: {"code":401,"message":"Unauthorized"} 2021-04-16 18:34:49.166 - error: mielecloudservice.0 (599) 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(). 2021-04-16 18:34:49.167 - error: mielecloudservice.0 (599) unhandled promise rejection: Unauthorized 2021-04-16 18:34:49.168 - error: mielecloudservice.0 (599) Error: Unauthorized at APISendRequest (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-apiTools.js:350:19) 2021-04-16 18:34:49.169 - error: mielecloudservice.0 (599) Unauthorized 2021-04-16 18:34:50.091 - error: host.homie instance system.adapter.mielecloudservice.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2021-04-16 18:34:50.093 - info: host.homie Restart adapter system.adapter.mielecloudservice.0 because enabled

aski71 commented 3 years ago

Sorry. Debug Modus vergessen. Hier mit eingeschaltetem Debug Modus.

2021-04-16 18:45:25.241 - info: host.homie instance system.adapter.mielecloudservice.0 started with pid 15804 2021-04-16 18:45:27.134 - debug: mielecloudservice.0 (15804) Redis Objects: Use Redis connection: 127.0.0.1:6379 2021-04-16 18:45:27.227 - debug: mielecloudservice.0 (15804) Objects client ready ... initialize now 2021-04-16 18:45:27.232 - debug: mielecloudservice.0 (15804) Objects create System PubSub Client 2021-04-16 18:45:27.234 - debug: mielecloudservice.0 (15804) Objects create User PubSub Client 2021-04-16 18:45:27.236 - debug: mielecloudservice.0 (15804) Objects client initialize lua scripts 2021-04-16 18:45:27.264 - debug: mielecloudservice.0 (15804) Objects connected to redis: 127.0.0.1:6379 2021-04-16 18:45:27.281 - debug: mielecloudservice.0 (15804) objectDB connected 2021-04-16 18:45:27.285 - debug: mielecloudservice.0 (15804) Redis States: Use Redis connection: 127.0.0.1:6379 2021-04-16 18:45:27.298 - debug: mielecloudservice.0 (15804) States create System PubSub Client 2021-04-16 18:45:27.300 - debug: mielecloudservice.0 (15804) States create User PubSub Client 2021-04-16 18:45:27.313 - debug: mielecloudservice.0 (15804) States connected to redis: 127.0.0.1:6379 2021-04-16 18:45:27.314 - debug: mielecloudservice.0 (15804) statesDB connected 2021-04-16 18:45:27.699 - info: mielecloudservice.0 (15804) starting. Version 4.0.13 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v10.24.1, js-controller: 3.2.16 2021-04-16 18:45:27.860 - debug: mielecloudservice.0 (15804) function APIGetAccessToken 2021-04-16 18:45:27.874 - debug: mielecloudservice.0 (15804) Awaiting OAuth2 Token. 2021-04-16 18:45:27.887 - debug: mielecloudservice.0 (15804) OAuth2 grant_type: [password] 2021-04-16 18:45:27.889 - debug: mielecloudservice.0 (15804) options OAuth2-VG: [de-DE] 2021-04-16 18:45:27.890 - debug: mielecloudservice.0 (15804) config API Language: [de] 2021-04-16 18:45:28.262 - info: mielecloudservice.0 (15804) Access-Token expires at: [Sun May 16 2021 18:45:00 GMT+0200 (GMT+02:00)] 2021-04-16 18:45:28.266 - info: mielecloudservice.0 (15804) Setting up devices ... 2021-04-16 18:45:28.267 - debug: mielecloudservice.0 (15804) refreshMieleData: get data from API 2021-04-16 18:45:28.269 - debug: mielecloudservice.0 (15804) APISendRequest: Awaiting requested data. 2021-04-16 18:45:28.269 - debug: mielecloudservice.0 (15804) axios options: [{"headers":{"Authorization":"Bearer DE_50094561b876e76af7686e5fd4fbce95","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/?language=de"}] 2021-04-16 18:45:28.421 - debug: mielecloudservice.0 (15804) API returned Status: [200] 2021-04-16 18:45:28.423 - debug: mielecloudservice.0 (15804) API returned Information: [undefined] 2021-04-16 18:45:28.424 - debug: mielecloudservice.0 (15804) verifiedData: [undefined] 2021-04-16 18:45:28.425 - debug: mielecloudservice.0 (15804) refreshMieleData: handover all devices data to splitMieleDevices 2021-04-16 18:45:28.431 - debug: mielecloudservice.0 (15804) refreshMieleData: data [{"007116614756":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumber":"007116614756","fabIndex":"33","techType":"KFN 37452 iDE","matNumber":"09360040","swids":["3600","0"]},"xkmIdentLabel":{"techType":"EK044W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":0,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":5,"value_localized":"In Betrieb","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":0,"value_localized":"","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"}],"temperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":false},"ambientLight":2,"light":null,"elapsedTime":[],"spinningSpeed":{"unit":"U/min","value_raw":null,"value_localized":null,"key_localized":"Schleuderdrehzahl"},"dryingStep":{"value_raw":null,"value_localized":"","key_localized":"Trockenstufe"},"ventilationStep":{"value_raw":null,"value_localized":"","key_localized":"Lüfterstufe"},"plateStep":[],"ecoFeedback":null,"batteryLevel":null}}}] 2021-04-16 18:45:28.433 - debug: mielecloudservice.0 (15804) [splitMieleDevices] Splitting JSON to single devices. 2021-04-16 18:45:28.434 - debug: mielecloudservice.0 (15804) splitMieleDevices: 007116614756: [007116614756] *** Value: [{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumber":"007116614756","fabIndex":"33","techType":"KFN 37452 iDE","matNumber":"09360040","swids":["3600","0"]},"xkmIdentLabel":{"techType":"EK044W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":0,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":5,"value_localized":"In Betrieb","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":0,"value_localized":"","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"}],"temperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":false},"ambientLight":2,"light":null,"elapsedTime":[],"spinningSpeed":{"unit":"U/min","value_raw":null,"value_localized":null,"key_localized":"Schleuderdrehzahl"},"dryingStep":{"value_raw":null,"value_localized":"","key_localized":"Trockenstufe"},"ventilationStep":{"value_raw":null,"value_localized":"","key_localized":"Lüfterstufe"},"plateStep":[],"ecoFeedback":null,"batteryLevel":null}}] 2021-04-16 18:45:28.436 - debug: mielecloudservice.0 (15804) This is a Kühl-Gefrierkombination 2021-04-16 18:45:28.439 - debug: mielecloudservice.0 (15804) _knownDevices={"007116614756":{"deviceFolder":"Fridge/Freezer_Combination","name":"Fridge/Freezer combinations reported by Miele@Home API","icon":"icons/21_fridgefreezer.svg","fridgeZone":1,"freezerZone":2,"API_Id":"007116614756"}} 2021-04-16 18:45:28.441 - debug: mielecloudservice.0 (15804) addMieleDevice: NewPath = [Fridge/Freezer_Combination.007116614756] 2021-04-16 18:45:28.444 - debug: mielecloudservice.0 (15804) addMieleDevice:ident 2021-04-16 18:45:28.445 - debug: mielecloudservice.0 (15804) addMieleDeviceIdent: Path = [Fridge/Freezer_Combination.007116614756.IDENT] 2021-04-16 18:45:28.448 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.ComModFirmware] Value[02.72] 2021-04-16 18:45:28.449 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.ComModTechType] Value[EK044W] 2021-04-16 18:45:28.449 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.DeviceSerial] Value[007116614756] 2021-04-16 18:45:28.450 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.DeviceTechType] Value[KFN 37452 iDE] 2021-04-16 18:45:28.451 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.IDENT.DeviceMatNumber] Value[09360040] 2021-04-16 18:45:28.452 - debug: mielecloudservice.0 (15804) addMieleDevice:state 2021-04-16 18:45:28.458 - debug: mielecloudservice.0 (15804) createStateDeviceMainState: Path[Fridge/Freezer_Combination.007116614756.Status], setup: [true], path: [Fridge/Freezer_Combination.007116614756.Status], value: [In Betrieb] 2021-04-16 18:45:28.459 - debug: mielecloudservice.0 (15804) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Status_raw] Value[5] Unit[] 2021-04-16 18:45:28.533 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.Status] Value[In Betrieb] 2021-04-16 18:45:28.534 - debug: mielecloudservice.0 (15804) createStateSignalFailure: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false] 2021-04-16 18:45:28.536 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.signalFailure] Value[false] 2021-04-16 18:45:28.539 - debug: mielecloudservice.0 (15804) createStateConnected: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true] 2021-04-16 18:45:28.539 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.Connected] Value[true] 2021-04-16 18:45:28.541 - debug: mielecloudservice.0 (15804) createStateSignalInUse: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true] 2021-04-16 18:45:28.541 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInUse] Value[true] 2021-04-16 18:45:28.543 - debug: mielecloudservice.0 (15804) createStateActionsInformation: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [] 2021-04-16 18:45:28.544 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.ACTIONS.Action_Information] Value[] 2021-04-16 18:45:28.545 - debug: mielecloudservice.0 (15804) addDeviceNicknameAction: Path:[Fridge/Freezer_Combination.007116614756], mieleDevice:[{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumber":"007116614756","fabIndex":"33","techType":"KFN 37452 iDE","matNumber":"09360040","swids":["3600","0"]},"xkmIdentLabel":{"techType":"EK044W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":0,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":5,"value_localized":"In Betrieb","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":0,"value_localized":"","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"}],"temperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":false},"ambientLight":2,"light":null,"elapsedTime":[],"spinningSpeed":{"unit":"U/min","value_raw":null,"value_localized":null,"key_localized":"Schleuderdrehzahl"},"dryingStep":{"value_raw":null,"value_localized":"","key_localized":"Trockenstufe"},"ventilationStep":{"value_raw":null,"value_localized":"","key_localized":"Lüfterstufe"},"plateStep":[],"ecoFeedback":null,"batteryLevel":null}}] 2021-04-16 18:45:28.546 - debug: mielecloudservice.0 (15804) APISendRequest: Awaiting requested data. 2021-04-16 18:45:28.547 - debug: mielecloudservice.0 (15804) axios options: [{"headers":{"Authorization":"Bearer DE_50094561b876e76af7686e5fd4fbce95","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions"}] 2021-04-16 18:45:28.734 - debug: mielecloudservice.0 (15804) API returned Status: [200] 2021-04-16 18:45:28.736 - debug: mielecloudservice.0 (15804) API returned Information: [undefined] 2021-04-16 18:45:28.738 - debug: mielecloudservice.0 (15804) verifiedData: [undefined] 2021-04-16 18:45:28.759 - debug: mielecloudservice.0 (15804) CurrentlyPermittedActions: {"processAction":[4,6],"light":[],"ambientLight":[1],"startTime":[],"ventilationStep":[],"programId":[],"targetTemperature":[{"zone":1,"min":1,"max":9},{"zone":2,"min":-26,"max":-16}],"deviceName":true,"powerOn":false,"powerOff":false,"colors":[],"modes":[]} 2021-04-16 18:45:28.760 - debug: mielecloudservice.0 (15804) createStateSignalInfo: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false] 2021-04-16 18:45:28.761 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInfo] Value[false] 2021-04-16 18:45:28.762 - debug: mielecloudservice.0 (15804) createStateSignalDoor: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false] 2021-04-16 18:45:28.763 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.signalDoor] Value[false] 2021-04-16 18:45:28.764 - debug: mielecloudservice.0 (15804) createStateFullRemoteControl: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [true] 2021-04-16 18:45:28.764 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.fullRemoteControl] Value[true] 2021-04-16 18:45:28.765 - debug: mielecloudservice.0 (15804) createStateSmartGrid: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false] 2021-04-16 18:45:28.766 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.smartGrid] Value[false] 2021-04-16 18:45:28.775 - debug: mielecloudservice.0 (15804) createStateMobileStart: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [false] 2021-04-16 18:45:28.776 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.mobileStart] Value[false] 2021-04-16 18:45:28.777 - debug: mielecloudservice.0 (15804) createStateTemperature: Path[Fridge/Freezer_Combination.007116614756], setup: [true], path: [Fridge/Freezer_Combination.007116614756], value: [[object Object],[object Object],[object Object]] 2021-04-16 18:45:28.785 - debug: mielecloudservice.0 (15804) createArray: Path[Fridge/Freezer_Combination.007116614756.Temperature], setup: [true], path: [Fridge/Freezer_Combination.007116614756.Temperature], value: [[object Object],[object Object],[object Object]] 2021-04-16 18:45:28.786 - debug: mielecloudservice.0 (15804) Number of Items in Array: [3] 2021-04-16 18:45:28.786 - debug: mielecloudservice.0 (15804) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_0] 2021-04-16 18:45:28.787 - debug: mielecloudservice.0 (15804) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}]] 2021-04-16 18:45:28.788 - debug: mielecloudservice.0 (15804) createArray: OrgUnit: [Celsius] 2021-04-16 18:45:28.788 - debug: mielecloudservice.0 (15804) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_0] Value[4] Unit[Celsius] 2021-04-16 18:45:28.789 - debug: mielecloudservice.0 (15804) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_1] 2021-04-16 18:45:28.789 - debug: mielecloudservice.0 (15804) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}]] 2021-04-16 18:45:28.790 - debug: mielecloudservice.0 (15804) createArray: OrgUnit: [Celsius] 2021-04-16 18:45:28.813 - debug: mielecloudservice.0 (15804) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_1] Value[-18] Unit[Celsius] 2021-04-16 18:45:28.827 - debug: mielecloudservice.0 (15804) createArray: Path:[Fridge/Freezer_Combination.007116614756.Temperature_2] 2021-04-16 18:45:28.828 - debug: mielecloudservice.0 (15804) createArray: value:[[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}]] 2021-04-16 18:45:28.828 - debug: mielecloudservice.0 (15804) createArray: OrgUnit: [Celsius] 2021-04-16 18:45:28.829 - debug: mielecloudservice.0 (15804) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Temperature_2] Value[null] Unit[Celsius] 2021-04-16 18:45:28.829 - debug: mielecloudservice.0 (15804) [createNumber]: invalid value detected. Skipping... 2021-04-16 18:45:28.831 - debug: mielecloudservice.0 (15804) createStateTargetTemperatureFridge: Path[Fridge/Freezer_Combination.007116614756], setup: [true], min: [1], max: [9], value: [{}] 2021-04-16 18:45:28.832 - debug: mielecloudservice.0 (15804) createStateTargetTemperatureFreezer: Path[Fridge/Freezer_Combination.007116614756], setup: [true], min: [-26], max: [-16], value: [{}] 2021-04-16 18:45:28.833 - debug: mielecloudservice.0 (15804) addSuperCoolingSwitch: Path[Fridge/Freezer_Combination.007116614756] 2021-04-16 18:45:28.834 - debug: mielecloudservice.0 (15804) addSuperFreezingSwitch: Path[Fridge/Freezer_Combination.007116614756] 2021-04-16 18:45:28.851 - info: mielecloudservice.0 (15804) Starting poll timer with a [1] Minute(s) interval. 2021-04-16 18:45:28.891 - debug: mielecloudservice.0 (15804) Updating device states (polling API scheduled). 2021-04-16 18:45:28.895 - debug: mielecloudservice.0 (15804) refreshMieleData: get data from API 2021-04-16 18:45:28.895 - debug: mielecloudservice.0 (15804) APISendRequest: Awaiting requested data. 2021-04-16 18:45:28.896 - debug: mielecloudservice.0 (15804) axios options: [{"headers":{"Authorization":"Bearer DE_50094561b876e76af7686e5fd4fbce95","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/?language=de"}] 2021-04-16 18:45:29.020 - error: mielecloudservice.0 (15804) 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(). 2021-04-16 18:45:29.021 - error: mielecloudservice.0 (15804) unhandled promise rejection: The state contains no properties! At least one property is expected! 2021-04-16 18:45:29.025 - error: mielecloudservice.0 (15804) Error: The state contains no properties! At least one property is expected! at Immediate.mieleTools.createExtendObject (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-Tools.js:1383:25) 2021-04-16 18:45:29.026 - error: mielecloudservice.0 (15804) The state contains no properties! At least one property is expected! 2021-04-16 18:45:29.080 - info: mielecloudservice.0 (15804) Clearing Timeout: _pollTimeout 2021-04-16 18:45:29.100 - debug: mielecloudservice.0 (15804) [APILogOff]: Invalidating: tokenType: [refresh_token]/(DE_3f7cedb7d85a6ca692d6dd9db5223e92) 2021-04-16 18:45:29.111 - debug: mielecloudservice.0 (15804) APISendRequest: Awaiting requested data. 2021-04-16 18:45:29.111 - debug: mielecloudservice.0 (15804) axios options: [{"headers":{"Authorization":"Bearer DE_50094561b876e76af7686e5fd4fbce95","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_3f7cedb7d85a6ca692d6dd9db5223e92","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/thirdparty/logout/"}] 2021-04-16 18:45:29.176 - debug: mielecloudservice.0 (15804) API returned Status: [200] 2021-04-16 18:45:29.177 - debug: mielecloudservice.0 (15804) API returned Information: [undefined] 2021-04-16 18:45:29.178 - debug: mielecloudservice.0 (15804) verifiedData: [undefined] 2021-04-16 18:45:29.179 - debug: mielecloudservice.0 (15804) refreshMieleData: handover all devices data to splitMieleDevices 2021-04-16 18:45:29.180 - debug: mielecloudservice.0 (15804) refreshMieleData: data [{"007116614756":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumber":"007116614756","fabIndex":"33","techType":"KFN 37452 iDE","matNumber":"09360040","swids":["3600","0"]},"xkmIdentLabel":{"techType":"EK044W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":0,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":5,"value_localized":"In Betrieb","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":0,"value_localized":"","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"}],"temperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":false},"ambientLight":2,"light":null,"elapsedTime":[],"spinningSpeed":{"unit":"U/min","value_raw":null,"value_localized":null,"key_localized":"Schleuderdrehzahl"},"dryingStep":{"value_raw":null,"value_localized":"","key_localized":"Trockenstufe"},"ventilationStep":{"value_raw":null,"value_localized":"","key_localized":"Lüfterstufe"},"plateStep":[],"ecoFeedback":null,"batteryLevel":null}}}] 2021-04-16 18:45:29.180 - debug: mielecloudservice.0 (15804) [splitMieleDevices] Splitting JSON to single devices. 2021-04-16 18:45:29.181 - debug: mielecloudservice.0 (15804) splitMieleDevices: 007116614756: [007116614756] *** Value: [{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumber":"007116614756","fabIndex":"33","techType":"KFN 37452 iDE","matNumber":"09360040","swids":["3600","0"]},"xkmIdentLabel":{"techType":"EK044W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":0,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":5,"value_localized":"In Betrieb","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":0,"value_localized":"","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"}],"temperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":false},"ambientLight":2,"light":null,"elapsedTime":[],"spinningSpeed":{"unit":"U/min","value_raw":null,"value_localized":null,"key_localized":"Schleuderdrehzahl"},"dryingStep":{"value_raw":null,"value_localized":"","key_localized":"Trockenstufe"},"ventilationStep":{"value_raw":null,"value_localized":"","key_localized":"Lüfterstufe"},"plateStep":[],"ecoFeedback":null,"batteryLevel":null}}] 2021-04-16 18:45:29.182 - debug: mielecloudservice.0 (15804) This is a Kühl-Gefrierkombination 2021-04-16 18:45:29.182 - debug: mielecloudservice.0 (15804) addMieleDevice: NewPath = [Fridge/Freezer_Combination.007116614756] 2021-04-16 18:45:29.184 - debug: mielecloudservice.0 (15804) addMieleDevice:ident 2021-04-16 18:45:29.184 - debug: mielecloudservice.0 (15804) addMieleDevice:state 2021-04-16 18:45:29.185 - debug: mielecloudservice.0 (15804) createStateDeviceMainState: Path[Fridge/Freezer_Combination.007116614756.Status], setup: [false], path: [Fridge/Freezer_Combination.007116614756.Status], value: [In Betrieb] 2021-04-16 18:45:29.185 - debug: mielecloudservice.0 (15804) [createNumber]: Path[Fridge/Freezer_Combination.007116614756.Status_raw] Value[5] Unit[] 2021-04-16 18:45:29.186 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.Status] Value[In Betrieb] 2021-04-16 18:45:29.187 - debug: mielecloudservice.0 (15804) createStateSignalFailure: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [false] 2021-04-16 18:45:29.188 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.signalFailure] Value[false] 2021-04-16 18:45:29.189 - debug: mielecloudservice.0 (15804) createStateConnected: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [true] 2021-04-16 18:45:29.189 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.Connected] Value[true] 2021-04-16 18:45:29.190 - debug: mielecloudservice.0 (15804) createStateSignalInUse: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [true] 2021-04-16 18:45:29.190 - debug: mielecloudservice.0 (15804) createBool: Path[Fridge/Freezer_Combination.007116614756.signalInUse] Value[true] 2021-04-16 18:45:29.191 - debug: mielecloudservice.0 (15804) createStateActionsInformation: Path[Fridge/Freezer_Combination.007116614756], setup: [false], path: [Fridge/Freezer_Combination.007116614756], value: [] 2021-04-16 18:45:29.192 - debug: mielecloudservice.0 (15804) createString: Path[Fridge/Freezer_Combination.007116614756.ACTIONS.Action_Information] Value[] 2021-04-16 18:45:29.192 - debug: mielecloudservice.0 (15804) addDeviceNicknameAction: Path:[Fridge/Freezer_Combination.007116614756], mieleDevice:[{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":21,"value_localized":"Kühl-Gefrierkombination"},"deviceName":"","deviceIdentLabel":{"fabNumber":"007116614756","fabIndex":"33","techType":"KFN 37452 iDE","matNumber":"09360040","swids":["3600","0"]},"xkmIdentLabel":{"techType":"EK044W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":0,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":5,"value_localized":"In Betrieb","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":0,"value_localized":"","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"}],"temperature":[{"value_raw":400,"value_localized":4,"unit":"Celsius"},{"value_raw":-1800,"value_localized":-18,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":false},"ambientLight":2,"light":null,"elapsedTime":[],"spinningSpeed":{"unit":"U/min","value_raw":null,"value_localized":null,"key_localized":"Schleuderdrehzahl"},"dryingStep":{"value_raw":null,"value_localized":"","key_localized":"Trockenstufe"},"ventilationStep":{"value_raw":null,"value_localized":"","key_localized":"Lüfterstufe"},"plateStep":[],"ecoFeedback":null,"batteryLevel":null}}] 2021-04-16 18:45:29.193 - debug: mielecloudservice.0 (15804) APISendRequest: Awaiting requested data. 2021-04-16 18:45:29.194 - debug: mielecloudservice.0 (15804) axios options: [{"headers":{"Authorization":"Bearer DE_50094561b876e76af7686e5fd4fbce95","Accept":"application/json","Content-Type":"application/json"},"method":"GET","data":"","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions"}] 2021-04-16 18:45:29.295 - debug: mielecloudservice.0 (15804) API returned Status: [204] 2021-04-16 18:45:29.296 - debug: mielecloudservice.0 (15804) API returned Information: [undefined] 2021-04-16 18:45:29.297 - debug: mielecloudservice.0 (15804) verifiedData: [OK] 2021-04-16 18:45:29.298 - debug: mielecloudservice.0 (15804) [APILogOff]: Invalidating: tokenType: [access_token]/(DE_50094561b876e76af7686e5fd4fbce95) 2021-04-16 18:45:29.299 - debug: mielecloudservice.0 (15804) APISendRequest: Awaiting requested data. 2021-04-16 18:45:29.299 - debug: mielecloudservice.0 (15804) axios options: [{"headers":{"Authorization":"Bearer DE_50094561b876e76af7686e5fd4fbce95","Accept":"application/json","Content-Type":"application/json"},"method":"POST","data":"token: DE_50094561b876e76af7686e5fd4fbce95","dataType":"json","json":true,"url":"https://api.mcs3.miele.com/thirdparty/logout/"}] 2021-04-16 18:45:29.344 - debug: mielecloudservice.0 (15804) Given parameters: 2021-04-16 18:45:29.345 - debug: mielecloudservice.0 (15804) Auth: [{"access_token":"DE_50094561b876e76af7686e5fd4fbce95","refresh_token":"DE_3f7cedb7d85a6ca692d6dd9db5223e92","token_type":"Bearer","expires_in":2592000}] 2021-04-16 18:45:29.346 - debug: mielecloudservice.0 (15804) Endpoint: [v1/devices/007116614756/actions] 2021-04-16 18:45:29.347 - debug: mielecloudservice.0 (15804) Method: [GET] 2021-04-16 18:45:29.348 - debug: mielecloudservice.0 (15804) Payload: [""] 2021-04-16 18:45:29.350 - error: mielecloudservice.0 (15804) [APISendRequest] {"message":"Request failed with status code 401","name":"Error","stack":"Error: Request failed with status code 401\n at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11)\n at IncomingMessage.emit (events.js:203:15)\n at endReadableNT (_stream_readable.js:1145:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)","config":{"url":"https://api.mcs3.miele.com/v1/devices/007116614756/actions","method":"get","data":"","headers":{"Accept":"application/json","Authorization":"Bearer DE_50094561b876e76af7686e5fd4fbce95","Content-Type":"application/json","User-Agent":"axios/0.21.1"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"dataType":"json","json":true}} | [Stack]: Error: Request failed with status code 401 2021-04-16 18:45:29.351 - error: mielecloudservice.0 (15804) Request made and server responded: 2021-04-16 18:45:29.365 - error: mielecloudservice.0 (15804) Response.status:401 2021-04-16 18:45:29.366 - error: mielecloudservice.0 (15804) Response.headers: {"date":"Fri, 16 Apr 2021 16:45:29 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","strict-transport-security":"max-age=15724800; includeSubDomains"} 2021-04-16 18:45:29.366 - error: mielecloudservice.0 (15804) Response.data: {"code":401,"message":"Unauthorized"} 2021-04-16 18:45:29.368 - error: mielecloudservice.0 (15804) 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(). 2021-04-16 18:45:29.369 - error: mielecloudservice.0 (15804) unhandled promise rejection: Unauthorized 2021-04-16 18:45:29.371 - error: mielecloudservice.0 (15804) Error: Unauthorized at APISendRequest (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-apiTools.js:350:19) 2021-04-16 18:45:29.371 - error: mielecloudservice.0 (15804) Unauthorized 2021-04-16 18:45:29.436 - debug: mielecloudservice.0 (15804) API returned Status: [204] 2021-04-16 18:45:29.437 - debug: mielecloudservice.0 (15804) API returned Information: [undefined] 2021-04-16 18:45:29.438 - debug: mielecloudservice.0 (15804) verifiedData: [OK] 2021-04-16 18:45:29.439 - info: mielecloudservice.0 (15804) Unloading MieleCloudService... 2021-04-16 18:45:29.440 - info: mielecloudservice.0 (15804) terminating 2021-04-16 18:45:29.442 - warn: mielecloudservice.0 (15804) Terminated (UNCAUGHT_EXCEPTION): Without reason 2021-04-16 18:45:30.607 - error: host.homie instance system.adapter.mielecloudservice.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2021-04-16 18:45:30.610 - info: host.homie Restart adapter system.adapter.mielecloudservice.0 because enabled 2021-04-16 18:46:00.671 - info: host.homie instance system.adapter.mielecloudservice.0 started with pid 16731 2021-04-16 18:46:03.022 - debug: mielecloudservice.0 (16731) Redis Objects: Use Redis connection: 127.0.0.1:6379 2021-04-16 18:46:03.087 - debug: mielecloudservice.0 (16731) Objects client ready ... initialize now 2021-04-16 18:46:03.092 - debug: mielecloudservice.0 (16731) Objects create System PubSub Client 2021-04-16 18:46:03.094 - debug: mielecloudservice.0 (16731) Objects create User PubSub Client 2021-04-16 18:46:03.095 - debug: mielecloudservice.0 (16731) Objects client initialize lua scripts 2021-04-16 18:46:03.159 - debug: mielecloudservice.0 (16731) Objects connected to redis: 127.0.0.1:6379 2021-04-16 18:46:03.181 - debug: mielecloudservice.0 (16731) objectDB connected 2021-04-16 18:46:03.186 - debug: mielecloudservice.0 (16731) Redis States: Use Redis connection: 127.0.0.1:6379 2021-04-16 18:46:03.227 - debug: mielecloudservice.0 (16731) States create System PubSub Client 2021-04-16 18:46:03.229 - debug: mielecloudservice.0 (16731) States create User PubSub Client 2021-04-16 18:46:03.251 - debug: mielecloudservice.0 (16731) States connected to redis: 127.0.0.1:6379 2021-04-16 18:46:03.256 - debug: mielecloudservice.0 (16731) statesDB connected

Grizzelbee commented 3 years ago

Hmmm. Ich bin etwas ratlos. Keine Ahnung was da los ist. Bist Du auch im ioBroker Forum aktiv? Dann schreib mich da bitte einmal privat an.

aski71 commented 3 years ago

Ja bin ich. Hab ich. :)