ioBroker.shelly
ioBroker.shelly copied to clipboard
Shelly TRV mit CoAP funktioniert nicht
Shelly device
Shelly TRV
Protocol (CoAP / MQTT)
CoAP
The problem
Hi , ich habe heute meine Shelly's 3rhalten und wollte den Trv mit einbinden in Iobroker. Leider kommuniziert er absolut nicht über CoAP mit iobroker. Alle anderen devices gehen ohne Probleme. Ich habe die Version 6.0.0 installiert und die aktuelle Firmware auf dem trv
Version of nodejs
17.9.0
Version of ioBroker js-controller
4.0.23
Version of Adapter
6.0.0
Operating system running ioBroker
Ubuntu Raspberry Pi 4
Checklist of files to include below
- [X] iobroker.current.log (Please share the logs in debug mode)
- [ ] Contents of the JavaScript browser console (always include in cases of issues with the user interface)
Additional information & file uploads
No response
Das liegt daran, dass ich den TRV selbst nicht habe und nur "blind" einen Stand von einem weniger erfahrenen Nutzer hier übernommen habe. Und da war nur MQTT bei. CoAP ist noch nicht implementiert.
Ich hab einen TRV heute montiert bei mir zu Hause. Falls du Hilfe beim Testen brauchst sag Bescheid.
@MrWeezle Häng mal ein Debug-Log im CoAP-Modus (bei Verbindung) hier an. Gesucht sind die beiden Zeilen:
https://github.com/iobroker-community-adapters/ioBroker.shelly/blob/c645262326011dd14660e6d014dde6db8e5c4c97/lib/protocol/coap.js#L204-L205
@MrWeezle ping
EDIT: sehe gerade die Logzeilen stimmen nicht mit denen überein die du erwartest. Ich schau nochmal.
Für die Adapterinstanz hab cih DEBUG-Meldungen aktiviert, allerdings erscheinen diese noch nicht. Muss ich da irgendwas machen, damit die Meldungen erscheinen oder kommen die "irgendwann mal"?
Normalerweise sollten die einmal ausgegeben werden, wenn die Geräte-Beschreibung empfangen wird. Wird überhaupt irgendwas im Log für das Gerät geschrieben?
Diese Meldungen kommen beim Neustart des Adapters:
2022-09-15 20:17:48.930 - info: shelly.0 (24980) Starting in CoAP mode. 2022-09-15 20:17:48.992 - info: shelly.0 (24980) [CoAP Server] Listening for packets in the network 2022-09-15 20:17:50.074 - info: shelly.0 (24980) [CoAP] Device 192.168.178.43 (shellycolorbulb / shellycolorbulb-98CDAC1xxxxx / SHCB-1#98CDAC1xxxxx#1) connected! Polltime set to 10 sec. 2022-09-15 20:17:51.533 - info: shelly.0 (24980) [CoAP] Device 192.168.178.31 (shelly1 / shelly1-98F4ABF29xxx / SHSW-1#98F4ABF29xxx#1) connected! Polltime set to 10 sec. 2022-09-15 20:17:52.689 - info: shelly.0 (24980) [CoAP] Device 192.168.178.29 (shelly1pm / shelly1pm-76BDxx / SHSW-PM#76BDxx#1) connected! Polltime set to 10 sec. 2022-09-15 20:17:57.670 - info: shelly.0 (24980) [CoAP] Device 192.168.178.30 (shelly1 / shelly1-98F4ABF2xxxx / SHSW-1#98F4ABF2xxxx#1) connected! Polltime set to 10 sec. 2022-09-15 20:17:58.544 - info: shelly.0 (24980) [CoAP] Device 192.168.178.24 (shelly1 / shelly1-98F4ABF3xxxx / SHSW-1#98F4ABF3xxxx#1) connected! Polltime set to 10 sec. 2022-09-15 20:17:59.354 - info: shelly.0 (24980) [CoAP] Device 192.168.178.33 (shelly1 / shelly1-98F4ABF2Axxx / SHSW-1#98F4ABF2Axxx#1) connected! Polltime set to 10 sec. 2022-09-15 20:18:01.627 - info: shelly.0 (24980) [CoAP] Device 192.168.178.53 (shelly1pm / shelly1pm-76B8xx / SHSW-PM#76B8xx#1) connected! Polltime set to 10 sec. 2022-09-15 20:20:26.503 - info: shelly.0 (24980) [CoAP] Device 192.168.178.51 (shellydw2 / shellydw2-075xxx / SHDW-2#075xxx#1) connected! Polltime set to 3600 sec.
Hallo zusammen, ich habe hier auch 5 TRVs, die ich per COAP einbinden möchte, um die Cloud-Funktion nicht zu verlieren. Ich setze die 6.2.0 ein und in meinem Debug-Log tauchen die TRVs auch nicht auf!
Vielleicht hilft dieses Log der Shelly-CoAP-Instanz ja weiter:
2022-09-16 19:38:37.388 - debug: shelly.0 (4038) CoAP status package received: {"3332":"SHTRV-01#84FD27XXXXXX#2","3412":7201,"3420":13,"Uri-Path":"cit/s"} / {"G":[[0,3101,20.4],[0,3102,68.8],[0,3103,18.5],[0,3104,65],[0,3115,0],[0,3116,0],[0,3117,0],[0,3118,0],[0,3111,99],[0,3121,0],[0,3122,0],[0,9103,3]]} 2022-09-16 19:38:37.388 - debug: shelly.0 (4038) [CoAP Server] Status update received for SHTRV-01#84FD27XXXXXX#2: {"G":[[0,3101,20.4],[0,3102,68.8],[0,3103,18.5],[0,3104,65],[0,3115,0],[0,3116,0],[0,3117,0],[0,3118,0],[0,3111,99],[0,3121,0],[0,3122,0],[0,9103,3]]} 2022-09-16 19:38:37.388 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(0) 2022-09-16 19:38:37.389 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.389 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.390 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.390 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.390 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.390 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.391 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.391 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.391 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.391 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.391 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.391 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.392 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.392 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.392 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.392 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.392 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.392 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.393 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:37.393 - debug: shelly.0 (4038) [CoAP] Connection update received for SHTRV-01#84FD27XXXXXX#2: true 2022-09-16 19:38:39.389 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(1) 2022-09-16 19:38:41.391 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(2) 2022-09-16 19:38:45.349 - debug: shelly.0 (4038) CoAP status package received: {"3332":"SHTRV-01#84FD27XXXXXX#2","3412":7201,"3420":14,"Uri-Path":"cit/s"} / {"G":[[0,3101,20.4],[0,3102,68.8],[0,3103,18],[0,3104,64],[0,3115,0],[0,3116,0],[0,3117,0],[0,3118,0],[0,3111,99],[0,3121,0],[0,3122,0],[0,9103,4]]} 2022-09-16 19:38:45.349 - debug: shelly.0 (4038) [CoAP Server] Status update received for SHTRV-01#84FD27XXXXXX#2: {"G":[[0,3101,20.4],[0,3102,68.8],[0,3103,18],[0,3104,64],[0,3115,0],[0,3116,0],[0,3117,0],[0,3118,0],[0,3111,99],[0,3121,0],[0,3122,0],[0,9103,4]]} 2022-09-16 19:38:45.350 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(0) 2022-09-16 19:38:45.357 - debug: shelly.0 (4038) CoAP status package received: {"3332":"SHTRV-01#84FD27XXXXXX#2","3412":7201,"3420":15,"Uri-Path":"cit/s"} / {"G":[[0,3101,20.4],[0,3102,68.8],[0,3103,18],[0,3104,64],[0,3115,0],[0,3116,0],[0,3117,0],[0,3118,0],[0,3111,99],[0,3121,0],[0,3122,0],[0,9103,4]]} 2022-09-16 19:38:45.358 - debug: shelly.0 (4038) [CoAP Server] Status update received for SHTRV-01#84FD27XXXXXX#2: {"G":[[0,3101,20.4],[0,3102,68.8],[0,3103,18],[0,3104,64],[0,3115,0],[0,3116,0],[0,3117,0],[0,3118,0],[0,3111,99],[0,3121,0],[0,3122,0],[0,9103,4]]} 2022-09-16 19:38:45.359 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(0) 2022-09-16 19:38:47.351 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(1) 2022-09-16 19:38:47.360 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(1) 2022-09-16 19:38:49.352 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(2) 2022-09-16 19:38:49.361 - debug: shelly.0 (4038) CoAP device description request for SHTRV-01#84FD27XXXXXX#2 to 192.168.0.81(2)
Hi ich hab 4 TRVs Wenn ich irgendwelche Daten liefern kann für die Anbindung per CoaP, schreibt mir gerne.
hi @klein0r gibt es da schon ein update zu? Wäre Ideal wenn man die TRV vor der Heizsaison noch richtig Einbinden könnte über COAP.
@bicmac Habe die letzten Tage viel Zeit in andere Adapter gesteckt. Mal gucken wann ich dazu komme. Mittlerweile habe ich ja auch ein TRV hier.
Gibt es hier irgendwelche news? Ich habe auch interesse die TRV über CoAP einzubinden.
Von meiner Seite nicht. Das Problem ist nach wie vor, dass der TRV nicht auf den device description request antwortet
Hm schade... über MQTT geht es aber wohl oder wie?
Könnte man CoAP und MQTT parallel betreiben? Dann könnte ich die TRV damit einbinden und den rest über CoAP laufen lassen.
Könnte man CoAP und MQTT parallel betreiben? Dann könnte ich die TRV damit einbinden und den rest über CoAP laufen lassen.
Wenn ich für jede Frage 1€ bekommen würde, welche in der Doku beantwortet wird, ...
https://github.com/iobroker-community-adapters/ioBroker.shelly/blob/8d0dedd1301c61285b565b38b5170f633bb724bd/docs/de/faq.md?plain=1#L5-L7
Ich glaube Ihr könnt lange auf COAP warten. Soweit mir bekannt, ist der TRV ein Gen2-Gerät. Diese unterstützen kein COAP mehr, nur noch MQTT
Ich glaube Ihr könnt lange auf COAP warten. Soweit mir bekannt, ist der TRV ein Gen2-Gerät. Diese unterstützen kein COAP mehr, nur noch MQTT
Ne ist ein Gen 1 Gerät
@klein0r wie gehts da denn jetzt weiter? Wer muss da nun was machen? Shelly selber und wenn ja gibt es da bereits ein Ticket bei denen zu? Oder liegt das Thema nun auf Eis und wird auch nicht mehr gelöst werden für COAP.
@bicmac Ich habe weder die TRV im Einsatz, noch nutze ich den Adapter Produktiv. Bitte sieh es mir nach wenn ich da nicht hunderte Stunden im Monat investiere. Gerne selbst aktiv werden.
also ist das Thema praktisch closed. Gut dann schick ich meine TRV zurück.
@dekatWin Per MQTT funktioniert doch die TRV-Integration im Shelly-Adapter?
Dann gehen jedoch Cloud Aktion nicht mehr, das ist vor allem beim TRV ein echtes Problem.
@dekatWin
Ich betreibe alle meine Shelly Geräte nur noch via MQTT und nicht mehr mit COAP, und die Cloud funktionier immer noch.
:-D
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.
This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Thank you for your contributions. Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details, Logs und Reproduktionsschritte enthalten sind. Vielen Dank für Eure Unterstützung.