History_stats stopped working

yes, i restard many times…
And i have recorder in config:
image

Then it should be working as long as there’s a history for sensor.statut_netatmo, and it has the entity_id of sensor.statut_netatmo.

Also, I just noticed your template sensor is mixing the old style templates with the new style. You need to stick with the old style or the new style, not a mixture of both. I.e. Use the official documents examples, not posts on the forum.

Thank you Pedro.
I first investigate on the style.
Maybe is it the problem.