NEWS
MieleCloudService Adapter
-
Was ist denn da schon wieder los?
Hmmm. Sieht für mich nach einem Problem bei Miele aus. Warte bitte einfach ein bisschen und versuche es neu. Ggf. die Credentials mal neu eingeben, falls du von einer Version < 3.0.0 upgedated hast.
@MarkA
Danke für die Info. Da ist mir wohl ein etwas durchgegangen.Das das Licht bei der Haube jetzt funktioniert, freut mich aber schon einmal.
Und den Rest von wegen Lüftung regeln, bekommen wir auch noch hin.https://github.com/Grizzelbee/ioBroker.mielecloudservice/issues/102
-
Hallo,
ich habe mein Kochfeld mittlerweile auch an das Gateway anmelden können - es war tatsächlich der Stecker falsch aufgesteckt
Aber leider hat das keinerlei Steuerungsmöglichkeit. Auch nicht in der App.
Ich hatte ja wenigstens auf ein "Not-Aus" gehofft...Dafür leider neue Fehler, nach hinzufügen des Kochfeldes:
2021-03-24 18:29:14.890 - error: mielecloudservice.0 (64574) [APISendRequest] {"message":"Request failed with status code 404","name":"Error","stack":"Error: Request failed with status code 404\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:326:22)\n at endReadableNT (_stream_readable.js:1241:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","config":{"url":"https://api.mcs3.miele.com/v1/devices/000000000000/actions","method":"get","data":"","headers":{"Accept":"application/json","Authorization":"Bearer DE_IDHere","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,"json":true,"dataType":"json"}} | [Stack]: Error: Request failed with status code 404 2021-03-24 18:29:14.891 - error: mielecloudservice.0 (64574) Request made and server responded: 2021-03-24 18:29:14.891 - error: mielecloudservice.0 (64574) Response.status:404 2021-03-24 18:29:14.892 - error: mielecloudservice.0 (64574) Response.headers: {"date":"Wed, 24 Mar 2021 17:29:14 GMT","content-type":"application/json","content-length":"23","connection":"close","strict-transport-security":"max-age=15724800; includeSubDomains, max-age=15724800; includeSubDomains","access-control-allow-credentials":"true","access-control-allow-headers":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization","access-control-allow-methods":"PUT, GET, POST, OPTIONS","access-control-allow-origin":"*","x-environment":"mcs-eu-prod-std, mcs-eu-prod-default"} 2021-03-24 18:29:14.892 - error: mielecloudservice.0 (64574) Response.data: {"message":"Not found"}
...eine ID hat das Kochfeld leider nicht - Fabrikationsnummer 000000000000
Gruß Mark
-
@Grizzelbee Ich habe jetzt die Credentials aus dem Adapter gelöscht und neu eingegeben. Ergebnis: Credentials seem to be invalid. Dann zurück auf 2.0.3., Ergebnis: Please doublecheck your Credentials. Bei miele kann ich mich einloggen. Nun ja. Ich hab den Support angeschrieben, jetzt heißt es wohl einfach warten...
-
@MarkA : Das gucke ich mir die Tage mal genauer an. Gut möglich das ich da noch ein Debug-Log zu abfrage.
@kleine_kuh : Wenn der Login bei Miele (alle 4 credentials) funktioniert und auch die App läuft, muss auch der Adapter funktionieren. Ich muss mich leider selbst zitieren: https://forum.iobroker.net/post/600538
Ich habe in der 3.0.0 auf eine neue Verschlüsselung der Credentials umgestellt, die mindestens den js-controller 3.0.0 voraussetzt. Dadurch müssen die Credentials bei einem Update von <=2.03 auf >=3.0.0 neu eingegeben werden. Die Verschlüsselungen innerhalb von ioBroker sind nicht kompatibel. Deshalb müssen die Daten zwingend neu eingegeben werden und deshalb werden sie zur Kontrolle bei dem entsprechenden Fehler ausgeloggt.
-
@grizzelbee ok, danke erstmal. Die nächsten Tage komme ich nicht dazu. Aber ich werde es nochmal probieren.
-
Hallo,
auch ich habe nach dem Update auf die neue Version, keine Möglichkeit mich einzuloggen. Habe den gesamten Adapter gelöscht und neu installiert. Alle Daten neu eingegeben. Keine Chance. Noch schlimmer: auch wenn ich auf 2.03 downgrade, kann ich mich nicht mehr bei Miele einloggen, was gestern noch ging.Grüße...
mielecloudservice.0 2021-03-30 10:42:43.719 error (6782) Credentials used for login: mielecloudservice.0 2021-03-30 10:42:43.718 error (6782) Error: Unable to authenticate user! Your credentials seem to be invalid. Please double check and fix them. mielecloudservice.0 2021-03-30 10:42:43.717 error (6782) OAuth2 returned an error during first login! mielecloudservice.0 2021-03-30 10:42:41.271 info (6782) starting. Version 3.0.2 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v12.21.0, js-controller: 3.1.6
-
Hallo,
ok. Jetzt geht's. Musste eine neue Email bei Miele beantragen. Ging auch erst beim dritten Versuch! Scheint als hätten die da ein kleines Problem...
GRüße...
-
Habe gerade ein paar neue Fixes online gestellt:
V4.0.1 (2021-04-06) (Sign of the cross)
- (grizzelbee) Fix: 90 setting the targetTemperature should work now.
- (grizzelbee) Fix: 96 Added missing ACTIONS.Action_Information again
- (grizzelbee) Fix: 97 removed unneeded additional "VentilationStep/Lüfterstufe" in path and fixed warning with this. VentilationStep-switch should work properly now.
- (grizzelbee) Fix: 98 Color-Action has now valid type 'String'
- (grizzelbee) Fix: 102 Fixed ACTIONS.VentilationStep has no existing object
- (grizzelbee) Fix: Power switch is write protected now when in state 'None'. State 'None' means: No action permitted.
- (grizzelbee) Fix: Light switch is write protected now when in state 'None'. State 'None' means: No action permitted.
- (grizzelbee) Fix: http error 404 will be catched when requesting device actions
-
@grizzelbee ich hab mal geupdated von 3.0.2 und bekomme den Adapter nicht mehr grün (nur gelb).
Muss ich die credentials erneut eingeben? Davon steht nichts im changelog2021-04-06 21:04:43.966 - info: mielecloudservice.0 (31553) starting. Version 4.0.1 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v12.22.0, js-controller: 3.2.16 2021-04-06 21:04:44.488 - info: mielecloudservice.0 (31553) Access-Token expires at: [Thu May 06 2021 21:04:00 GMT+0200 (GMT+02:00)] 2021-04-06 21:04:44.491 - info: mielecloudservice.0 (31553) Setting up devices ... 2021-04-06 21:04:45.079 - error: mielecloudservice.0 (31553) [main] :actions is not defined, Stacktrace:ReferenceError: actions is not defined at addMieleDeviceState (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:370:70) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async addMieleDevice (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:335:17) at async parseMieleDevice (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:295:5) at async splitMieleDevices (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:273:9) at async main (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:647:13)
-
@m-a-x Jau! Gleiches Problem hier bei mir.
-
Guten Morgen,
ich habe leider auch das Problem...
2021-04-07 08:52:32.640 - info: mielecloudservice.0 (37035) starting. Version 4.0.1 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v12.21.0, js-controller: 3.2.16 2021-04-07 08:52:33.274 - info: mielecloudservice.0 (37035) Access-Token expires at: [Fri May 07 2021 08:52:00 GMT+0200 (GMT+02:00)] 2021-04-07 08:52:33.278 - info: mielecloudservice.0 (37035) Setting up devices ... 2021-04-07 08:52:34.084 - error: mielecloudservice.0 (37035) [main] :actions is not defined, Stacktrace:ReferenceError: actions is not defined at addMieleDeviceState (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:370:70) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async addMieleDevice (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:335:17) at async parseMieleDevice (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:295:5) at async splitMieleDevices (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:273:9) at async main (/opt/iobroker/node_modules/iobroker.mielecloudservice/main.js:647:13)
Die Auswahl / DropDown der Ventilationsstufe ist leider leer.
Gruß Mark
-
@sascha-löbbert , @MarkA, @M-A-X
Okay. Ich wechsel mal auf die Politik der kleinen Schritte und ändere nur noch wenig pro Release...
Ich scheine gelegentlich die Übersicht zu verlieren.
Bitte der v4.0.2 eine Chance geben. ;o)@MarkA: An die Lüfterstufe machen wir uns, wenn der Adapter wieder soweit läuft. Also hoffentlich in der V4.0.3 oder V4.0.4
-
Hallo Grizzelbee,
leider ein anderer Fehler...
2021-04-07 11:37:35.727 - info: host.iobroker "system.adapter.mielecloudservice.0" enabled 2021-04-07 11:37:36.072 - info: host.iobroker instance system.adapter.mielecloudservice.0 started with pid 21267 2021-04-07 11:37:37.575 - info: mielecloudservice.0 (21267) starting. Version 4.0.2 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v12.21.0, js-controller: 3.2.16 2021-04-07 11:37:38.056 - info: mielecloudservice.0 (21267) Access-Token expires at: [Fri May 07 2021 11:37:00 GMT+0200 (GMT+02:00)] 2021-04-07 11:37:38.059 - info: mielecloudservice.0 (21267) Setting up devices ... 2021-04-07 11:37:40.594 - error: mielecloudservice.0 (21267) [APISendRequest] {"message":"Request failed with status code 404","name":"Error","stack":"Error: Request failed with status code 404\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:326:22)\n at endReadableNT (_stream_readable.js:1241:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","config":{"url":"https://api.mcs3.miele.com/v1/devices/000000000000/actions","method":"get","data":"","headers":{"Accept":"application/json","Authorization":"Bearer DE_a7c7eb85fe2599f38c3cf46b3f31c8b4","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,"json":true,"dataType":"json"}} | [Stack]: Error: Request failed with status code 404 at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15) at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11) at IncomingMessage.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1241:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) 2021-04-07 11:37:40.595 - error: mielecloudservice.0 (21267) Request made and server responded: 2021-04-07 11:37:40.595 - error: mielecloudservice.0 (21267) Response.status:404 2021-04-07 11:37:40.596 - error: mielecloudservice.0 (21267) Response.headers: {"date":"Wed, 07 Apr 2021 09:37:40 GMT","content-type":"application/json","content-length":"23","connection":"close","strict-transport-security":"max-age=15724800; includeSubDomains, max-age=15724800; includeSubDomains","access-control-allow-credentials":"true","access-control-allow-headers":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization","access-control-allow-methods":"PUT, GET, POST, OPTIONS","access-control-allow-origin":"*","x-environment":"mcs-eu-prod-std, mcs-eu-prod-default"} 2021-04-07 11:37:40.596 - error: mielecloudservice.0 (21267) Response.data: {"message":"Not found"} 2021-04-07 11:37:40.597 - error: mielecloudservice.0 (21267) [main] :Bullshit!Not found, Stacktrace:Error: Bullshit!Not found at APISendRequest (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-apiTools.js:347:19) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5)
@MarkA: An die Lüfterstufe machen wir uns, wenn der Adapter wieder soweit läuft. Also hoffentlich in der V4.0.3 oder V4.0.4
Das ist kein Problem! -
Ich könnte ******! Im dicken Strahl!
Wie kann es sein, dass die API bei der Statusabfrage Geräte meldet und wenn man dann nach deren Fähigkeiten fragt sagt: Kenne ich nicht???Kannst Du mir bitte ein komplettes Debug-Log des Adapters vom Start bis zum Crash zur Verfügung stellen? (Log-Herunterladen!)
-
Hallo,
ich fürchte, dass hängt mit meinem Kochfeld zusammen, welches keine Seriennummer ausgibt. Wie oben weiter geschrieben auch nicht in dem Gateway oder der App.
2021-04-07 12:24:56.596 - debug: mielecloudservice.0 (26158) addMieleDevice: NewPath = [Hobs.000000000000] 2021-04-07 12:24:56.597 - debug: mielecloudservice.0 (26158) addMieleDevice:ident 2021-04-07 12:24:56.597 - debug: mielecloudservice.0 (26158) addMieleDeviceIdent: Path = [Hobs.000000000000.IDENT] 2021-04-07 12:24:56.598 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.ComModFirmware] Value[V1.30] 2021-04-07 12:24:56.598 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.ComModTechType] Value[XKS 3000 Z] 2021-04-07 12:24:56.598 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.DeviceSerial] Value[000000000000] 2021-04-07 12:24:56.599 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.DeviceTechType] Value[KM X] 2021-04-07 12:24:56.599 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.DeviceMatNumber] Value[00000000] 2021-04-07 12:24:56.599 - debug: mielecloudservice.0 (26158) addMieleDevice:state 2021-04-07 12:24:56.600 - debug: mielecloudservice.0 (26158) createStateDeviceMainState: Path[Hobs.000000000000.Status], setup: [true], path: [Hobs.000000000000.Status], value: [Aus] 2021-04-07 12:24:56.600 - debug: mielecloudservice.0 (26158) [createNumber]: Path[Hobs.000000000000.Status_raw] Value[1] Unit[] 2021-04-07 12:24:56.702 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.Status] Value[Aus] 2021-04-07 12:24:56.703 - debug: mielecloudservice.0 (26158) createStateSignalFailure: Path[Hobs.000000000000], setup: [true], path: [Hobs.000000000000], value: [false] 2021-04-07 12:24:56.704 - debug: mielecloudservice.0 (26158) createBool: Path[Hobs.000000000000.signalFailure] Value[false] 2021-04-07 12:24:56.705 - debug: mielecloudservice.0 (26158) createStateConnected: Path[Hobs.000000000000], setup: [true], path: [Hobs.000000000000], value: [true] 2021-04-07 12:24:56.705 - debug: mielecloudservice.0 (26158) createBool: Path[Hobs.000000000000.Connected] Value[true] 2021-04-07 12:24:56.706 - debug: mielecloudservice.0 (26158) createStateSignalInUse: Path[Hobs.000000000000], setup: [true], path: [Hobs.000000000000], value: [false] 2021-04-07 12:24:56.706 - debug: mielecloudservice.0 (26158) createBool: Path[Hobs.000000000000.signalInUse] Value[false] 2021-04-07 12:24:56.707 - debug: mielecloudservice.0 (26158) createStateActionsInformation: Path[Hobs.000000000000], setup: [true], path: [Hobs.000000000000], value: [] 2021-04-07 12:24:56.707 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.ACTIONS.Action_Information] Value[] 2021-04-07 12:24:56.708 - debug: mielecloudservice.0 (26158) addDeviceNicknameAction: Path:[Hobs.000000000000], mieleDevice:[{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":27,"value_localized":"Kochfeld"},"deviceName":"","deviceIdentLabel":{"fabNumber":"000000000000","fabIndex":"00","techType":"KM X","matNumber":"00000000","swids":["12869","0"]},"xkmIdentLabel":{"techType":"XKS 3000 Z","releaseVersion":"V1.30"}},"state":{"ProgramID":{"value_raw":2600468480,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":1,"value_localized":"Aus","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":[],"temperature":[],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":false,"smartGrid":false,"mobileStart":false},"ambientLight":null,"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":[{"value_raw":0,"value_localized":"0","key_localized":"Leistungsstufe"},{"value_raw":0,"value_localized":"0","key_localized":"Leistungsstufe"}],"ecoFeedback":null,"batteryLevel":null}}] 2021-04-07 12:24:56.709 - debug: mielecloudservice.0 (26158) APISendRequest: Awaiting requested data. 2021-04-07 12:24:57.004 - debug: mielecloudservice.0 (26158) Given parameters: 2021-04-07 12:24:57.005 - debug: mielecloudservice.0 (26158) Auth: [{"access_token":"DE_888854539921b0fa76130f94a693c63f","refresh_token":"DE_6ac5e0f47f8d421e508dc166c1c20227","token_type":"Bearer","expires_in":2592000}] 2021-04-07 12:24:57.005 - debug: mielecloudservice.0 (26158) Endpoint: [v1/devices/000000000000/actions] 2021-04-07 12:24:57.006 - debug: mielecloudservice.0 (26158) Method: [GET] 2021-04-07 12:24:57.006 - debug: mielecloudservice.0 (26158) Payload: [""] 2021-04-07 12:24:57.008 - error: mielecloudservice.0 (26158) [APISendRequest] {"message":"Request failed with status code 404","name":"Error","stack":"Error: Request failed with status code 404\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:326:22)\n at endReadableNT (_stream_readable.js:1241:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","config":{"url":"https://api.mcs3.miele.com/v1/devices/000000000000/actions","method":"get","data":"","headers":{"Accept":"application/json","Authorization":"Bearer DE_888854539921b0fa76130f94a693c63f","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,"json":true,"dataType":"json"}} | [Stack]: Error: Request failed with status code 404 at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15) at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11) at IncomingMessage.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1241:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) 2021-04-07 12:24:57.008 - error: mielecloudservice.0 (26158) Request made and server responded: 2021-04-07 12:24:57.009 - error: mielecloudservice.0 (26158) Response.status:404 2021-04-07 12:24:57.009 - error: mielecloudservice.0 (26158) Response.headers: {"date":"Wed, 07 Apr 2021 10:24:56 GMT","content-type":"application/json","content-length":"23","connection":"close","strict-transport-security":"max-age=15724800; includeSubDomains, max-age=15724800; includeSubDomains","access-control-allow-credentials":"true","access-control-allow-headers":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization","access-control-allow-methods":"PUT, GET, POST, OPTIONS","access-control-allow-origin":"*","x-environment":"mcs-eu-prod-std, mcs-eu-prod-default"} 2021-04-07 12:24:57.010 - error: mielecloudservice.0 (26158) Response.data: {"message":"Not found"} 2021-04-07 12:24:57.010 - error: mielecloudservice.0 (26158) [main] :Bullshit!Not found, Stacktrace:Error: Bullshit!Not found at APISendRequest (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-apiTools.js:347:19) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5)
Reicht das soweit?
Gruß Mark
-
@marka said in MieleCloudService Adapter:
Hallo,
ich fürchte, dass hängt mit meinem Kochfeld zusammen, welches keine Seriennummer ausgibt. Wie oben weiter geschrieben auch nicht in dem Gateway oder der App.
2021-04-07 12:24:56.596 - debug: mielecloudservice.0 (26158) addMieleDevice: NewPath = [Hobs.000000000000] 2021-04-07 12:24:56.597 - debug: mielecloudservice.0 (26158) addMieleDevice:ident 2021-04-07 12:24:56.597 - debug: mielecloudservice.0 (26158) addMieleDeviceIdent: Path = [Hobs.000000000000.IDENT] 2021-04-07 12:24:56.598 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.ComModFirmware] Value[V1.30] 2021-04-07 12:24:56.598 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.ComModTechType] Value[XKS 3000 Z] 2021-04-07 12:24:56.598 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.DeviceSerial] Value[000000000000] 2021-04-07 12:24:56.599 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.DeviceTechType] Value[KM X] 2021-04-07 12:24:56.599 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.IDENT.DeviceMatNumber] Value[00000000] 2021-04-07 12:24:56.599 - debug: mielecloudservice.0 (26158) addMieleDevice:state 2021-04-07 12:24:56.600 - debug: mielecloudservice.0 (26158) createStateDeviceMainState: Path[Hobs.000000000000.Status], setup: [true], path: [Hobs.000000000000.Status], value: [Aus] 2021-04-07 12:24:56.600 - debug: mielecloudservice.0 (26158) [createNumber]: Path[Hobs.000000000000.Status_raw] Value[1] Unit[] 2021-04-07 12:24:56.702 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.Status] Value[Aus] 2021-04-07 12:24:56.703 - debug: mielecloudservice.0 (26158) createStateSignalFailure: Path[Hobs.000000000000], setup: [true], path: [Hobs.000000000000], value: [false] 2021-04-07 12:24:56.704 - debug: mielecloudservice.0 (26158) createBool: Path[Hobs.000000000000.signalFailure] Value[false] 2021-04-07 12:24:56.705 - debug: mielecloudservice.0 (26158) createStateConnected: Path[Hobs.000000000000], setup: [true], path: [Hobs.000000000000], value: [true] 2021-04-07 12:24:56.705 - debug: mielecloudservice.0 (26158) createBool: Path[Hobs.000000000000.Connected] Value[true] 2021-04-07 12:24:56.706 - debug: mielecloudservice.0 (26158) createStateSignalInUse: Path[Hobs.000000000000], setup: [true], path: [Hobs.000000000000], value: [false] 2021-04-07 12:24:56.706 - debug: mielecloudservice.0 (26158) createBool: Path[Hobs.000000000000.signalInUse] Value[false] 2021-04-07 12:24:56.707 - debug: mielecloudservice.0 (26158) createStateActionsInformation: Path[Hobs.000000000000], setup: [true], path: [Hobs.000000000000], value: [] 2021-04-07 12:24:56.707 - debug: mielecloudservice.0 (26158) createString: Path[Hobs.000000000000.ACTIONS.Action_Information] Value[] 2021-04-07 12:24:56.708 - debug: mielecloudservice.0 (26158) addDeviceNicknameAction: Path:[Hobs.000000000000], mieleDevice:[{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":27,"value_localized":"Kochfeld"},"deviceName":"","deviceIdentLabel":{"fabNumber":"000000000000","fabIndex":"00","techType":"KM X","matNumber":"00000000","swids":["12869","0"]},"xkmIdentLabel":{"techType":"XKS 3000 Z","releaseVersion":"V1.30"}},"state":{"ProgramID":{"value_raw":2600468480,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":1,"value_localized":"Aus","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":[],"temperature":[],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":false,"smartGrid":false,"mobileStart":false},"ambientLight":null,"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":[{"value_raw":0,"value_localized":"0","key_localized":"Leistungsstufe"},{"value_raw":0,"value_localized":"0","key_localized":"Leistungsstufe"}],"ecoFeedback":null,"batteryLevel":null}}] 2021-04-07 12:24:56.709 - debug: mielecloudservice.0 (26158) APISendRequest: Awaiting requested data. 2021-04-07 12:24:57.004 - debug: mielecloudservice.0 (26158) Given parameters: 2021-04-07 12:24:57.005 - debug: mielecloudservice.0 (26158) Auth: [{"access_token":"DE_888854539921b0fa76130f94a693c63f","refresh_token":"DE_6ac5e0f47f8d421e508dc166c1c20227","token_type":"Bearer","expires_in":2592000}] 2021-04-07 12:24:57.005 - debug: mielecloudservice.0 (26158) Endpoint: [v1/devices/000000000000/actions] 2021-04-07 12:24:57.006 - debug: mielecloudservice.0 (26158) Method: [GET] 2021-04-07 12:24:57.006 - debug: mielecloudservice.0 (26158) Payload: [""] 2021-04-07 12:24:57.008 - error: mielecloudservice.0 (26158) [APISendRequest] {"message":"Request failed with status code 404","name":"Error","stack":"Error: Request failed with status code 404\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:326:22)\n at endReadableNT (_stream_readable.js:1241:12)\n at processTicksAndRejections (internal/process/task_queues.js:84:21)","config":{"url":"https://api.mcs3.miele.com/v1/devices/000000000000/actions","method":"get","data":"","headers":{"Accept":"application/json","Authorization":"Bearer DE_888854539921b0fa76130f94a693c63f","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,"json":true,"dataType":"json"}} | [Stack]: Error: Request failed with status code 404 at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15) at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11) at IncomingMessage.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1241:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) 2021-04-07 12:24:57.008 - error: mielecloudservice.0 (26158) Request made and server responded: 2021-04-07 12:24:57.009 - error: mielecloudservice.0 (26158) Response.status:404 2021-04-07 12:24:57.009 - error: mielecloudservice.0 (26158) Response.headers: {"date":"Wed, 07 Apr 2021 10:24:56 GMT","content-type":"application/json","content-length":"23","connection":"close","strict-transport-security":"max-age=15724800; includeSubDomains, max-age=15724800; includeSubDomains","access-control-allow-credentials":"true","access-control-allow-headers":"DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization","access-control-allow-methods":"PUT, GET, POST, OPTIONS","access-control-allow-origin":"*","x-environment":"mcs-eu-prod-std, mcs-eu-prod-default"} 2021-04-07 12:24:57.010 - error: mielecloudservice.0 (26158) Response.data: {"message":"Not found"} 2021-04-07 12:24:57.010 - error: mielecloudservice.0 (26158) [main] :Bullshit!Not found, Stacktrace:Error: Bullshit!Not found at APISendRequest (/opt/iobroker/node_modules/iobroker.mielecloudservice/miele-apiTools.js:347:19) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5)
Reicht das soweit?
Gruß Mark
Nachtrag:
Das Kochfeld hat natürlich eine Fabrikationsnummer, die wird nur offensichtlich nicht von dem Kommunikationsmodul erkannt. Kann man die ggfls. in einem Datenpunkt manuell setzen? -
@marka sagte in MieleCloudService Adapter:
Reicht das soweit?
Leider nicht.
Bei Start des Adapters logge ich ein großes JSON raus, das die Antwort von Miele auf die Frage nach dem Status aller Geräte enthält.
Beispiel:
2021-03-19 11:22:04.887 - info: mielecloudservice.0 (3953) starting. Version 4.0.0 in /opt/iobroker/node_modules/iobroker.mielecloudservice, node: v12.20.2, js-controller: 3.2.16 2021-03-19 11:22:04.912 - debug: mielecloudservice.0 (3953) function APIGetAccessToken 2021-03-19 11:22:04.914 - debug: mielecloudservice.0 (3953) Awaiting OAuth2 Token. 2021-03-19 11:22:04.915 - debug: mielecloudservice.0 (3953) OAuth2 grant_type: [password] 2021-03-19 11:22:04.915 - debug: mielecloudservice.0 (3953) options OAuth2-VG: [de-DE] 2021-03-19 11:22:04.915 - debug: mielecloudservice.0 (3953) config API Language: [de] 2021-03-19 11:22:05.256 - info: mielecloudservice.0 (3953) Access-Token expires at: [Sun Apr 18 2021 11:22:00 GMT+0200 (GMT+02:00)] 2021-03-19 11:22:05.257 - info: mielecloudservice.0 (3953) Setting up devices ... 2021-03-19 11:22:05.257 - debug: mielecloudservice.0 (3953) refreshMieleData: get data from API 2021-03-19 11:22:05.258 - debug: mielecloudservice.0 (3953) APISendRequest: Awaiting requested data. 2021-03-19 11:22:05.481 - debug: mielecloudservice.0 (3953) API returned Status: [200] 2021-03-19 11:22:05.481 - debug: mielecloudservice.0 (3953) refreshMieleData: handover all devices data to splitMieleDevices 2021-03-19 11:22:05.482 - debug: mielecloudservice.0 (3953) refreshMieleData: data [ HIER STEHT DAS gesuchte JSON DRIN ] 2021-03-19 11:22:05.482 - debug: mielecloudservice.0 (3953) [splitMieleDevices] Splitting JSON to single devices.
Mir ging es darum dieses JSON zu sehen weil dort zum einen die ID steht über die ich das Gerät ansprechen kann und zum anderen die FabNummer. Im Beispiel die "000703167977". Hier sind sie identisch - die können aber auch abweichen. Und ich vermute das das hier der Fall ist.
refreshMieleData: data [{"000703167977":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":17,"value_localized":"Kaffeevollautomat"},"deviceName":"","deviceIdentLabel":{"fabNumber":"000703167977","fabIndex":"15"
Nachtrag:
Das Kochfeld hat natürlich eine Fabrikationsnummer, die wird nur offensichtlich nicht von dem Kommunikationsmodul erkannt. Kann man die ggfls. in einem Datenpunkt manuell setzen?Die Nummer manuell zu setzen würde leider nichts nützen - zumal die bei jedem Datenupdate überschrieben würde. Ich sehe erst einmal zu, dass ich die ID korrekt verwende. Ich vermute aktuell dort einen Bug.
https://github.com/Grizzelbee/ioBroker.mielecloudservice/issues/109
-
Hier mehr vom Log:
2021-04-07 12:24:51.891 - debug: mielecloudservice.0 (26158) refreshMieleData: handover all devices data to splitMieleDevices 2021-04-07 12:24:51.892 - debug: mielecloudservice.0 (26158) refreshMieleData: data [{"000147896692":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":1,"value_localized":"Waschmaschine"},"deviceName":"Waschmaschine","deviceIdentLabel":{"fabNumber":"000147896692","fabIndex":"14","techType":"WMG823","matNumber":"10499030","swids":["3918","25204","25117","20163","3913","20199","25017","25036","2632","2971","20166"]},"xkmIdentLabel":{"techType":"XKM3100W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":3,"value_localized":"Pflegeleicht","key_localized":"Programmbezeichnung"},"status":{"value_raw":1,"value_localized":"Aus","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":256,"value_localized":"","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"temperature":[{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":false},"ambientLight":null,"light":null,"elapsedTime":[0,0],"spinningSpeed":{"unit":"U/min","value_raw":1100,"value_localized":"1100","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}},"000139847422":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":2,"value_localized":"Trockner"},"deviceName":"","deviceIdentLabel":{"fabNumber":"000139847422","fabIndex":"11","techType":"TMM843WP","matNumber":"10499110","swids":["3545","25027","25055","20228","3493","20199","25017","25026","3493","20199","25017","25026"]},"xkmIdentLabel":{"techType":"XKM3100W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":20,"value_localized":"Baumwolle","key_localized":"Programmbezeichnung"},"status":{"value_raw":1,"value_localized":"Aus","key_localized":"Status"},"programType":{"value_raw":2,"value_localized":"Automatikprogramm","key_localized":"Programmart"},"programPhase":{"value_raw":522,"value_localized":"Ende","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"temperature":[{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":false,"smartGrid":false,"mobileStart":false},"ambientLight":null,"light":null,"elapsedTime":[0,0],"spinningSpeed":{"unit":"U/min","value_raw":null,"value_localized":null,"key_localized":"Schleuderdrehzahl"},"dryingStep":{"value_raw":1,"value_localized":"Schranktrocken plus","key_localized":"Trockenstufe"},"ventilationStep":{"value_raw":null,"value_localized":"","key_localized":"Lüfterstufe"},"plateStep":[],"ecoFeedback":null,"batteryLevel":null}},"mac-00124B000E881998":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":18,"value_localized":"Dunstabzugshaube"},"deviceName":"","deviceIdentLabel":{"fabNumber":"","fabIndex":"","techType":"","matNumber":"","swids":[]},"xkmIdentLabel":{"techType":"","releaseVersion":""}},"state":{"ProgramID":{"value_raw":2449473536,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":1,"value_localized":"Aus","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":271,"value_localized":"Auffrischen + Befeuchten","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[],"temperature":[],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":false,"smartGrid":false,"mobileStart":false},"ambientLight":null,"light":2,"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":0,"value_localized":"","key_localized":"Lüfterstufe"},"plateStep":[],"ecoFeedback":null,"batteryLevel":null}},"mac-00124B000E0C6D06":{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":27,"value_localized":"Kochfeld"},"deviceName":"","deviceIdentLabel":{"fabNumber":"000000000000","fabIndex":"00","techType":"KM X","matNumber":"00000000","swids":["12869","0"]},"xkmIdentLabel":{"techType":"XKS 3000 Z","releaseVersion":"V1.30"}},"state":{"ProgramID":{"value_raw":2600468480,"value_localized":"","key_localized":"Programmbezeichnung"},"status":{"value_raw":1,"value_localized":"Aus","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":[],"temperature":[],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":false,"smartGrid":false,"mobileStart":false},"ambientLight":null,"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":[{"value_raw":0,"value_localized":"0","key_localized":"Leistungsstufe"},{"value_raw":0,"value_localized":"0","key_localized":"Leistungsstufe"}],"ecoFeedback":null,"batteryLevel":null}}}] 2021-04-07 12:24:51.893 - debug: mielecloudservice.0 (26158) [splitMieleDevices] Splitting JSON to single devices. 2021-04-07 12:24:51.894 - debug: mielecloudservice.0 (26158) splitMieleDevices: 000147896692: [000147896692] *** Value: [{"ident":{"type":{"key_localized":"Gerätetyp","value_raw":1,"value_localized":"Waschmaschine"},"deviceName":"Waschmaschine","deviceIdentLabel":{"fabNumber":"000147896692","fabIndex":"14","techType":"WMG823","matNumber":"10499030","swids":["3918","25204","25117","20163","3913","20199","25017","25036","2632","2971","20166"]},"xkmIdentLabel":{"techType":"XKM3100W","releaseVersion":"02.72"}},"state":{"ProgramID":{"value_raw":3,"value_localized":"Pflegeleicht","key_localized":"Programmbezeichnung"},"status":{"value_raw":1,"value_localized":"Aus","key_localized":"Status"},"programType":{"value_raw":0,"value_localized":"Programm","key_localized":"Programmart"},"programPhase":{"value_raw":256,"value_localized":"","key_localized":"Programmphase"},"remainingTime":[0,0],"startTime":[0,0],"targetTemperature":[{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"temperature":[{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":false},"ambientLight":null,"light":null,"elapsedTime":[0,0],"spinningSpeed":{"unit":"U/min","value_raw":1100,"value_localized":"1100","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}}]
Gruß Mark
-
@marka
Perfekt! Danke schön!Und da haben wir das Problem auch direkt (wie befürchtet) gefunden:
Ich frage die Fähigkeiten über die fabNummer (weil üblicherweise identisch mit der ID) ab, müsste aber halt die ID (mac-...) nehmen.
Dann mache ich mich mal an einen Fix ...
-
V4.0.3 (2021-04-07) (The raven child)
- (grizzelbee) Fix: 109 fixes 404 error when querying possible actions for device.
- (grizzelbee) Fix: fixes errors when executing actions on devices with API-Id!=fabNumber