im trying to do a dodgy workaround for getting net power as im unsure how else i can get it works
my rule is
if(v10 + v4 - v2 < 1) v10 = (v4 - v2)*-1 else v10 = v4
v10 is sent as 0 to “activate the rule”
so basically
if 0 + Consumption - Generation less than 1 v10 = Consumption - Generation * -1 to turn it into a positive
that allows me to save it but looking at the test it shows anything negative as 0
i try and add else v10 = consumption but it wont work as a rule.
is there an easier way to create this rule to try and show a rough net consumption?