Home Assistant Add-on: Git pull
Load and update configuration files for Home Assistant from a Git repository.
You can use this add-on to
git pull updates to your Home Assistant configuration files from a Git
Follow these steps to get the add-on installed on your system:
- Navigate in your Home Assistant frontend to Supervisor -> Add-on Store.
- Find the "Git pull" add-on and click it.
- Click on the "INSTALL" button.
How to use
In the configuration section, set the repository field to your repository's clone URL and check if any other fields need to be customized to work with your repository. Next,
- Start the add-on.
- Check the add-on log output to see the result.
If the log doesn't end with an error, the add-on has successfully
accessed your git repository. Examples of logs you might see if
there were no errors are:
[Info] Nothing has changed.,
[Info] Something has changed, checking Home-Assistant config...,
[Info] Local configuration has changed. Restart required..
If you made it this far, you might want to let the add-on automatically
check for updates by setting the
active field (a subfield of
true and turning on "Start on boot."
git_branch: master git_command: pull git_remote: origin git_prune: 'false' repository: https://example.com/my_configs.git auto_restart: false restart_ignore: - ui-lovelace.yaml - ".gitignore" - exampledirectory/ repeat: active: false interval: 300 deployment_user: '' deployment_password: '' deployment_key: - "-----BEGIN RSA PRIVATE KEY-----" - MIIEowIBAAKCAQEAv3hUrCvqGZKpXQ5ofxTOuH6pYSOZDsCqPqmaGBdUzBFgauQM - xDEcoODGHIsWd7t9meAFqUtKXndeiKjfP0MMKsttnDohL1kb9mRvHre4VUqMsT5F - "..." - i3RUtnIHxGi1NqknIY56Hwa3id2yk7cEzvQGAAko/t6PCbe20AfmSQczs7wDNtBD - HgXRyIqIXHYk2+5w+N2eunURIBqCI9uWYK/r81TMR6V84R+XhtvM - "-----END RSA PRIVATE KEY-----" deployment_key_protocol: rsa
Name of the tracked repository. Leave this as
origin if you are unsure.
false: If set to true, the add-on will clean-up branches that are deleted on the remote repository, but still have cached entries on the local machine. Leave this as
false if you are unsure.
Branch name of the Git repo. If left empty, the currently checked out branch will be updated. Leave this as 'master' if you are unsure.
reset: Command to run. Leave this as
pull if you are unsure.
- Incorporates changes from a remote repository into the current branch. Will preserve any local changes to tracked files.
- Will execute
git reset --hardand overwrite any local changes to tracked files and update from the remote repository. Warning: Using
resetWILL overwrite changes to tracked files. You can list all tracked files with this command:
git ls-tree -r master --name-only.
- Will execute
Git URL to your repository (make sure to use double quotes).
false: Restart Home Assistant when the configuration has changed (and is valid).
auto_restart is enabled, changes to these files will not make HA restart. Full directories to ignore can be specified.
The following options are for the option group:
repeat and configure the Git pull add-on to poll the repository for updates periodically automatically.
false: Enable/disable automatic polling.
The interval in seconds to poll the repo for if automatic polling is enabled.
Username to use when authenticating to a repository with a username and password.
Password to use when authenticating to a repository. Ignored if
deployment_user is not set.
A private SSH key that will be used for communication during Git operations. This key is mandatory for ssh-accessed repositories, which are the ones with the following pattern:
<user>@<host>:<repository path>. This key has to be created without a passphrase.
The key protocol. Default is
rsa. Valid protocols are:
The protocol is typically known by the suffix of the private key --e.g., a key file named
id_rsa will be a private key using
You have several options to get them answered:
- The Home Assistant Discord Chat Server.
- The Home Assistant Community Forum.
- Join the Reddit subreddit in /r/homeassistant
In case you've found a bug, please open an issue on our GitHub.