Volvo On Call: support for statistics (state_class)

For Volvo On Call - Home Assistant (https://github.com/home-assistant/core/tree/dev/homeassistant/components/volvooncall),
can state_class be added to the sensors (e.g. odometer, fuel_consumption, fuel_level) so they can be used for the recently added statistics functionality in HA?

1 Like

Unfortunately, the PR did not get merged. For anyone looking for a quick workaround to enable statistics while this gets fixed, please add a state_class to your customize.yaml. Here’s an example for my odometer sensor:

sensor.v90_odometer:
  state_class: total_increasing

Docs:

1 Like