Automate Core Restart?

I need to set up an automation, or scheduled task, to restart HA Core every evening.
Not able to find any info on this.
Can someone point me in the right direction?
Thanks!

P.S. More specifically, restart generic.camera as an automation or scheduled task.

Actually a Core installation, i.e. python venv? If not which one?
If so, I assume you have a startup script, don"t you? Which one?

This is Home Assistant OS running on a Raspberry Pi.
Core 2022.2.9
Supervisor 2022.01.1
Home assistant OS 7.4 - production

No startup script - that I know of.

For restarting HA:

For restarting HAOS

1 Like

I have a question about this 2 restart possibilities. Whats the difference? I only want to restart Home Assistant like settings/system/restart? Is this HA restart? And what make HAOS Restart?

HA: Is this the servie for HA Restart?
Service "Home Assistant Core Integration: Restart

HAOS: Is this the service for HAOS Restart?
Service "Home Assistant Supervisor: Reboot the Host system

@lianyu : How did you solve your problem. I have a problem that my camera snapshots not always displayed on the Dashboard. After a restart, everything works without problems. Do you restart HA? What’s the difference between restarting HA and restarting HAOS?

Restarting HA is restart just the HA application.
HAOS is the operation system of your device. You “restart” the OS by rebooting, really.

Restarting HA is like the button settings/sytem/restart and the service is “Home Assistant Core Integration: Restart”?

Yes, Indeed

And HAOS restarts everything (Application, OS etc.)? And this is the "Service “Home Assistant Supervisor: Reboot the Host system”?

Is it also possible to restart only an HACS integration automatically?