-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
"MQTT is not connected" reason: "TCP disconnected #780
Comments
ist das schon immer so oder erst in neuen Versionen? |
Ich hatte vor ca. 2 Wochen erstmalig über den Online Installer (ahoydtu.de) den ESP programmiert und dann den Inverter (Hoymiles) in Betrieb genommen. Die Kommunikation hat aber erst funktioniert, nachdem ich die voreingestellte Wemos PIN-Belegung in der Ahoy-Konfig angepasst hatte. Eingestellt ist jetzt: Die MQTT hat auch nach vielen Neustarts der AHOYDTU noch nie eine Verbindung aufgebaut. Beiliegend ein Auszug aus der: AHOYDTU (Serial/Control) sowie AhoyDTY (Systemdaten) |
bitte mal die Developmentversion |
Es gibt bald eine neue MqTT Lib Verison, habe die Änderung schon erfolgreich getestet und löst bei mir das Problem: hier unsere Schritte zur Lösung: |
@kriebsam |
Ich hatte gestern die AhoyDTU auf die SW-Version: 0.6.0 upgedatet.Ergebnis:Nachdem ist den konfiguriereten User in der AhoyDTU eingetragen hatte wurde die Verbindung zum Mosquitto (der auf einer VM der Synology läuft) aufgebaut. Siehe beiliegender Screenshot.Mehr kann ich im Moment nicht sagen, da ich für eine Woche abwesed bin.Sieht aber erstmal gut aus.Vielen Dank für eure Arbeit!KlausVon meinem/meiner Galaxy gesendet
-------- Ursprüngliche Nachricht --------Von: rmayergfx ***@***.***> Datum: 29.03.23 17:00 (GMT+01:00) An: lumapu/ahoy ***@***.***> Cc: kriebsam ***@***.***>, Mention ***@***.***> Betreff: Re: [lumapu/ahoy] "MQTT is not connected" reason: "TCP disconnected (Issue #780)
@kriebsam
Bitte mal auf einem Rechner den MQTT Eplorer laufen lassen, aber nicht in der VM!
Ist es wirklich eine VM oder ein Docker Container? In welchem Netz läuft die VM? Wo läuft der MQTT Service?
Nutzt du den Mosquitto MQTT Broker? Ist in der Config anonymous erlaubt?
So wie es sich anhört sind Ahoy DTU und VM, MQTT in unterschiedlichen Netzwerkbereichen und können sich deshalb nicht sehen.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
MeToo: in der Version 0.6.0 hatte ich gestern einen Verbindungsabbruch MQTT "TCP disconnected".
|
komisch, kommt das TCP disconnected immer wieder? |
Ich hab das gleiche Problem. Ich hab noch überhaupt nicht geschafft eine MQTT Verbindung herzustellen. Im Log taucht die Fehlermeldung TCP disconnected alle paar Sekunden auf. |
@matze19999 |
Sorry. Broker ist Mosquitto als Addon in Home Assistant installiert. Funktioniert aber auch nicht wenn Mosquitto direkt unter Linux installiert ist oder als Docker Container läuft. Authentifizierung per Username / Password ohne Sonderzeichen. Ahoy DTU EInstellungen: Server IP fand ich sinnlos zu schwärzen bei einer privaten IP :) Hier noch der Log von der AhoyDTU |
Starte doch mal den MQTT Explorer http://mqtt-explorer.com/ und prüfe ob der Broker überhaupt erreichbar ist. Password File wurde auch richtig erstellt? |
das Problem sollte nicht exisitieren, bitte aktuelles Release |
Hardware
Modelname: ______
Retailer URL: ______
nRF24L01+ Module
Antenna:
Power Stabilization:
connected between +3.3V and GND (Pin 1 & 2) of the NRF Module
Connection diagram:
Connection diagram I used:
Note: [*] GND Pin 1 has a square mark on the nRF24L01+ module
Software
Version / Git SHA:
Version: ..__
Github Hash: _______
Build & Flash Method:
Desktop OS:
Debugging:
Die AhoyDTU ist aktiv und erhält Daten vom Inverter. Inverter #0: Ba51-Inverter (v10018) is available and is producing; ABER es wird keine Verbindung zum MQTT-Broker aufgebaut. Daten für MQTT gesetzt; IP des Brokers, Port: 1833;
Im "Serial"-Monitor erscheint neben den Abfragewerten aus dem Inverter die Meldung: "MQTT disconnected, reason: TCP disconnect"
Im MQTT-Explorer taucht nur die IP von Home Assistant (.178.79) auf, nicht aber die IP der AhouDTU (.178.80)
Home Assistant und läuft auf einer VM meiner Synology 2018+
Meine Ideen sind mir ausgegangen. Kann jemand helfen?
Klaus
The text was updated successfully, but these errors were encountered: