Automation delayed massively

Dear all I have a problem with Hass After each restart my automations work properly but after view minutes they won’t for instant but maybe 10-40 seconds delayed and and so not why I don’t have any delay in automation confit the only reason I would see light be the fact that I’ve MySQL running on other pi. But is there Myome outside facing same issue? It’s very annoying if light in stairs turn off half a minute delayed … any suggestions?

Are you using zwave devices? Could be a problem with the zwave piece.

Info indeed but also other automations with no zwave action fire at the same delay

Could disabling
SQL recorder help and history as the MySQL server runs on another pi? It was running well till upgrading or maybe as cars issue? But why it works at restarting Hass and lags after a while ?

If you’re getting lag, you need to investigate what’s happening on the system at those times. Is there something generating high I/O, something making heavy CPU use, etc etc.

Tools like glances can help here, as can netdata.

Figured out that is was either influx or MySQL as after deactivating it runs flewless