tbnobody / OpenDTU

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
GNU General Public License v2.0
1.77k stars 492 forks source link

After restart from mqtt opendtu does not send data to mqtt, restart is needet #1629

Closed svalcken closed 5 months ago

svalcken commented 8 months ago

What happened?

mqtt server was rebootet. After them, opendtu does not reconnect and send data.

To Reproduce Bug

Restart mqtt server and than data will not sendto mqtt.

Expected Behavior

automatical reconnect to mqtt and send of data to mqtt.

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

v23.12.28

Relevant log/trace output

No response

Anything else?

No response

tbnobody commented 8 months ago

What do you see on the console if you restart the broker? What broker are you using? Please provide a screenshot of Info --> MQTT

bombjack7000 commented 7 months ago

I have that on OpenDTU v23.12.24, too, after restarting Home Assistant. I am using the standard MQTT server in Home Assistant (core-mosquitto). Everything back to normal after restart of OpenDTU. grafik

tbnobody commented 7 months ago

What is the mqtt status (info --> mqtt) if you restart the broker and the client does not work proberly?

bombjack7000 commented 7 months ago

Whoa, OpenDTU is connected, MQTT Explorer also shows the MQTT packets coming in. The problem seems to be on the Home Assistant side!

I better report that there.

Thank you for your quick reply. OpenDTU is a great project! 👍 👍 👍

grafik

srett commented 5 months ago

I just had the same issue. Info -> MQTT showed Status: Enabled, but Connection Status: Disconnected. Info -> Console only showed inverter communication, nothing about MQTT. Simply saving the MQTT settings again without changing anything made it connect to mosquitto again. So it appears connection retry is broken under some circumstances. I'm on 24.1.26.

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.