Using excess pv power for doing something

I don’t know. You said you needed to investigate how openHAB calculates, so I just pointed out that -1500W is greater than -2000W. I find it very easy to make mistakes there.