1
0
ansible-home-assistant/home-assistant.yml

26 lines
766 B
YAML

---
- hosts: localhost
tasks:
- name: Build lights automations
template:
src: lights.yaml.j2
dest: configuration/automations/lights.yaml
vars:
lights:
- entityId: light.bathroom_lights
name: Bathroom Lights
- entityId: light.computer_lights
name: Computer Lights
- entityId: light.kitchen_lights
name: Kitchen Lights
- entityId: light.shower_lights
name: Shower Lights
- entityId: light.couch_lights
name: Couch Lights
- entityId: light.desk_lightbar
name: Desk Lightbar
- name: Concat scripts
ansible.builtin.assemble:
src: scripts
dest: configuration/scripts.yaml