fredlcore / BSB-LAN

LAN/WiFi interface for Boiler-System-Bus (BSB) and Local Process Bus (LPB) and Punkt-zu-Punkt Schnittstelle (PPS) with a Siemens® controller used by Elco®, Brötje® and similar heating systems
216 stars 83 forks source link

[WIP] Add MQTT logging #641

Open jbaudoux opened 3 months ago

jbaudoux commented 3 months ago

Forward messages to MQTT broker

Relates to https://github.com/fredlcore/BSB-LAN/issues/442

In your BSB_LAN_config.h, set

jbaudoux commented 3 months ago

What's the purpose of dest_addr in log_parameters ? In MQTT, this adds a ! and the address in the topic but that does not correspond to any MQTT usage

fredlcore commented 3 months ago

Is there really no way that you can work on your contributions in your fork and only submit a PR when it's ready for review? Then these "draft PRs" wouldn't clutter my project's PR list which is basically my main ToDo list for this project.

And again: I don't entertain any questions before there is an explanation on what is planned to do and how it is planned to do it. Other than that, the questions you ask show that you haven't even made it to chapter 5 in the manual.

jbaudoux commented 3 months ago

First trial shows promising results. I tested with logTelegram = LOGTELEGRAM_ON Now the MQTT broker is aware of any static config change. Whatever the thermostat I use, the SET command is forwarded with the new value. The state updates that are published on the bus are also forwarded to the MQTT broker (e;g. 10025, 10027, 10028). I only need to list in log_parameters the moving temperature values that are not automatically notified on the bus like the outside temperature (8700) and room temperature (8740)

fredlcore commented 3 months ago

No one - including me - knows what parameters you are referring to when you talk abount parameter numbers >= 10020...

fredlcore commented 3 months ago

Even though it's still in draft, please take note of the following:

Again, please explain what you plan to do before wasting your own time on a PR that I may not accept in the end. I appreciate if someone takes the time to refactor this part of the code which has grown organically too entangled, but if we do such a major move, it should be done solidly:

fredlcore commented 2 months ago

This has become obsolete now, I think. Thanks for the ideas anyway.