Not sure what language works best here, but will do in English.
So i have a question about a flow I tried to build.
Goals of the flow:
I have solar panels and want to see how much electricity I consumed, how much of that came from the solar panels and how much i delivered back into the grid.
I short this calculation: (total energy used (of meter) + total energy from solar panels - energy delivered back to grid)
I’m thinking to run this flow on a daily basis.
Flow i created including quite some variables
The idea was at start of flow i set value of that moment and at the end of the flow i set the same value in other variable. Doing this gives me the option to see the diff between yesterday and today of all meters. however the flow has been running for some time and i notice that the calculation always return 0, meaning my start value is being update before the calculation.
tech question, does the homey assign a value to the variable or a reference to the tag and it keeps updating it.
Note: other tips to get the same result are welcome, however i would like to understand why my logic isn’t working.