marc2016 / ioBroker.panasonic-comfort-cloud

Adapter to control devices in the Panasonic Comfort Cloud. It uses REST calls which are extracetd from the official Comfort Cloud app. To use the a adpter you need to enter your username and password in the configuration. They are used to authenticate access to the Comfort Cloud. Information of all devices is automatically retrieved and inserted as an object. The adpter polls the device information cyclically (see interval in the settings) and sends commands directly to the cloud.
MIT License
22 stars 4 forks source link

Adapter verbindet sich seit heute nicht mehr #59

Closed pioneer01 closed 3 months ago

pioneer01 commented 3 months ago

Seit heute verbindet sich der Adapter nicht mehr und im Protokoll findet man folgende Einträge: Service error: Request failed with status code 403undefined. Code=undefined. Stack: ServiceError: Request failed with status code 403undefined at new ServiceError (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/model/ServiceError.js:23:28) at ComfortCloudClient.handleError (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:193:31) at ComfortCloudClient.<anonymous> (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:107:30) at step (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:33:23) at Object.throw (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:14:53) at rejected (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:6:65) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Die Verbindung ist auch mit diesem Tool (https://github.com/lostfields/python-panasonic-comfort-cloud/tree/master) nicht mehr möglich. Ich denke, dass es ein Update an der API gab, da heute Morgen die offizielle Panasonic App ebenso aufgrund von Wartungsarbeiten kurz nicht funktionierte.

tomba0815 commented 3 months ago

Bei mir die identische Meldung, Adapter verbindet sich auch nicht mehr

role79 commented 3 months ago

Bei mir genau so. Meldung analog Ausgangspost.

marc2016 commented 3 months ago

https://github.com/lostfields/python-panasonic-comfort-cloud/issues/93

ManuelBu96 commented 3 months ago

lostfields/python-panasonic-comfort-cloud#93

Ist der Plan die Änderungen auch in diesen Adapter einfließen zu lassen oder eher nicht?

Edit: Gerade gesehen das du schon dabei bist daran zu arbeiten ;)

marc2016 commented 3 months ago

Auf jeden Fall 👍🏻 Die Anpassung in dem anderen Repository sehen schon sehr gut aus und ich hoffe dieses Wochenende weit komme. Nutze den Adpater auch selbst und will, dass er wieder läuft.

poeoe79 commented 3 months ago

Danke Marc!

marcoschmidt79 commented 3 months ago

Im der Homekit-Adapter geht schon wieder.

t1m02k16 commented 3 months ago

