This project generates the automation YAML content for updating all devices listed in the vars.yml file automatically at a specific time. The generated automation handles checking for available updates and performs the updates based on the schedule set by a helper.
- Generates the automation YAML content for updating all devices from the
vars.ymlfile automatically at a specific time. - The time is set via a schedule helper, which must be created in Home Assistant before running the playbook.
-
Create a schedule helper in Home Assistant, which will control when the updates are triggered.
-
Create the
vars.ymlfile:- Copy the
vars.yml.templatefile tovars.yml. - Populate
vars.ymlwith your devices (lights, thermostats, plugs, etc.).
- Copy the
-
Run the Ansible playbook to generate the automation:
ansible-playbook playbook.yml
-
Copy the generated automation:
- After the playbook runs, a file called
generated_update_automation.yamlwill be created. - Copy the content of this file into the YAML view of a new automation in the Home Assistant UI.
- After the playbook runs, a file called