Updating¶
YAML Mode¶
- Open a terminal on your HA install.
- Navigate to where you installed Creative Button-Card Templates (eg.
/config/creative-button-card-templates/)
๐โโ๏ธ If you're updating then make sure to keep an eye out for the breaking changes which are highlighted throughout the docs like this: ๐งจ Breaking Change:
๐โโ๏ธ If you have made any changes to the source files (eg. modified files outside of the
customfolder) then make sure to rungit stashto stash them before you pull the latest changes. If you don't do this then you will lose those changes when you pull the latest files.
Updating from v0.2.x (Updating from v0.3+ skip this step)¶
-
navigate to the installation directory (
/config/creative-button-card-templates/or wherever you installed it) and run the following command to update:curl -fsSL https://raw.githubusercontent.com/wfurphy/creative-button-card-templates/refs/heads/master/bin/update | bash
Updating from v0.3+¶
- navigate to the installation directory (
/config/creative-button-card-templates/or wherever you installed it) and run
bin/update
Storage (UI) Mode¶
If you have custom templates follow the instructions above for Upgrade and then run
bin/exportto create an updatedcbc.ymlfile with your custom templates included. If you have no custom templates then simply download the latestcbc.ymlfrom the releases page.
- Choose the update source:
- If you have no custom templates, copy the contents of
cbc.ymlfrom the latest release. - If you installed Creative Button-Card Templates with the install script and/or created custom templates, run
bin/updatefrom your local install and answerywhen asked if you would also like to updatecbc.yml. If you skipped thecbc.ymlexport prompt, runbin/exportafterwards and copy the contents of the resultingcbc.yml.
- If you have no custom templates, copy the contents of
- Open a browser and navigate to your Home Assistant dashboard.
- Click the three dots in the top right corner and choose
Edit Dashboard. - Click three dots again and choose
Raw Configuration Editor. - Highlight all of the existing content of
button_card_templates:. This will probably be from the first line to just aboveviews:. - Replace the highlighted text with the copied text.
- Click Save and close the raw configuration editor.