home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.58k stars 30.75k forks source link

Incomplete statistics/history since HA 2024.08.1 #124134

Open bsafh opened 2 months ago

bsafh commented 2 months ago

The problem

Many sensors show an incomplete stats history since upgrade to 2024.08.1, see attached screenshots.

What version of Home Assistant Core has the issue?

2024.08.1

What was the last working version of Home Assistant Core?

2024.07.x

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

recorder

Link to integration documentation on our website

No response

Diagnostics information

I don't know how to do this for "recorder" Screenshot_20240817_210340_Home Assistant Screenshot_20240817_211602_Home Assistant Screenshot_20240817_211537_Home Assistant logs.txt logs-1.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Core 2024.8.1
Supervisor 2024.08.0
Operating System
Frontend 20240809.0

There are no error in the log for recorder, only warnings.

Database is the MariaDB Addon, latest Version (2.7.1), the log shows no errors.

Database schema update during version upgrade to 2024.8 was once interrupted by a crash of the VM in which HA runs, but resumed on the next try and finished without errors.

Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:303
integration: Sensor (documentation, issues)
First occurred: 7:14:44 PM (93 occurrences)
Last logged: 7:56:22 PM

Entity sensor.wr1_summary_day_pv2 from integration utility_meter has state class total_increasing, but its state is not strictly increasing. Triggered by state 81.225 (81225.0) with last_updated set to 2024-08-14T18:18:25.926634+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+utility_meter%22
Entity sensor.wr_deye_1_solar_power_battery_charge from integration template has state class total_increasing, but its state is not strictly increasing. Triggered by state 9.6 (10.3) with last_updated set to 2024-08-14T20:22:07.897521+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+template%22
Entity sensor.wr1_summary_day_pv1 from integration utility_meter has state class total_increasing, but its state is not strictly increasing. Triggered by state 6.020 (6020.0) with last_updated set to 2024-08-16T05:25:10.422086+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+utility_meter%22
Entity sensor.solarman_wr2_total_energy_import from integration solarman has state class total_increasing, but its state is not strictly increasing. Triggered by state 19.6 (19.8) with last_updated set to 2024-08-17T04:05:23.604405+00:00. Please create a bug report at https://github.com/davidrapan/ha-solarman/issues
Entity sensor.solarman_wr2_total_load_consumption_2 from integration solarman has state class total_increasing, but its state is not strictly increasing. Triggered by state 67.8 (68.0) with last_updated set to 2024-08-17T04:05:23.605199+00:00. Please create a bug report at https://github.com/davidrapan/ha-solarman/issues

Additional information

No response

xenia-09A commented 2 months ago

Hi I had some history_stats battle after upgrade to 2024.8.2, it all working as intended now I started using stats on 8.1 so I have no history when HA is upgraded how stats is impacted or not Not sure f this is intended behavior for stats but what I see:

1) on 8.2 if a sensor goes offline (power outage etc) I see the missing data in the graphs you show(My HA is on UPS and don't go down but sensors powered are not) 2) after upgrade to 8.2 my stats when crazy and wrong data for time, I resolved this by restarting yaml and HA a few times, time stats that spanned over a day showed no issues, count stats had no issues 3) today my stats are working as intended on 2004.8.2

Can you see if you sensor went offline for your blank graph times?

bsafh commented 2 months ago

I had no power outages at all, and the sensors are mostly battery powered.

At any given time some Zigbee sensors are not shows while others are shows, so the Zigbee hub and HA must have been available.

xenia-09A commented 2 months ago

Yes that is very odd …good luck with resolving the blank charts on history_stats in your case