Bei mir ebenfalls wieder down :(

`

Service error: Request failed with status code 400Missing required header parameter or bad request for header. Code=4000. Stack: ServiceError: Request failed with status code 400Missing required header parameter or bad request for header at new ServiceError (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/model/ServiceError.js:23:28) at ComfortCloudClient.handleError (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:193:31) at ComfortCloudClient. (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:228:30) at step (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:33:23) at Object.throw (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:14:53) at rejected (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:6:65) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) --

`

t1m02k16 commented 3 months ago

@marc2016 wann können wir mit einem FIX Rechnen? Mir ist warm :D

mtb-z commented 3 months ago

Vielen Dank, Marc, dass du dich der Sache annimmst!

tomba0815 commented 3 months ago

Ebenso von mir vielen Dank, wenn das dann wieder funktioniert warte ich gern noch einige Tage !!!

marc2016 commented 3 months ago

@marc2016 wann können wir mit einem FIX Rechnen? Mir ist warm :D

😅 ich arbeite bereits an der Lösung und hoffe, dass ich am Wochenende fertig bin. Andere Projekte haben bereits die Lösung implementiert und ich kann mir den Workflow dort anschauen.

marc2016 commented 3 months ago

Mit der Version 3.0.0 funktioniert es wieder bei mir. Ich bitte um weitere Tests. App Version habe ich auf 1.21.0 aktualisiert. Falls das nicht automatisch geht, dann bitte manuell eintragen. https://github.com/marc2016/ioBroker.panasonic-comfort-cloud/releases/tag/v3.0.0

MarkX81 commented 3 months ago

Danke für deine Mühe. Ich habs gerade getestet, aber erhalte diesen Fehler:

Unknown error: Error: code is null.. Stack: Error: code is null. at OAuthClient.oAuthProcess (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/OAuthClient.js:65:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ComfortCloudClient.login (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:62:27) at async PanasonicComfortCloud.onReady (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:65:9)

Scram99 commented 3 months ago

Bei mir musste ich das Passwort nochmal eintragen, dann ging es problemlos :-) Danke für den schnellen Fix.

poeoe79 commented 3 months ago
        Danke für die Arbeit!!! Funktioniert wieder. 3.0 installiert Passwort rausgenommenNeustartPasswort reinNeustartLäuft 💪🎉🎉Mit freundlichen GrüßenJens Pöggeler Am 29.06.24 um 14:02 schrieb MarkX81

                Von: "MarkX81" ***@***.***>Datum: 29. Juni 2024An: "marc2016/ioBroker.panasonic-comfort-cloud" ***@***.***>Cc: "poeoe79" ***@***.***>,"Comment" ***@***.***>Betreff: Re: [marc2016/ioBroker.panasonic-comfort-cloud] Adapter verbindet sich seit heute nicht mehr (Issue #59)

Danke für deine Mühe. Ich habs gerade getestet, aber erhalte diesen Fehler: Unknown error: Error: code is null.. Stack: Error: code is null. at OAuthClient.oAuthProcess (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/OAuthClient.js:65:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ComfortCloudClient.login (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:62:27) at async PanasonicComfortCloud.onReady (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:65:9)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

t1m02k16 commented 3 months ago

Läuft vielen Dank @marc2016

marc2016 commented 3 months ago

Ich habe den refresh des Token vergessen. Kümmere ich mich morgen Abend drum…

pioneer01 commented 3 months ago

Danke für deine Arbeit! Bei mir funktioniert es auch nachdem ich das so gemacht habe:

Danke für die Arbeit!!! Funktioniert wieder. 3.0 installiert Passwort rausgenommenNeustartPasswort reinNeustartLäuft 💪🎉🎉Mit freundlichen GrüßenJens Pöggeler Am 29.06.24 um 14:02 schrieb MarkX81 Von: "MarkX81" @.>Datum: 29. Juni 2024An: "marc2016/ioBroker.panasonic-comfort-cloud" @.>Cc: "poeoe79" @.>,"Comment" @.>Betreff: Re: [marc2016/ioBroker.panasonic-comfort-cloud] Adapter verbindet sich seit heute nicht mehr (Issue #59) Danke für deine Mühe. Ich habs gerade getestet, aber erhalte diesen Fehler: Unknown error: Error: code is null.. Stack: Error: code is null. at OAuthClient.oAuthProcess (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/OAuthClient.js:65:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ComfortCloudClient.login (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:62:27) at async PanasonicComfortCloud.onReady (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:65:9) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

superemil70 commented 3 months ago

Bekomme es leider nicht zum laufen mit der 3.0. Habe den adapter auch mal komplett gelöscht und neu aufgespielt. Gleichers Problem. Was ich vorher nicht hatte Unknown error: Error: code is null.. Stack: Error: code is null. at OAuthClient.oAuthProcess (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/OAuthClient.js:65:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ComfortCloudClient.login (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:62:27) at async PanasonicComfortCloud.onReady (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:65:9)

Woran liegt das jetzt?

Edit: mit der Mailadresse, die ich im App nutze geht es. Die 2. Mailadresse die vorher immer funktioniert hat geht nicht

mtb-z commented 3 months ago

Bei mir funktioniert es jetzt einwandfrei. Vielen Dank, Marc

poeoe79 commented 3 months ago
        So wie ich das verstanden hab fehlt noch was.Die Token laufen aus und müssen erneuert werden.Marc ist aber glaub dran 👍🏻👍🏻Mit freundlichen GrüßenJens Pöggeler Am 01.07.24 um 18:43 schrieb superemil70

                Von: "superemil70" ***@***.***>Datum: 1. Juli 2024An: "marc2016/ioBroker.panasonic-comfort-cloud" ***@***.***>Cc: "poeoe79" ***@***.***>,"Comment" ***@***.***>Betreff: Re: [marc2016/ioBroker.panasonic-comfort-cloud] Adapter verbindet sich seit heute nicht mehr (Issue #59)

Bekomme es leider nicht zum laufen mit der 3.0. Habe den adapter auch mal komplett gelöscht und neu aufgespielt. Gleichers Problem. Was ich vorher nicht hatte Unknown error: Error: code is null.. Stack: Error: code is null. at OAuthClient.oAuthProcess (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/OAuthClient.js:65:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ComfortCloudClient.login (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:62:27) at async PanasonicComfortCloud.onReady (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:65:9) Woran liegt das jetzt?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

tomba0815 commented 3 months ago

Ja, und so lange reicht es im Adapter das Passwort zu löschen, dann speichern und danach das Passwort nochmals eingeben und speichern.

gallersd commented 3 months ago

Bei mir funktioniert es jetzt auch wieder. Vielen Dank, Marc

pioneer01 commented 3 months ago

Bei mir funktionierts auch wieder perfekt. Mit Hilfe des Adapters wird die Klimaanlage an die aktuelle Leistung vom Balkonkraftwerk angepasst: Bildschirmfoto_2024-07-03_14-47-47

poeoe79 commented 3 months ago
        Hey, coole Idee. Wie machst du das? Kann man die pana in der stromaufnahme begrenzen? Hab ich das übersehen?Mit freundlichen GrüßenJens Pöggeler Am 03.07.24 um 14:49 schrieb pioneer01

                Von: "pioneer01" ***@***.***>Datum: 3. Juli 2024An: "marc2016/ioBroker.panasonic-comfort-cloud" ***@***.***>Cc: "poeoe79" ***@***.***>,"Comment" ***@***.***>Betreff: Re: [marc2016/ioBroker.panasonic-comfort-cloud] Adapter verbindet sich seit heute nicht mehr (Issue #59)

Bei mir funktionierts auch wieder perfekt. Mit Hilfe des Adapters wird die Klimaanlage an die aktuelle Leistung vom Balkonkraftwerk angepasst: Bildschirmfoto_2024-07-03_14-47-47.jpg (view on web)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

pioneer01 commented 3 months ago

Die Stromaufnahme kannst du leider nicht begrenzen, aber du kannst die Soll-Temperatur als Stellgröße nehmen. Wenn mehr eingespeist wird -> Soll-Temperatur runter, bei Bezug aus dem Stromnetz -> Soll-Temperatur rauf. Dadruch, dass es sich um Inverter Geräte handelt, funktioniert das einigermaßen gut.

Ich wende das natürlich nur an, wenn ich nicht zu Hause bin. Damit sich die Wohnung nicht sehr aufheizt. Kann den Modus aktivieren und deaktivieren. Wenn ich daheim bin und es kühl haben möchte, will ich nicht, dass jede Wolke bewirkt, dass sich die Klima ausschaltet :)

pioneer01 commented 3 months ago

Ich habe Version 3.0.1 installiert. Hier sollte der auth token ja laut changelog schon gefixed sein, oder? Adapter war heute nicht verbunden und ich hatte folgenden Eintrag im Log: Service error: Request failed with status code 401Token expires. Code=4100. Stack: ServiceError: Request failed with status code 401Token expires at ComfortCloudClient.handleError (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:147:31) at ComfortCloudClient.getGroups (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:107:18) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async PanasonicComfortCloud.refreshDevices (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:176:22) at async PanasonicComfortCloud.refreshTimeoutFunc (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:544:7)

Nachdem ich den Adapter einmal neu gestartet habe, hat es wieder funktioniert.

marc2016 commented 3 months ago

Ich musste leider auch heute Morgen feststellen, dass das noch nicht richtig funktioniert. Ich schaue mir das heute Abend an.

kdtcat commented 3 months ago

Nachdem ich den Adapter einmal neu gestartet habe, hat es wieder funktioniert.

Wenn ich "automatische Updates" einrichte, kommt der Token Fehler nach einer gewissen Zahl an Updates. :-(

pioneer01 commented 3 months ago

Ich musste leider auch heute Morgen feststellen, dass das noch nicht richtig funktioniert. Ich schaue mir das heute Abend an.

Alles klar, kein Stress. Wollte es nur gemeldet haben. Danke!

marc2016 commented 2 months ago

Nachdem ich den Adapter einmal neu gestartet habe, hat es wieder funktioniert.

Wenn ich "automatische Updates" einrichte, kommt der Token Fehler nach einer gewissen Zahl an Updates. :-(

Sollte jetzt aber wieder gehen. Sonst bitte einen neuen issue erstellen.

kdtcat commented 2 months ago

Ja super. automatische Updates läuft wieder ohne Probleme. Vielen Dank für Deine Arbeit.

pioneer01 commented 2 months ago

Heute war der Adapter seit langer Zeit wieder einmal nicht verbunden. Eintrag im Log: Service error: Request failed with status code 401Token expires. Code=4100. Stack: ServiceError: Request failed with status code 401Token expires at ComfortCloudClient.handleError (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:147:31) at ComfortCloudClient.setParameters (/opt/iobroker/node_modules/panasonic-comfort-cloud-client/dist/src/ComfortCloudClient.js:173:18) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async PanasonicComfortCloud.updateDevice (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:433:9) at async PanasonicComfortCloud.onStateChange (/opt/iobroker/node_modules/iobroker.panasonic-comfort-cloud/build/main.js:482:9)

Als Workaround starte ich den Adapter nun mal per Cronjob täglich neu: 0 0 * iobroker restart panasonic-comfort-cloud.0