LEARNING: Failed HA restarts when using long filter times

This is a LEARNING that may apply to more users.

I have been struggling with HA Restarts for the last 6 months or so.
The restarts would:

a. take a long time (45-60 min),
b. result in failed loading of integrations -primarily ZIGBEE and
c. loss of the automations.yaml.
In the last week it got so bad, that the the update to HA_core_260604 would not execute. :frowning:

In the past (> 1 year ago) I had similar issues with long duration restarts, and thought I solved it then by removing the filtering from yaml and adding FILTER HELPERS. Somewhere I read that these would survive a restart... and for a while it worked...

And so now I was focusing on ZIGBEE being the culprit. WRONG.

Today I removed any and all filter HELPER with filter times over some minutes (especially the 24hr, 1hr and 15min ones).

Now restarts are a BREEZE. restarts in just a few minutes, small log file, ZIGBEE and other integrations load normal, automations.yaml remains present... :slight_smile:

LEARNING: DO NOT USE LONG FILTER TIMES.

Comments welcome.

Bernard

That seems like a bug to me.

Instead of restoring the filter helper entity state after a restart it seems like home assistant is waiting for the entity state to be calculated.

You should report this issue here:

However I have a 30 minute low pass filter on my solar generating that I use for automations. It does not interfere with my usual 30 sec restart.

Are you sure this is the cause of your long restart times?

After removing them it all works.

It must be noted that most of them (about 10-12) were 24hr filters, only 1 with1 hr, and 1 with 15 mins.

I did not test which were the issue, just removed them, as they are all for comparison and display purposes.