It seems my History and Logbook has stopped working. I have tried deleting the db file but that does not work.
I have noticed, that they work right after a reboot, collecting data for something between 1 - 10 minutes, and then they just stop.
Are there any error messages that approximately correlate to when the recordings stop? This happened to me and I noticed an error about a custom component I had written. I was firing a custom event whose data was not āJSON serializableā, and that caused the recorder to fail. I changed the event so the data was a string and the problem went away. Your situation is probably different, but there hopefully will be some sort of clue in the log.
For what itās worth, I see that error from time to time, but it doesnāt seem to have any side effects that Iāve noticed. Certainly it doesnāt cause the recorder to stop, at least for me.
Hmmm. it seems I was to eager to look in the dev log. I actually see that error aswel, just appearing a couple of minutes, after logbook and history die. I have tried removing both custom components, but that did not work. I will try out some different things, and otherwise start looking into debug of recorder. So far, thanks for your input
I am having this same error.
Also having a component that is not JSON serializableā¦ but donāt know which.
How do I access the dev logs or find out which component?
I get this:
2018-07-27 00:01:05 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: <Element āproduct_airlinkā at 0x6b4e2900> is not JSON serializable
I have no idea what this isā¦
The -C 20 is meant to output more lines around that exact error message so you can see what happened before and after. Itās probably whatās happening right before that error message that can give you the clue as to what is causing the problem.
FWIW, I searched all my installed python packages and I didnāt find anything that has product_airlink in it. Could that be something to do with HomeLink???
Anyway, look at the lines in the log before that error message. Youāll probably see a state change on some component who is the culprit.
Hi, Using 0.80.3 after 1 1/2 day having problems with history and logbook.
With error Timer got out of sync. Resetting
Have deleted db.
Now its working again. Will see how long it will last.
Iām having this issue. Iām currently on 0.96.4, but I noticed this happening on previous versions in the last few weeks.
Before it used to take a while to show the history, so I could see history from around 12 hours ago and prior, but not after 12 hours ago. Not I donāt see any history at all.