So far I have found no solution: cron on the pi doesn’t work (or there is no true access to it when sshing to a pi running hass.io); there is no sudo in hass.io and it can’t be installed, so you can’t run a shell script to reboot; etc etc etc
hassio host reboot work? If so, you should be able to add it to a script and add to an automation to fire it off.
Isn’t that only available from the command line?
Sorry, I wasn’t thinking straight.
You should be able to call the service
Awesome! Works! Thanks!
@fezfox are you able to write this up if you came up with a solution?
yes I did:
- id: reboot_pi initial_state: true alias: 'Reboot pi daily' trigger: - platform: time at: '03:00:00' action: - service: hassio.host_reboot
Apologies for resurrecting an older thread, but could you be more specific on how you implemented the solution described above? Did you add this in the configuration.yaml file?
Thanks… Fairly new to HA and a lot of the discussions are more than a little confusing since they are written by people who obviously know what they’re doing, while those of us who don’t (or barely) are struggling to learn.
This is an automation. So you could
- include it directly in
configurations.yaml, as above preceeded by
- more typically, people put all their automations as above in a single filed called
automations.yamland refer to that file in
automation: !include automations.yaml
- In my case, I actually have an automations folder and that is in a file called
system.yamland every file in that folder is included with this line in
automation: !include_dir_merge_list automation/
add the above to your
configrations.yaml file, indented after
Thank you for the clarification! HomeAssistant can be rather daunting in the beginning.