Convert counter value to daily value


i have a HVAC sensor.burnerstarts (mqtt) which has the number of burner starts since the installation of this device (‘lifetime’), e.g. 11087.
Now i want to get the daily number of burner starts. The following did not work:

- platform: history_stats
  name: Burner start per day
  entity_id: sensor.burnerstarts
  state: '>0'
  type: count
  start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
  end: '{{ now() }}'

Any other ideas how to get this value on a daily basis?

Sounds like a job for:

1 Like

Thanks again, tom_l. You again pointed me to the right topic.

I have no idea where to search for those topics, as i could not find some kind of index or register for the possible topics. Do you also know where i could finde this?

It’s just a matter of searching through the integrations and having a bit of a read of ones that interest you.

Thanks a lot.

I already searched a lot through the sites. I think the main problem is in finding the right expression to name what i am looking for as English is not my native language.
I will browse through the topics so i maybe can find what i am looking for.

I use history_stats for a similar situation. I believe your “state:” line is incorrect. It should be the state you want to track.

It’s much simpler using utility_meter, as tom suggested:

    source: sensor.boiler_burnStarts
    cycle: daily

Where boiler_burnerStarts ist the ‘physical’ sensors output. That’s all i needed.

The state with history_stats did not work because the output is a constantly rising number.