Is it good practice to restart Pi every few days?

Disable node-red.

ok … currently i am moving my automations to the in build automations of HA but it will take some time

Press F6, then choose the ‘PERCENT_MEM’ option

thanks, but what I meant is that while the Pi had the problem, it was not very responsive and was not able to sort by Mem from my mobile phone

That’s due to the 30x load it has from the memory swapping going on.

yes I noticed that … so problem is that 1GB RAM is not enough?

In your specific case, it could be just that, or some kind of memory leak with the application/plugin(s) it has.

thanks … do you think there is a way to expose the swap usage to HA ?

If you checked all your Addons and the memory leak is still happening, try searching for automations/scripts/etc that somehow use more memory each time they’re used/triggered.

It’s not an easy task to track down the actual problem, but you’ll find it.

Meanwhile, schedule a reboot everyday at 04:00AM or someting like that. HA not being available for 3 minutes during late night won’t cause any harm, I guess :wink:

Something like this:

automation:
  - alias: 'Restart HA daily'
    trigger:
      - platform: time
        at: '04:00:00'
    action:
      service: hassio.host_reboot

yes that is that worst case scenario :slight_smile: