Hmm, are you sure? You can see in Grafana that it doesn’t save strings but numbers (0 = CLOSED, 1 = OPEN), so one should be able to sum that.
No, that already got answered:
I don’t want to save/exchange plain numbers, OpenHAB has a Units Of Measurements concept, and I want to use that - so I have to pick the correct UOM type.