It starts to show correctly after a restart (albeit the history of when it actually went to Awake is lost.
This is not a permanent fix as as I restarted yesterday as well.
I checked but see no similar problems in my instance. What database do you use? could it be there’s something broken there? Maybe the recorder database shows corruption or the connection to the database is unreliable? Is there anything in the logs?
I would be surprised if it is only input_select, I guess the effect is easier to catch there. Do you see the same in binary sensors?
I am using the HA database. How can I check if there is something broken? If it were broken, why would it update correctly after a restart, always record one of the states but then not record another?
I have only noticed it so far in some (but not all) input_select and timers - but that is because I am monitoring some to check/analyse/prove a new automation.
I am running 2 instances and have just tried running a timer on the 2nd one. It is also not recording when the state is ‘active’. I noticed that it does show correctly in ‘history-graph’ but disappears when the screen is refreshed. Both the following screenshots were taken a second apart. The first before the resters, the 2nd after.
Before:
After:
edit: I will now check some binary_sensors
edit2: Forgot to add that I do have errors in my logs, but not sure they are relevant to this - what should I be looking for there?
I’m no expert on how to check for curruption. But if it is the default db, you do not need to look at the external dbms. The commit interval is a minute. If during that minute the system reboots you may lose values from the last minute, but I think I can safely assume you’re not rebooting every 55 secs.
Are you using an SD card for the recorder or a SSD? Maybe you’re slowly watching your SD card dying?
Note that I have not changed anything other than upgrading and I am seeing this same behaviour on 2 different instances; the only commonality is that they both use HA Container (docker).
Update:
Deleted all timers, created new ones (same names) - they do have a persistent history, absolutely weird. Update:
After a couple of “timer start” - again no History.