averageSince not working as expected

To file an issue see How to file an Issue.

I think the relevant code for this is in the openhab-core repo.

Assuming your interpretation is correct and it’s calculating incorrectly than the next step is to file an issue. Either the docs are wrong or the code is wrong.