I need to omit zigbee2mqtt/Home/+/Radiator/set
I thought that this tagdrop
would do it but it doesn’t.
Any ideas?
[[inputs.mqtt_consumer]]
servers = ["tcp://127.0.0.1:1883"]
topics = [
"zigbee2mqtt/Home/+/Radiator",
"zigbee2mqtt/Home/+/Radiator/+",
]
data_format = "json_v2"
[inputs.mqtt_consumer.tags]
bucket = "zigbee"
[inputs.mqtt_consumer.tagdrop]
position = [ "set" ]
#topic = [ "*/set" ]
[[inputs.mqtt_consumer.json_v2]]
measurement_name = "temperature"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "zigbee2mqtt/Home/+/Radiator"
tags = "_/_/room/_"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "zigbee2mqtt/Home/+/Radiator/+"
tags = "_/_/room/_/position"
[[inputs.mqtt_consumer.json_v2.field]]
path = "local_temperature"
rename = "temperature"
type = "float"
[[inputs.mqtt_consumer.json_v2]]
measurement_name = "valve"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "zigbee2mqtt/Home/+/Radiator"
tags = "_/_/room/_"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "zigbee2mqtt/Home/+/Radiator/+"
tags = "_/_/room/_/position"
[[inputs.mqtt_consumer.json_v2.field]]
path = "position"
rename = "valve"
type = "float"
[[inputs.mqtt_consumer.json_v2]]
measurement_name = "battery"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "zigbee2mqtt/Home/+/Radiator"
tags = "_/_/room/_"
[[inputs.mqtt_consumer.topic_parsing]]
topic = "zigbee2mqtt/Home/+/Radiator/+"
tags = "_/_/room/_/position"
[[inputs.mqtt_consumer.json_v2.field]]
path = "battery"
type = "int"