Can the long term statistic editer be expanded to show more than four entries at a time please? And/or a filter / sort option to make it easier to find the value(s) we need to fix?
e.g. view a larger range of the day and be able to scoll through more values, or to be able to sort a day’s values highest to lowest.
Currently, if an entity has data recorded every 5 minutes then we can only view a 20 minute window of the day. So to find a spike/incorrect value that occured sometime during say the 28th Oct, I have to check every 20 minutes of that day. Very time consuming (anoying) to change one small value!
Example spike in lights usage:
But I can only see 20 minutes in the day at a time, so a lot of effort to find the spike?!
I’m getting these (spikes) every few days, typically a couple hundred but on the 28th it was 13 million!? So if anyone can also help prevent this, that would also be appreciated!
This is the template sensor I’m using (taken from this forum) to calculate the values from my Fibaro dimmers and switches.
template:
- trigger:
- platform: homeassistant
event: start
- platform: time_pattern
minutes: "/30"
sensor:
- name: "Lights Energy Usage"
icon: mdi:lightbulb-on-outline
device_class: energy
unit_of_measurement: kWh
state: >
{% set ns = namespace(usage=0.0) %}
{% for state in states.sensor %}
{% if state.object_id.endswith('consumption_kwh') %}
{% set ns.usage = ns.usage + state.state|float(0.0) -%}
{% endif %}
{% endfor %}
{{ ns.usage|round(2) }}
attributes:
last_reset: '2021-10-13T00:00:00+00:00'
state_class: 'total_increasing'