tbnobody / OpenDTU

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

MQTT: setting limits not working after changing basic topic #2000

Closed michib-xx closed 3 weeks ago

michib-xx commented 1 month ago

What happened?

I have appended an organizing string to the basic MQTT topic, i.e., from solar/ to solar/baga/.

Now, setting the limits via the cmd topic does not work anymore. Previously, the topic to write to was solar/<invnr>/cmd/limit_nonpersistent_relative, now, it should be solar/baga/<invnr>/cmd/limit_nonpersistent_absolute. However, writing to it does not change the limit. If I reset the basic topic to solar/, it works again. I've also tried to publish to the original topic, but this doesn't work either.

No matter, if relative or absolute limit is used.

To Reproduce Bug

Expected Behavior

The written limit should be applied.

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

v24.5.6

Relevant log/trace output

No response

Anything else?

No response

tbnobody commented 1 month ago

You are right. currently it seems a opendtu restart is required to subscribe to the new topics. will be fixed in next release