Editing Home Assistant slow

Hello,

Lately I’ve been having speed issues in home assistant. Not so much the operation at home (or I don’t notice it), but when I make adjustments.
For example, calling up an automation takes much longer to load.
Also when I adjust a dashboard and I go to the “raw configuration editor” and search for something via CTRL+F, the view doesn’t jump to that line.

Home assistant runs on an Odroid N2+

I’m working on a Windows laptop (with Google Chrome with all extensions disabled).

Any idea ?

Start with checking available memory, disk space, memory swap, memory processor load, presence of errors /warnings in HA log and a browser console.

Restarted HA

Processor, memory and disk space seems OK :

Nothing special in the log :

I tried to use another browser (Brave), but not better.

What do you mean with the rest, where can I find that ?

PS
I have 141 automatisaties and 181 scripts

Browser console can be shown in code inspector in chrome, other browsers have similar tools.
Metrics like memory, swap etc can be gathered by a command like “top” inputted in a command line.

I’m seeing the same issue on my RPi5 8GB.
It seems to find the string I’m searching for - I tried that with a careful ‘Search & Replace’ - but the editor doesn’t jump to the respective line to show it to me.

Did you have any success getting this fixed?

Are you using Firefox by any chance? I seem to recall seeing a thread about this on firefox only.

Nope, I’m on Edge and it doesn’t seem to work in Chrome either :frowning:

Just tried to reproduce your issue and I haven’t been able to.

Search & Replace works perfectly fine here - first click of Replace takes me to the string I’m interested in. Second click replaces the string.
I still haven’t updated to the July (2025.7.x) release for what it’s worth.

That might be good for you in this case - I’m on 2025.7.1
I tend to avoid the .0 versions for exactly for this kind of reason, but it seems like I got caught out this time anyway.

I’m up-to-date with everything on Home Assistant, but still no solution.

Could the problem be the size of automations.yaml ? I tried to reduce it rewriting some stuff, but it had a size of 688 KB. Most of my automations load quick, but I have f.e. a big automation which (just to give an idea) when I paste it in notepad and save it takes 58 KB.

When I copy my complete dashboard via the raw configuration editor in notepad and save it, I have a file of 919 kb. I tough this was the problem (to big), but even with another small dashboard I have that problem.

So I don’t know anymore…

Does it happen in safe mode?

Just tried that and indeed starting in safe mode makes it full speed again :slight_smile:

And now, what does this mean ?

Perhaps some custom plugin causes the issue. Suggest to post a list of your custom plugins. Also, already suggested you to check a browser console.

I have an Odroid N2+ as well, it was exhibiting the same behaviour.

Key thing for me was reducing the database size.

Things I did:

  • Reduced my database size (close to 3GB, now down to close to 300MB)
  • Clear Home Assistant Log File (Restart Twice, clears *.log and *.log.1 )
  • Fixed Template errors (significant slow downs)
  • Fixed and avoided editing macros in custom templates while they were live (caused constant restarts)

Monitor Key Home Assistant Stats

Use Spook and System Monitor to keep an eye on things

  • Also exclude these entities from your recorder database (you only need the live readout and no history)
  • Most of my automations are run in NodeRED Addon.

Keep Recorder Database Under Control

Example of my rules

  • I use ONLY Recorder Exclude rules
  • Any new entities I add will automatically be added to the recorder database unless I exclude them
  • There is no need to configure the History rules anymore (this is deprecated). If it is included in recorder it is included in history.

Recorder

recorder:
  exclude:
    domains:
      - automation
      - button
      - script
    entity_globs:
      - sensor.time*
      - sensor.aarlo_motion*
      - light.awtrix*
      - select.awtrix*
      - button.awtrix*
      - sensor.awtrix*
      - binary_sensor.awtrix*
      - switch.awtrix*
      - number.*occupancy*
      - select.*behaviour
      - sensor.aarlo_last*
      - sensor.door*temperture
      - sensor.door*count
      - sensor.window*temperture
      - sensor.window*count
      - siren.aarlo*
      - sensor.text*
      - sensor.soil*state
      - sensor.mushroom*
      - sensor.shield*
      - sensor.soil*unit
      - sensor.*battery_state
      - sensor.system*
      - update.*
      - sensor.swc*
      - sensor.sac*
      - light.local*
      - binary_sensor.local*
      - switch.local*
      - number.local*
      - sensor.local*current
      - sensor.local*power
      - sensor.local*voltage
      - binary_sensor.aarlo_motion*
      - binary_sensor.aarlo_connected*
      - sensor.devonport_airport*
      - sensor.*air_quality_index
    entities:
      # 255 entities in total truncated list
      - sensor.aquarium_ammonia
      - light.30cm_twin_bar_light
      - sensor.aquarium_last_reading
      - sensor.aquarium_ph
      - sensor.input_datetimes
    event_types:
      - call_service

Logbook

  • I use ONLY Logbook Include rules
  • I have to specifically add entities if I want to see them in the logbook
  • These entities must be not be excluded from the recorder to show.
logbook:
  include:
    domains:
      - camera
      - climate
      - calendar
      - media_player
    entity_globs:
      - sensor.netatmo*
      - sensor.now*
      - sensor.aarlo_battery_level*
      - sensor.ac*
      - light.aarlo*
      - sensor.dewpoint*
    entities:
       # 236 entities in total truncated list
      - switch.master_bathroom_motion_sensor_led_indication
      - switch.media_panel_switch
      - switch.nad_mute_switch
      - switch.normal_tv

Seems there is a problem with the slider button card and browser mod.

I don’t have (anymore) the slider-button-card in hacs :

But found a reference in resources, so I deleted it :

And restarted HA.

When calling the script I get this :

Seems a lot better, but still takes 10 seconds to load the automation.

Remove browser- mod for testing.
And update card-mod.

Same here, I don’t have it anymore :

But I see it in the resources, so I deleted it :

Now 5-6 seconds to load :slight_smile:

Card-mod version is already v3.5.0

But after deleting my browser data (except cookies) the problem is back ? So I restarted ha again and now it’s OK again ? :crossed_fingers:

Downgrade your version of v3.5.0 to v3.4.5. There was many problems with v3.5.0

Did the downgrade. Restarted ha, deleted data from browser, restarted my laptop…automation needs about 38 seconds to load :disappointed_relieved:

Remove mushroom for test.
And you still have errors in console.