HTTP sensors and long-term statistics

I am trying to use a Statistics Graph in combination with a HTTP Sensor. It appears the sensor doesn’t create any long term statistics though. Is there a way to enable long-term statistics for HTTP sensors?

It appears like setting the attribute "state_class": "total" in the posted JSON seems to be doing the trick. I think I’ll need to give it a few days to see if it actually works as I would expect.

Hi, does the "state_class": "total" work?
Are you able to use statistic graph with http sensors?
Thanks
Niko