helgeerbe / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles Inverters and Victrons MPPT battery chargers (Ve.Direct)
GNU General Public License v2.0
253 stars 56 forks source link

MQTT subscriptions not updated when base topic changes #1045

Open schlimmchen opened 2 weeks ago

schlimmchen commented 2 weeks ago

What happened?

Saw 918c3449da4dec639b9bfbb9846153b272a8ec4f (upstream).

To Reproduce Bug

Change the base topic in the MQTT setting. Notice that publishing to DPL topics using the new base does nothing as the respective software is still subscribed to the topic with the old base. True for other pieces of software as well (which?).

Expected Behavior

When changing MQTT settings, the new settings should work as expected, i.e., OpenDTU-OnBattery shall be subscribed using the new settings.

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

123456

Relevant log/trace output

No response

Anything else?

No response

TomBrett72 commented 1 week ago

Hi @schlimmchen, thank you for reporting this. I see also a cycletime problem. I set up the global MQQT cycle time to 20s. But */powermeter/# values are sent in 10s intervall. I already made a restart of the DTU and try setup other values, f.i. 15s. No change. For monitoring I use a simple android MQQT-dashboard and therefor I need the same cycletime for all values. No big bug, but it would ne nice to have other then 10s intervall. Thank´s! grafik

schlimmchen commented 1 week ago

Please, don't hesitate to open a new issue. You comment has nothing to do with this issue.