Open smoltron opened 3 months ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (recorder
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
recorder documentation recorder source (message by IssueLinks)
duplicate of https://github.com/home-assistant/core/issues/112133
I see that this is probably caused by a downgrade that I had to do because of an error in an upgrade. How can I fix this in MariaDb? I saw some solution for SQLite, but is it the same in MariaDb?
The query for MariaDB/MySQL is in the code here
Hi all, I've got the same issue, I've tried manually running
UPDATE statistics
set start_ts=
IF(start is NULL or UNIX_TIMESTAMP(start) is NULL,0,
UNIX_TIMESTAMP(start)
),
created_ts=
UNIX_TIMESTAMP(created),
last_reset_ts=
UNIX_TIMESTAMP(last_reset)
where start_ts is NULL ;
and
UPDATE statistics_short_term
set start_ts=
IF(start is NULL or UNIX_TIMESTAMP(start) is NULL,0,
UNIX_TIMESTAMP(start)
),
created_ts=
UNIX_TIMESTAMP(created),
last_reset_ts=
UNIX_TIMESTAMP(last_reset)
where start_ts is NULL;
both returned 0 rows affected. Is there anything else I could try?
I have similar problems. No Energy Dashboard data since July 5th. Not possible to configure energy dashboard. Errormessage when trying to configure energy dashboard: Unknown error. Here is my relevant part of HAlog:
2024-07-05 09:15:10.375 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 137, in session_scope File "/usr/src/homeassistant/homeassistant/components/recorder/statistics.py", line 508, in compile_statistics File "/usr/src/homeassistant/homeassistant/components/recorder/statistics.py", line 559, in _compile_statistics File "/usr/src/homeassistant/homeassistant/components/sensor/recorder.py", line 400, in compile_statistics File "/usr/src/homeassistant/homeassistant/components/sensor/recorder.py", line 92, in _get_sensor_states File "/config/custom_components/places/recorder_history_prefilter/recorder_prefilter.py", line 123, in entity_filter return recorder_entity_filter(entity_id) 2024-07-05 09:15:10.379 ERROR (Recorder) [homeassistant.components.recorder.core] Error while processing event StatisticsTask(start=datetime.datetime(2024, 7, 5, 7, 10, tzinfo=datetime.timezone.utc), fire_events=True) File "/usr/src/homeassistant/homeassistant/components/recorder/core.py", line 911, in _guarded_process_one_task_or_event_or_recover File "/usr/src/homeassistant/homeassistant/components/recorder/core.py", line 931, in _process_one_task_or_event_or_recover File "/usr/src/homeassistant/homeassistant/components/recorder/tasks.py", line 166, in run File "/usr/src/homeassistant/homeassistant/components/recorder/util.py", line 644, in wrapper File "/usr/src/homeassistant/homeassistant/components/recorder/statistics.py", line 508, in compile_statistics File "/usr/src/homeassistant/homeassistant/components/recorder/statistics.py", line 559, in _compile_statistics File "/usr/src/homeassistant/homeassistant/components/sensor/recorder.py", line 400, in compile_statistics File "/usr/src/homeassistant/homeassistant/components/sensor/recorder.py", line 92, in _get_sensor_states Seems to me that I have "lost" recorder ability...
Please advice what to do. I am on most curren HA version on raspberrypie
places/recorder_history_prefilter
@gerhardvilsecker You have an similar problem to https://community.home-assistant.io/t/psa-2024-7-recorder-problems/746428 caused by the places
integration
Thank you. Problem was due to places Integration. Update of places resolved my problem.
J. Nick Koston @.***> schrieb am Mi., 10. Juli 2024, 16:32:
places/recorder_history_prefilter
@gerhardvilsecker https://github.com/gerhardvilsecker You have an similar problem to https://community.home-assistant.io/t/psa-2024-7-recorder-problems/746428 caused by the places integration
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/115133#issuecomment-2220678885, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEYXPZNRCESPKE47KDZCCJTZLVAXNAVCNFSM6AAAAABF3PXIS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRQGY3TQOBYGU . You are receiving this because you were mentioned.Message ID: @.***>
The problem
My HA has run flawlessly and without any errors logged. Now, after probably some 24.4. update, my energy dashboard stopped receiving data and after the latest update, the log is filling with unsupported operand type(s) for +: 'NoneType' and 'float'. I have done no changes in the system.
What version of Home Assistant Core has the issue?
core-2024.4.1
What was the last working version of Home Assistant Core?
core-2024.3.x
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Maybe ESPHome that receives energy data, maybe MariaDb, difficult to know
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?