Since the December release we call all see long term statistics in the history graphs … However, not all my entities have history past 21 days ago.
For example, my inverter integration (GitHub - wills106/homeassistant-solax-modbus: SolaX Power Modbus custom_component for Home Assistant (Supports some Ginlong Solis, Growatt, Sofar Solar, TIGO TSI & Qcells Q.Volt Hyb)) has been running great for over 9 months, but for some reason many of the entities provided do not have long term statistics.
One affected is sensor.inverter_battery_soc
that tracks state of charge. It’s found in the states_meta
table but not in statistics_meta
. The attributes for the entity looks fine, too:
unit_of_measurement: "%"
device_class: battery
friendly_name: Inverter Battery SOC
So a couple of questions…
- Is there a way to add missing entities to the statistics table?
- Any idea how this could have happened?
And a bonus: InfluxDB has been collecting everything fine, anyone know a way to get stats out of there and back into long term storage?