jimford
(Jim Ford)
June 3, 2023, 2:55pm
1
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
Well, every HA major update does reboot automatically, any HACS integration update forces to reboot HA, so, like we have a choice…
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.
jimford
(Jim Ford)
June 3, 2023, 9:26pm
7
Do those that reboot periodically do it manually or by (say) cron?
Jim
A button
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
3 Likes
HA automation too, I added a simple script to copy the logs to a separate folder, just in case I missed something
jimford
(Jim Ford)
June 4, 2023, 11:00am
11
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
fasihi01
(Fasihi01)
May 19, 2025, 5:10pm
14
This is great and it actually DOES reboot the (virtual-) machine on sundays.