How to Reboot Periodically from Core

Hi All,
Can someone guide me on how to configure a regular periodic reboot? I have tried editing crontab (crontab -e) from SSH session, but it doesn’t appear to “stick.” Something is over-writing crontab on boot.

I have a scenario of remote management where periodically I’m unable to access via Nabucasa. I would like to reboot every 7-14 days or so, so looking for a method. I thought I could easily drop in a crontab job, but I tried doing that via terminal into Core, but ran into the over-write scenario.

Any pointers?


You can do this via an automation, triggered at 1am every sunday or something, then in the action call the following service: homeassistant.restart.

Thank you. Will walk down that path and give a try.