Inspired by the thread, I wanted to automate the deployment workflow for my HASS config.
My goal was to have HASS automatically pull the config from Github, once the Travis CI build check succeeded.
I added two sensors for getting information from Travis CI regarding the latest build:
Whenever a build is passed in Travis CI, the “sensor.travis_build_label” will return a new label. This state change can be used as a tigger in an automation.
The following automation is used to trigger a new config update and to check if the latest build was passed by Travis CI
This script eventually executes the following bash script:
As a result, I just need to push my configuration changes to Github. If the changes will pass the Travis CI check, the new version of the configurations is automatically deployed.