2024.10: Heading in the right direction

if you open the device page, you should see the entites - but they might be deactivated

Thanks!

@tom_l also assisted and pointed out it’s now under the diagnostics section (this wasn’t intuitive for me).

So after the update I was faced with 136 issues because of statistics data. That in itself is great, I like having the peace of mind that once those repairs are gone, the data consistency is ensured.
However, to get rid of these repairs, oh my god…
95% of these are coming from the unifi network integration, more specifically from this commit, where they changed the data rate of a network client from Mb to MB/s.
From what I gathered, they indeed changed the measurements from tansfered megabytes, to megabits per second. Also I’m (today at least) not really interested in that data, so I can choose the easy way out and select ‘Delete all old statistic data for this entity’

But having to go through that list of 136 entities, clicking each one, selecting that option and clicking ‘Fix issue’ is very, very, very cumbersome…
The Dev tools > Statistics page has a multiselect, when I saw that I almost rejoiced, but unfortunately tthat doesn’t allow you to fix the issue across all sensors :frowning:

Edit: On top of that, on the ‘Repairs’ page these repairs seem to take long to disappear (possibly because the SQL queries to remove the old data take their time?), so after fixing some entities, I loose track of where I was and notice I’m fixing issues which I already fixed before…
The Dev tools > Statistics page doesn’t seem to suffer from that last issue, once I click ‘Fix issue’ there, the issue is gone from the list.

In my case they kept displaying more than an hour and gone after HA reboot.
Not to mention that corr. statistic issues were fixed in Dev tools several weeks ago and appeared as Repairs after update to 2024.10

Yep, they only disappear when the next statistics get rolled up. Typically once an hour.

For the multi-select, I believe you could have used spook to handle it with 1 service call via a script, however it requires templating.

Yes, as said above, they appear when the statistics calculation executes, which is once an hour. That calculation is what produces the repair because it’s looking at existing statistics while running the calculation.

I’ve also had an issue. I have a Tradfri shortcut button e1812 using an automation from blueprint by EPMatt. I’ve set up z2m actions for short, long and double press and only the long press action still works. All of a sudden they fail one or both conditions.

I see some legacy syntax errors, but these aren’t supposed to be breaking yet. Even if I correct these in the blueprint and remake the automation I get either the same result or the other condition fails.

One short press of the button sends action=“on”, then action=NULL, then action=“”, almost all simultaneously. Payloads for long and double press are different for the first action, but the sequence is the same, except long press also sends a release sequence. None of this should have changed with the HA release, though, so somehow it’s being handled differently.

But these repairs appeared after a few HA reboots (on the 3rd run may be, and each run was more than an hour) after updating to 2024.10.
I.e. not after the 1st hour after updating to 2024.10.
And as I said - this statistics issues were fixed several weeks ago - why Repairs include them?

These statistics repairs were shown within several hours, then I rebooted and then they gone.
Anyway, is it normal that a “fixed” (and probably “submitted”) repair still shown for some time after a user fixed it?

I think you’re miss understanding that when HA boots up, it has 0 repairs. Then it creates the repairs when it finds them. Doesn’t matter what repairs you had before you restarted, during boot up, it starts from 0.

Probably I am misunderstanding since I do not see how your last post explains everything.

  1. Approx 01.09 some statistics issues were shown in Dev tools - Statistics and I fixed them (deleted old LTS). Then these issues were not shown.
  2. Approx 01.10 a new 2024.10 version was installed.
  3. After a few reboots where each run was more than an hour - new Repairs came for those old statistics issue. These issues were not shown in Dev tools.
  4. I opened each repair, pressed “delete” - but repairs were kept shown for a few hours. Then I rebooted, repairs gone.

You start the system.

It has 0 repairs.

When statistics runs sometime later, could be an hour, could be 2 hours, you get a repair (if there’s something to repair).

You restart.

The system boots up.

It has 0 repairs.

When statistics runs sometime later, could be an hour, could be 2 hours, you get a repair (if there’s something to repair).

etc

Well, the sequence you described is clear, thanks, but nothing changed in my setup within these runs - those entities were still without state_class, I saw no issues in Dev tools -Statistivs, and these repairs seem to appeared from nowhere. And why it did not disappear after I submitted them - a question as well.

Clicking submit should delete the LTS data, if it does not, you can attempt to fix it from the statistics table in developer tools → statistics tab.

Let me remind that there were no issues in Dev tools - Statistics since they were fixed a month ago.

If there’s no state_class, then there is a problem in the data if LST exists for it. That’s what the repair is telling you.

You can verify this yourself by looking at the history for the entity in question. Go to the history tab, expand the date range to 10 years or so. If you have data that’s beyond recorder, the error is telling you that “You had statistics before, now you do not because state_class is missing”.

The error then goes on to tell you, “If you did not create the entity, you should create an issue with the integration that’s creating the enitty”.

Repairs told me same as a corresponding statistics issue, nothing more, and of course I fixed all these issues and deleted statistics which happened a month ago - but anyway Repairs decided to remind me about these already fixed issues.

Post the repair please.

Petro, unfortunately I have not save a screenshot, but here I posted a video.
It quickly shows a text, sorry, have no better version.

taken from your video

Read what’s in the red box. You may have to do one of those 3 things.

The 3rd case, the integration set state_class intentionally, then I set it to “none” via customize, then I was proposed to delete LTS, and I did it.