This repo serves as a template for creating a new ESPHome project.
It includes a GitHub workflow that will automatically build the configuration(s) and then deploys a simple website via GitHub pages that utilises ESP Web Tools for users to easily install your project onto their device.
- Use this repo template to generate your own repository.
- Make sure to check
Include all branches
so that GitHub Pages is automatically enabled.
- Make sure to check
- Clone your new repository.
- Add your project specific YAML configuration(s) along with the contents of the
project-template-....yaml
files, taking note of the comments in this template file and name accordingly. - a. Update .github/workflows/publish.yml to contain your own YAML config filename(s). b. Update .github/workflows/ci.yml to contain your own YAML config filename(s).
- Update static/_config.yml to change the title, description and basic theme of the generated website.
- Add more content to the static/index.md file to explain your project. Make sure to leave the installation code tags in place so users get the install button.
- Add permission to github-actions[bot] a. go to your project Settings, under the Actions collapsible, click on General. b. scroll down until you find Workflow permissions and mark the option Read and write permissions. c. Hit the save button
- Push your changes to the repository and GitHub Actions will automatically build and deploy your project.