homeassistant: Disable manual mqtt configuration

This commit is contained in:
Timo Makinen 2025-04-19 19:14:07 +00:00
parent ed4debd59d
commit ae59e21a2e
2 changed files with 0 additions and 23 deletions

View file

@ -146,16 +146,6 @@
group: "{{ ansible_wheel }}"
setype: _default
- name: Create mqtt config file
ansible.builtin.template:
dest: /srv/homeassistant/mqtt.yaml
src: mqtt.yaml.j2
mode: "0644"
owner: root
group: "{{ ansible_wheel }}"
setype: _default
notify: Restart homeassistant
- name: Create directories for custom integrations
ansible.builtin.file:
path: "{{ item }}"

View file

@ -1,13 +0,0 @@
---
sensor:
{% for shelly in shellies | selectattr("name", "match", "^shellyplug-s-") | list %}
- name: Power Usage
state_topic: home/{{ shelly["room"] }}/{{ shelly["device"] }}/power
unique_id: {{ shelly["name"] }}
unit_of_measurement: W
device:
name: {{ shelly["device"] | capitalize }}
suggested_area: {{ shelly["room"] | replace("_", " ") | capitalize }}
identifiers:
- {{ shelly["name"] }}
{% endfor %}