Mathematical formula changes position

Hi again,
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".

my formula:


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 ?

sorry, I got my mistake :nerd_face: after reading my own problem a few times :rofl:

1 Like

solution:
1.


define a topic


join as an object


getting defined values


correct formula

finish :smile:

Hi Becker,

I'm glad you shared in detail the solution .. i was wondering where exactly the problem was :wink:

Its takes a little time to tweak it at the beginning (with debug nodes everywhere) but once you fully understand it, the join node is one of the most powerful nodes from the core nodes.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.