Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Funktion "WindowReductionActive" funktioniert nicht mehr #82

Open
rassel2000 opened this issue Aug 20, 2022 · 18 comments
Open

Funktion "WindowReductionActive" funktioniert nicht mehr #82

rassel2000 opened this issue Aug 20, 2022 · 18 comments

Comments

@rassel2000
Copy link

Hallo,

ich nutze die oben genannte Funktion, um bei meinen HKTs die Absenkung zu aktivieren (ausgelöst durch Aqara Fensterkontakte).
Bis vor ein paar Tagen wurde die Absenkung durch die HKTs ohne Probleme durchgeführt. Seit kurzem bekomme ich aber nur noch Fehlermeldungen und die HKTs verbleiben in ihrem aktuellen Modus, egal ob ich das lokale SmartHome oder die Cloudverbindung nutze.
Im Log steht der Fehler "STATE ERR {"error":"CAPABILITY NOT FOUND!"}.
Ich hatte bisher die Adapterversion 0.4.5 installiert, ein Update auf 0.4.7 hat aber leider nichts gebracht.

Node.js: v16.16.0
js-controller: v4.0.23

Ich habe die böse Vermutung, dass Livisi irgendwas an der Firmware der Zentrale geändert hat.

Könntest du dir das mal angucken?

Danke!

@haahne
Copy link

haahne commented Dec 13, 2022

Nabend,
Ich wollte bei mir auch die Aqara Sensoren als Trigger nehmen. Wenn ich den Wert "WindowReductionActive" auf true setze passiert nichts. Die Thermostate behalten Ihre Eingestellte Temperatur bei.
Hab es mit 0.3.7 und mit 0.4.7 Probiert, bei beide Funktioniert es nicht.

Grüße

@Apollon77
Copy link
Collaborator

Does the log state anything?

@haahne
Copy link

haahne commented Dec 14, 2022

Da ich mit der 0.4.7 nicht testen kann weil ich keine Verbindung aufbauen kann, kann ich nur sagen was er bei der 0.3.7 sagt.
Da sagt er unter Debug " Open"
Mehr nicht. Nach ein paar Sekunden springt der State wieder auf False zurück.

@Apollon77
Copy link
Collaborator

Apollon77 commented Dec 24, 2022

Ok, ich bereite ein größeres Update vor, mit dem könnte man nochmal testen. Es ändert sich aber die Objektstruktur - es kommt eine Ebene dazu die fehlte! Die GitHub version wäre testbar und geht auch mit SHC1 im lokalen Modus - einfach SHC Generation in der Konfig auswählen

@Apollon77
Copy link
Collaborator

see https://forum.iobroker.net/topic/61351/livisi-innogy-smarthome-adapter-1-0-0-breaking ... How it is with this version=ß Please provide a log

@haahne
Copy link

haahne commented Dec 25, 2022

Wenn ich den State ändere schmiert der ganze Adapter ab:

2022-12-25 10:52:06.641 - debug: innogy-smarthome.0 (1817) Setting capability b716e897306b41f4b433ab60041f5563/WindowReductionActive to true

