feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Add GIT support via UI for configuration management

Open XtremeOwnageDotCom opened this issue 3 years ago • 3 comments

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

XtremeOwnageDotCom avatar May 29 '21 19:05 XtremeOwnageDotCom

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):

  1. Allow specifying the commit message
  2. Commit manually instead of at every save
  3. Pull changes as long as there are no conflicts
  4. When a firmware is installed, tag it with the install datetime
  5. View log and revert to older versions
  6. Individual repositories for each device
  7. Allow adding a device by cloning a remote repository

gregmac avatar Mar 16 '22 05:03 gregmac

Think off the fact that the concept is to use the entire system offline, most people use the Dashboard as Home Assistant add-on...

nagyrobi avatar Jul 07 '22 09:07 nagyrobi

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.

ramonsmits avatar Oct 06 '22 07:10 ramonsmits