History stats not updating

I have a history_stats sensor configured as shown below. This stat sensor work as long as binary_sensor.regnsensor changes states, but not if there is no change. If binary_sensor.regnsensor is unchanged, the history_stats sensor is also unchanged even if the period since the last change is more than 24 hours.

Is there another way of configure this history_stats or some way to force it to update its value?

- platform: history_stats
  name: Regnsensor vippe 24t
  entity_id: binary_sensor.regnsensor
  state: 'off'
  type: count
    hours: 24
  end: '{{ now() }}'

No clue if that works,but try a homeassistant.update_entity on the binary_sensor or the the history_stats sensor.

1 Like

count: How many times the integration you track was changed to the state you track

Isn’t that the expected result for a count stat?