Replies: 11 comments 29 replies
-
I don't know what's best but i'd like to present my current MQTT setup and what my thoughts behind it. My preference would be to have system info and pv info separated (comparable to tasmota). Having a separate system-info topic could be implemented in one go together with #304 My current MQTT setup is:
the resulting structure is:
My corresponding telegraf config is
Grafana visualisation of all power values (input and ouput for all inverters) can be achieved with a single query I do understand the possible benefits of having every value in a separate topic but in the end i'd prefer a single json message. I don't know if there are impartial reaosns for that or it's just my personal preference. Regarding "sum of all" discussion: If one needs the sum of all inverters connected to a single openDTU, one would likely need the sum over all openDTU too? Should a "master" esp32 calculate this sum or rather a simple script running on e.g. a raspberry pi? |
Beta Was this translation helpful? Give feedback.
-
I tried to adopt as much as possible from shellies mqtt layout into my hoymiles python module. The emeter part specifically. Do not use inverter name in topic's. This would require a 💩 load of sanitization.
My previous implementation also prepared for multi input and output phases per inverter and also allows for individual panel aka. "string" naming
Should we name phases? Maybe. Could be for instance "1F4/1" I would definitively vote in favor for including the dtu serial into basetopic, as it would enable multi-homed setups to use a central broker. Of course to be able to name dtu's, we would need to put the inverter objects one step further down like so
I use flux to query my data in dashboards like
location corresponds to inverter serial. [1] https://shelly-api-docs.shelly.cloud/gen1/#shelly-3em-overview |
Beta Was this translation helpful? Give feedback.
-
My 50cent:
|
Beta Was this translation helpful? Give feedback.
-
After several discussions and also tests with telegraf and how to subscribe to all important messages as easy as possible we came up with the following structure:
If you like e.g. receive to all dc voltages, just subscribe to |
Beta Was this translation helpful? Give feedback.
-
hmm, some questions:
What I've got from the view days I'm running my openDTU with an HM-600:
Related data:
btw. it is very difficult to identify the level of any data value if you use the same symbol for all levels. And maybe add some comments / details to the data and explain where you expect to get it from. |
Beta Was this translation helpful? Give feedback.
-
I dont understand the question. this number flashed into the inverters firmware. there is no way to change it.
It's not
Why should a gateway bridge consider connected panels?
Which one?
What do you mean with entropy? |
Beta Was this translation helpful? Give feedback.
-
Good day, Thanks a lot and greetings :) |
Beta Was this translation helpful? Give feedback.
-
Is the structure depicted above agreed upon? I have a tefegraf connector from the mqtt broker to influxdb set up at home and would be willing to provide:
This would mean once the migration is done one would only have to change the telegraf config file and is ready to go with no further changes. At least for people starting with this config in the beginning. Maybee @Kraego is willing to join forces, so we have only one mqtt-telegraf-influxdb-grafana setup |
Beta Was this translation helpful? Give feedback.
-
Maybe someone wants to take a look at this https://github.com/smainz/OpenDTU-MQTT-Telegraf-influxdb-integration Does this go the direction it is envisioned here? |
Beta Was this translation helpful? Give feedback.
-
@tbnobody thanks for the effort to make this a public discussion. I am late to the party (almost a year tbh) and I would only like to make the request that AhoyDTU and OpenDTU agree on a common tree of topics. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Due to various shortcomings of the current MQTT Topic structure, I would like to rebuild it.
But since I can't think of all eventualities I wanted to start a discussion here which changes should be included and which structure might not be so optimal.
When looking at topic 1 compared to topic two, it would only be possible to add the sum values of all inverters which are currently connected to the same ESP.
In the python version of @Sprinterfreak used the following structure:
it needs to be extended by commands, status per inverter and the dtu internal topics like LWT and a topic for e.g. total power of all connected inverters.
I like to make this change only once as it makes all current installations incompatible. Therefor we should first find a structure which suits a lot of people. (It will never suit everybody)
Beta Was this translation helpful? Give feedback.
All reactions