Refactor mqtt topics for shelly plugs
This commit is contained in:
parent
95c66d976f
commit
d6cc79dcb3
3 changed files with 10 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue