its hard for me to discribe my problem.
I get this from a modbus flex getter:
I want to make a easy formula:
Pverbrauch = Pgesamt - Pein + Pbezug
but the problem is the topic of Pges & Pein:
when I join them:
I get a array with topic "0" "1" and "2".
but the topics a switching every day, for example sometimes "Pbez" is 0, sometimes 1, sometimes 2.
=> so the formula is wrong sometimes.
How can I get explicit topics for the values ?