2022-12-25 10:52:06.693 - error: innogy-smarthome.0 (1817) 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().
2022-12-25 10:52:06.694 - error: innogy-smarthome.0 (1817) unhandled promise rejection: 400 - {"errorcode":1005,"description":"Missing argument or wrong value","messages":["Parameter [ windowReductionActive ] does not exist. Err: [ parameter [windowReductionActive] not found in action [SetState] ]"]}
2022-12-25 10:52:06.695 - error: innogy-smarthome.0 (1817) StatusCodeError: 400 - {"errorcode":1005,"description":"Missing argument or wrong value","messages":["Parameter [ windowReductionActive ] does not exist. Err: [ parameter [windowReductionActive] not found in action [SetState] ]"]}
at new StatusCodeError (/opt/iobroker/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22)
at Request.emit (node:events:513:28)
at Request. (/opt/iobroker/node_modules/request/request.js:1154:10)
at Request.emit (node:events:513:28)
at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1076:12)
at Object.onceWrapper (node:events:627:28)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-12-25 10:52:06.695 - error: innogy-smarthome.0 (1817) 400 - {"errorcode":1005,"description":"Missing argument or wrong value","messages":["Parameter [ windowReductionActive ] does not exist. Err: [ parameter [windowReductionActive] not found in action [SetState] ]"]}
2022-12-25 10:52:06.702 - debug: innogy-smarthome.0 (1817) SOCKET CONNECTION TO THE INNOGY API WAS CLOSED
2022-12-25 10:52:06.703 - info: innogy-smarthome.0 (1817) cleaned everything up...
2022-12-25 10:52:06.704 - info: innogy-smarthome.0 (1817) terminating
2022-12-25 10:52:06.705 - warn: innogy-smarthome.0 (1817) Terminated (UNCAUGHT_EXCEPTION): Without reason
2022-12-25 10:52:06.710 - debug: innogy-smarthome.0 (1817) GOT AN IGNORED ERROR: {"code":"WS_ERR_INVALID_CLOSE_CODE"}
2022-12-25 10:52:06.711 - debug: innogy-smarthome.0 (1817) STACK: RangeError: Invalid WebSocket frame: invalid status code 0
at Receiver.controlMessage (/opt/iobroker/node_modules/ws/lib/receiver.js:561:18)
at Receiver.getData (/opt/iobroker/node_modules/ws/lib/receiver.js:429:42)
at Receiver.startLoop (/opt/iobroker/node_modules/ws/lib/receiver.js:148:22)
at Receiver._write (/opt/iobroker/node_modules/ws/lib/receiver.js:83:10)
at writeOrBuffer (node:internal/streams/writable:391:12)
at _write (node:internal/streams/writable:332:10)
at Receiver.Writable.write (node:internal/streams/writable:336:10)
at Socket.socketOnData (/opt/iobroker/node_modules/ws/lib/websocket.js:1272:35)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
2022-12-25 10:52:06.717 - debug: innogy-smarthome.0 (1817) SOCKET CONNECTION TO THE INNOGY API WAS CLOSED
2022-12-25 10:52:07.284 - error: host.iobroker instance system.adapter.innogy-smarthome.0 terminated with code 6 (UNCAUGHT_EXCEPTION)

@Apollon77
Copy link
Collaborator

Ok, den Fehler kann ich abfangen. zum Rest muss ich bei Livisi nachfragen was man anders tun muss

@haahne
Copy link

haahne commented Dec 25, 2022

Okay , und danke nochmal das du dich der Sache hier angenommen hast.

@Apollon77
Copy link
Collaborator

Aber eine Frage: SOnstige Steueraktionen gehen? Oder geht gerade keine mehr?

@Apollon77
Copy link
Collaborator

PS: CLoud oder Lokal? Falls Cloud mal lokal versucht?

@Apollon77 Apollon77 added the bug label Dec 25, 2022
@haahne
Copy link

haahne commented Dec 25, 2022

Habe nur Heizkörperthermostate und Raumthermostate daher kann ich nur für diese sprechen. Sonst gehen alle Sachen wie Temps setzen usw.
Hab es Lokal mit der SHC2 versucht.

@Apollon77
Copy link
Collaborator

Ok, mal schsauen was der Livisi Support sagt. Auch die Fehlermeldung ist jetzt eine andere

@Apollon77
Copy link
Collaborator

@haahne Weil es in deinem Log fehlt: Du hast abert schon die neuen Objekte versucht zu steuern? Da müsste noch LOgging zu changed state oder so von vor der Fehlermeldung sein

@haahne
Copy link

haahne commented Dec 26, 2022

@Apollon77 Es steht als Überschrift oben im Post, weiß nicht warum er es fett markiert hat :D

2022-12-25 10:52:06.641 - debug: innogy-smarthome.0 (1817) Setting capability b716e897306b41f4b433ab60041f5563/WindowReductionActive to true

oder meintest du etwas anderes?

@Apollon77
Copy link
Collaborator

Da sollte noch eine Zeile davor sein mit was mit "state changed" drin

@haahne
Copy link

