feature-requests
feature-requests copied to clipboard
Add GIT support via UI for configuration management
Describe the problem you have/What new integration you would like The ability to specify a upstream git repository for managing configuration versioning.
Please describe your use case for this integration and alternatives you've tried: Currently, the workaround is to manually initialize a git repository in the esphome data directory, and to either manually trigger a git add/git push after updates are performed, or to setup a cron job to invoke a script to check in changes to a git repository.
Ideally- this proposed feature, would enable some basic git integration, to automatically push changes to a upstream git repository. As a future goal, the ability to see previous version directly via the esphome UI would be nice too.
Additional context
I'm a bit surprised more people aren't asking for this. This lets you freely make experimental changes to a working setup, and then "go back" to an earlier version in case it doesn't work out.
A viable MVP for this feature could be:
- Initialize a local repository
- Allow specifying a remote push-only repository
- Commit every time something is saved
- Push after every commit
This would allow viewing history on the remote repository and at least getting an earlier verison.
Nice to have or future features (in no particular order):
- Allow specifying the commit message
- Commit manually instead of at every save
- Pull changes as long as there are no conflicts
- When a firmware is installed, tag it with the install datetime
- View log and revert to older versions
- Individual repositories for each device
- Allow adding a device by cloning a remote repository
Think off the fact that the concept is to use the entire system offline, most people use the Dashboard as Home Assistant add-on...
Just had the same thought. Would be nice if edits would be auto committed so they can easily be restored but I just discoved that these files are just written to the file system 1-1. I'm committing my docker folders to git as an alternative.
I personally only need a little version control. Would be nice though if esphome would git commit when clicking save.