As always, please CONSTANTLY read and UNDERSTAND what you copy and run on the Internet. Stay safe!
- mkdir a
.sshdir to the root of the config folder (should be/root/homeassistant) ssh-keygento that directory. I've usedssh-keygen -t rsa -b 4096 -C "[email protected]". I will not cover the usage of a passphrase here.- Copy
/root/homeassistant/.ssh/id_rsa.pubcontent to yourSettingsβDeploy keyspage of your Github repo - Because the shell command won't (obviously) have access to all of the HA instance,
cdto your ha configuration directory and run that command to target the newly generatedid_rsafile:
git config core.sshCommand "ssh -i /config/.ssh/id_rsa -o 'StrictHostKeyChecking=no' -F /dev/null"
- Copy
backup.shto the HA configuration folder - Create a
.gitignorefile into the HA configuration folder and add the needed exceptions (I've provided mine) - Copy the automation content (
automation.yaml), create a new automation and paste the content. You can also go to theautomations.yamland write it here if you're more comfortable. I've set the automation to automatically run at 2:00 am everday. Feel free to change it as you like. Also I like to be notified on the app, using the nativenotifyservice.


I am trying to add the .storage/lovelace file to save my Dashboard config. However, any way that I add the .storage folder to .gitignore it will not add to github.
Any advice?