Fix multiple repairs at once

It would be really good if we can fix multiple issues (That all require the same fix, The unit of this entity changed, for example where I am happy for all 200 entities all the update the DB to the latest unit)

Otherwise, I am stuck 1 by 1 clicking the same thing over 200 times :slight_smile:

URL

Version

2024.10.0

I have not tried because all my errors are fixed but you might be able to, sort of. As of 2024.10.0 the statistics tab is the new list component. So while you cannot bulk repair from the repairs list, what you might be able to do is go to the statistics tab, sort on broken statistics, multiple select all the ones you wnt to repair and see if there’s an action for it. If any one can try and report back, that would be great.

you can sort and multiple select, but there does not appear to be an option for a batch fix issue option…

2 Likes

heh, 1000%, my 180 odd repairs can just sit there forever cos that’s how long it’d take to do them all one at a time lol.

1 Like

100% agree. This should be possible. Now, I have to click 80 times for 40 fixes.

1 Like

417 repairs here. I guess I’ll just live with them until bulk repairing is possible.

3 Likes

Just “earned” 114 repairs regarding changed units of sensors after updating the solaredge integration… Since I didnt want to perform 228 clicks I readded the solaredge device from scratch…

Just upvoted the feature request for that reason.

I’m pretty sure this script works (I was fixing issues as I was working on it), I provide it with no warranty lol

This will clear the statistics for all the issues that are marked with “units_changed”.

Visit HA in your favourite browser, go to the issue tab, open developer tools…

window.hassConnection.then(c => 
    c.conn.sendMessagePromise({type: "repairs/list_issues"})
        .then(response => {
            const issuesArray = response.issues || [];
            return issuesArray
                .filter(issue => issue.translation_key === "units_changed")
                .map(issue => issue.translation_placeholders?.statistic_id)
        }).then(issues => {
            console.log("Clearing issues")
            console.dir(issues)
            c.conn.sendMessage({
                type: "recorder/clear_statistics",
                statistic_ids: issues
            })
        })
);

It can take a few moments but it should clear all the issues (you may need to refresh or open one and click the fix)

I’d rather not have the repairs feature at all than be stuck doing them one at a time. The design is a complete implementation failure.

On top of not being able to do multiples, it’s another example of fcking modal pop-ups - even the “Success!” is a fcking modal that needs to be manually closed by clicking one specific tiny little square. Infuriating.

Mine showed up 3100 repairs all do to the same authentication problem. ffffffffffff. I had to remove the integration and restarted home assistant.

For whoever comes here looking for a solution. Look at this :slight_smile:

1 Like