Refactor mqtt topics for shelly plugs

This commit is contained in:
Timo Makinen 2025-04-05 17:37:56 +00:00
parent 95c66d976f
commit d6cc79dcb3
3 changed files with 10 additions and 5 deletions

View file

@ -2,7 +2,7 @@
sensor:
{% for shelly in shellies | selectattr("name", "match", "^shellyplug-s-") | list %}
- name: Power Usage
state_topic: home/{{ shelly["room"] }}/{{ shelly["device"] }}/relay/0/power
state_topic: home/{{ shelly["room"] }}/{{ shelly["device"] }}/power
unique_id: {{ shelly["name"] }}
unit_of_measurement: W
device: