Periodically Reboot?

We’re often advised to occasionally reboot our devices - router, mobile 'phone etc - to refresh the system (I guess to clear stale locks, recover leaked memory etc.)

Does anybody regularly reboot their installation of HA with say a cron job, to refresh the system?

Jim

I do reboot HA since >1.5 year. this because more than a couple of things went pear shaped and after reboot it looked fine…so daily 2AM…restart HA
However, this is not the solution imo … one should tackle the individual issues 1-by-1
But… well… my daily reboot works fine for me…being lazy for the moment :slight_smile:

Well, every HA major update does reboot automatically, any HACS integration update forces to reboot HA, so, like we have a choice… :smiley:

And yes, once in a time full reboot of the machine on one of those moments does not harm…

I am only doing my HA container, you’d recommend the whole server?

Depends on your setup, what you are running on it.

I reboot HA at 2 am each day. I reboot the host at 2 am on Sundays.

Probably overkill.

Do those that reboot periodically do it manually or by (say) cron?

Jim

A button :wink:

type: glance
show_header_toggle: false
show_state: false
entities:
  - entity: zone.home
    icon: mdi:alert
    name: Server herstart
    tap_action:
      action: call-service
      service: hassio.host_reboot
1 Like

I use a home assistant automation

alias: System Daily Restart
description: Restart host system or Core daily at 2.01 am
trigger:
  - platform: time
    at: "02:01"
condition: []
action:
  - if:
      - condition: template
        value_template: "{{ now().strftime(\"%A\") == \"Sunday\" }}"
    then:
      - service: hassio.host_reboot
        data: {}
    else:
      - service: homeassistant.restart
        data: {}
mode: single

2 Likes

HA automation too, I added a simple script to copy the logs to a separate folder, just in case I missed something

Looks good! I’ve taken the liberty of copying your automation and will give it a try.

Jim

1 Like

Those things don’t reboot the machine. They stop and start the HA container, the machine remains running (as do all add-ons and supervisor).

The only update which reboots the machine is an OS update

That’s exactly, what I did said :stuck_out_tongue: