Sensor to convert from totalizer to discrete quantities (Pi-Hole use case)

Hi,

I use the pi-hole integration to get some sensors on the total blocked queries and total queries. However, such sensor is based on the output of Telnet API - Pi-hole documentation which shows the accumulated of that data over the last 24hours every 5 minutes. Instead, i would like to get the same data that is shown in the pihole dashboard, ie, the same stats but for the quantiti over the last 5 minutes only.

  • Any one has an idea how to approach this?

What i was thinking for an idea would be something like the derivative sensor, but with a rolling value of the total quantity i’m thinking about.

Thanks!