use %fieldname
This commit is contained in:
@@ -256,7 +256,7 @@ definition-topic ?= %haprefix/%type_topic/%{TOPIC}_%FIELD/config
|
|||||||
# HA integration: this is the config topic payload for HA's MQTT discovery.
|
# HA integration: this is the config topic payload for HA's MQTT discovery.
|
||||||
definition-payload = {
|
definition-payload = {
|
||||||
"unique_id":"%{TOPIC}_%FIELD",
|
"unique_id":"%{TOPIC}_%FIELD",
|
||||||
"name":"%prefixn %circuit %name %field",
|
"name":"%prefixn %circuit %name %fieldname",
|
||||||
"device":%circuit_part,
|
"device":%circuit_part,
|
||||||
"value_template":"{{value_json[\"%field\"].value}}",
|
"value_template":"{{value_json[\"%field\"].value}}",
|
||||||
"state_topic":"%topic"%field_payload
|
"state_topic":"%topic"%field_payload
|
||||||
|
|||||||
Reference in New Issue
Block a user