41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
- name: Build lights automations
|
|
delegate_to: localhost
|
|
template:
|
|
src: lights.yaml.j2
|
|
dest: './build/automations/lights.yaml'
|
|
|
|
- name: Build music button automations
|
|
delegate_to: localhost
|
|
template:
|
|
src: music-button.yaml.j2
|
|
dest: './build/automations/music.yaml'
|
|
vars:
|
|
room: Bathroom
|
|
room_id: bathroom
|
|
device_id: ea9059ad2df037a012ab01a575108dc5
|
|
player_entity_id: media_player.bathroom
|
|
|
|
- name: Build unavailable automations ZHA
|
|
delegate_to: localhost
|
|
template:
|
|
src: unavailable-zha.yaml.j2
|
|
dest: './build/automations/unavailable-zha.yaml'
|
|
vars:
|
|
devices: "{{ zha_devices }}"
|
|
|
|
- name: Build unavailable automations Z-Wave
|
|
delegate_to: localhost
|
|
template:
|
|
src: unavailable-zwave.yaml.j2
|
|
dest: './build/automations/unavailable-zwave.yaml'
|
|
vars:
|
|
devices: "{{ zwave_devices }}"
|
|
|
|
- name: Build battery info automations
|
|
delegate_to: localhost
|
|
template:
|
|
src: low-battery.yaml.j2
|
|
dest: './build/automations/low-battery.yaml'
|
|
vars:
|
|
entities: "{{ battery }}"
|