History Sensors dont match in grafana

I am trying to monitor my lighting for how long each is on in hours. I have deployed a History Sensor for each of them in HA on a 24hr history.

When I use that sensor in Grafana i get a completely different figure.

Any idea how to fix this