haahne commented Dec 26, 2022

innogy-smarthome.0 | 2022-12-26 14:35:09.969 | debug | SOCKET CONNECTION TO THE INNOGY API WAS CLOSED
innogy-smarthome.0 | 2022-12-26 14:35:09.965 | debug | STACK: RangeError: Invalid WebSocket frame: invalid status code 0 at Receiver.controlMessage (/opt/iobroker/node_modules/ws/lib/receiver.js:561:18) at Receiver.getData (/opt/iobroker/node_modules/ws/lib/receiver.js:429:42) at Receiver.startLoop (/opt/iobroker/node_modules/ws/lib/receiver.js:148:22) at Receiver._write (/opt/iobroker/node_modules/ws/lib/receiver.js:83:10) at writeOrBuffer (node:internal/streams/writable:391:12) at _write (node:internal/streams/writable:332:10) at Receiver.Writable.write (node:internal/streams/writable:336:10) at Socket.socketOnData (/opt/iobroker/node_modules/ws/lib/websocket.js:1272:35) at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
innogy-smarthome.0 | 2022-12-26 14:35:09.965 | debug | GOT AN IGNORED ERROR: {"code":"WS_ERR_INVALID_CLOSE_CODE"}
innogy-smarthome.0 | 2022-12-26 14:35:09.962 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason
innogy-smarthome.0 | 2022-12-26 14:35:09.961 | info | terminating
innogy-smarthome.0 | 2022-12-26 14:35:09.960 | info | cleaned everything up...
innogy-smarthome.0 | 2022-12-26 14:35:09.959 | debug | SOCKET CONNECTION TO THE INNOGY API WAS CLOSED
innogy-smarthome.0 | 2022-12-26 14:35:09.955 | error | 400 - {"errorcode":1005,"description":"Missing argument or wrong value","messages":["Parameter [ windowReductionActive ] does not exist. Err: [ parameter [windowReductionActive] not found in action [SetState] ]"]}
innogy-smarthome.0 | 2022-12-26 14:35:09.955 | error | StatusCodeError: 400 - {"errorcode":1005,"description":"Missing argument or wrong value","messages":["Parameter [ windowReductionActive ] does not exist. Err: [ parameter [windowReductionActive] not found in action [SetState] ]"]} at new StatusCodeError (/opt/iobroker/node_modules/request-promise-core/lib/errors.js:32:15) at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:104:33) at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) at Request.emit (node:events:513:28) at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) at Request.emit (node:events:513:28) at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1076:12) at Object.onceWrapper (node:events:627:28) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)
innogy-smarthome.0 | 2022-12-26 14:35:09.955 | error | unhandled promise rejection: 400 - {"errorcode":1005,"description":"Missing argument or wrong value","messages":["Parameter [ windowReductionActive ] does not exist. Err: [ parameter [windowReductionActive] not found in action [SetState] ]"]}
innogy-smarthome.0 | 2022-12-26 14:35:09.954 | error | Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
innogy-smarthome.0 | 2022-12-26 14:35:09.590 | debug | Setting capability b716e897306b41f4b433ab60041f5563/WindowReductionActive to true
innogy-smarthome.0 | 2022-12-26 14:35:09.586 | debug | state innogy-smarthome.0.Schlafzimmer.Heizkörperthermostat.Target-Temperature.WindowReductionActive changed: true (ack = false)

@Apollon77
Copy link
Collaborator

Apollon77 commented Dec 26, 2022

innogy-smarthome.0 | 2022-12-26 14:35:09.586 | debug | state innogy-smarthome.0.Schlafzimmer.Heizkörperthermostat.Target-Temperature.WindowReductionActive changed: true (ack = false)

This one was missing, looks good

@Apollon77
Copy link
Collaborator

Apollon77 commented Jan 4, 2023

@haahne Duuuuuuuuu ... Hast Du auch ein *.SetPoint.WindowReductionActive in dem gerät?Laut Livisi ist dieser State nur bei "setPoint" steuerbar .... KannST du bitte mal checken und schauen?

Bzw sage bitte auch welche shc generation genutzt wird

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants