Anyone had any experience with using a sensor template that does the following:
If sensor value is positive (not negative value) then that should go under Current demand sensor
1a. If the value is negative then it should be 0.
If the value if negative then we want that to go to Export sensor but as a positive value (e.g if -4.3 then convert to 4.3)
2a. If value is is positive then it should be 0
Ah ok. If it was a common occurrence you could have set it to the last value, but as it is an uncommon occurrence better to leave it as unknown so you know when there is an issue.