MQTT consumer is not including data from one specific topic (zigbee2mqtt/+)

To be honest, I am horribly confused and I have no idea what’s going on. I have even checked out everything with almost empty config, and it’s still not working.

I have a telegraf config:

[global_tags]
dc = "localhost"

[agent]
interval = "1s"
debug = true

[[outputs.file]]
files = ["stdout"]
data_format = "influx"

[[inputs.mqtt_consumer]]
name_prefix = "influx"
servers = ["tcp://192.168.8.42:1883"]
qos = 0
connection_timeout = "30s"
topics = [
    "zigbee2mqtt/+",
    "zigbee2mqtt2/+"
]
persistent_session = true
client_id = "influx2"
data_format = "json"

And I have a bunch of messages published to zigbee2mqtt/+ topics, visible in MQTT Explorer and in mosquitto_sub:

zigbee2mqtt/0xa4c13813dc7c2261 {"battery":100,"battery_low":false,"linkquality":55,"tamper":false,"water_leak":false}
zigbee2mqtt/0xa4c13813dc7c2261 {"battery":100,"battery_low":false,"linkquality":52,"tamper":false,"water_leak":false}
zigbee2mqtt/0xa4c13813dc7c2261 {"battery":100,"battery_low":false,"linkquality":94,"tamper":false,"water_leak":true}
zigbee2mqtt/0xa4c13813dc7c2261 {"battery":100,"battery_low":false,"linkquality":84,"tamper":false,"water_leak":false}
zigbee2mqtt/0xa4c13813dc7c2261 {"battery":100,"battery_low":false,"linkquality":52,"tamper":false,"water_leak":true}
zigbee2mqtt/0xa4c13813dc7c2261 {"battery":100,"battery_low":false,"linkquality":60,"tamper":false,"water_leak":false}
zigbee2mqtt/0xa4c13813dc7c2261 {"battery":100,"battery_low":false,"linkquality":47,"tamper":false,"water_leak":true}
zigbee2mqtt/0xa4c13813dc7c2261 {"battery":100,"battery_low":false,"linkquality":55,"tamper":false,"water_leak":false}

Yet telegraf is not showing anything:

machine@docker-influx:/srv/docker$ docker run --rm -it -v ./telegraf2.conf:/etc/telegraf/telegraf.conf:ro telegraf:1.32 --debug
2025-01-16T23:08:57Z I! Loading config: /etc/telegraf/telegraf.conf
2025-01-16T23:08:57Z I! Starting Telegraf 1.32.3 brought to you by InfluxData the makers of InfluxDB
2025-01-16T23:08:57Z I! Available plugins: 235 inputs, 9 aggregators, 32 processors, 26 parsers, 62 outputs, 6 secret-stores
2025-01-16T23:08:57Z I! Loaded inputs: mqtt_consumer
2025-01-16T23:08:57Z I! Loaded aggregators:
2025-01-16T23:08:57Z I! Loaded processors:
2025-01-16T23:08:57Z I! Loaded secretstores:
2025-01-16T23:08:57Z I! Loaded outputs: file
2025-01-16T23:08:57Z I! Tags enabled: dc=localhost host=ab386e9fb96f
2025-01-16T23:08:57Z I! [agent] Config: Interval:1s, Quiet:false, Hostname:"ab386e9fb96f", Flush Interval:10s
2025-01-16T23:08:57Z D! [agent] Initializing plugins
2025-01-16T23:08:57Z D! [agent] Connecting outputs
2025-01-16T23:08:57Z D! [agent] Attempting connection to [outputs.file]
2025-01-16T23:08:57Z D! [agent] Successfully connected to outputs.file
2025-01-16T23:08:57Z D! [agent] Starting service inputs
2025-01-16T23:08:57Z I! [inputs.mqtt_consumer] Connected [tcp://192.168.8.42:1883]
2025-01-16T23:08:57Z D! [inputs.mqtt_consumer] Session found [tcp://192.168.8.42:1883]
2025-01-16T23:09:07Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-01-16T23:09:17Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
^C2025-01-16T23:09:19Z D! [agent] Stopping service inputs
2025-01-16T23:09:19Z D! [inputs.mqtt_consumer] Disconnecting [tcp://192.168.8.42:1883]
2025-01-16T23:09:19Z D! [inputs.mqtt_consumer] Disconnected [tcp://192.168.8.42:1883]
2025-01-16T23:09:19Z D! [agent] Input channel closed
2025-01-16T23:09:19Z I! [agent] Hang on, flushing any cached metrics before shutdown
2025-01-16T23:09:19Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-01-16T23:09:19Z I! [agent] Stopping running outputs
2025-01-16T23:09:19Z D! [agent] Stopped Successfully

When I publish message “manually” to zigbee2mqtt/0xa4c13813dc7c2261 topic, it’s not working.

But, the most baffling thing is, that whan I publish it to zigbee2mqtt2/0x3410f4fffee9dd2f (so with “2” in the topic), everything is working:

2025-01-16T23:15:29Z I! [inputs.mqtt_consumer] Connected [tcp://192.168.8.42:1883]
2025-01-16T23:15:29Z D! [inputs.mqtt_consumer] Session found [tcp://192.168.8.42:1883]
influxmqtt_consumer,dc=localhost,host=f165b3365e9c,topic=zigbee2mqtt2/0x3410f4fffee9dd2f linkquality=52,battery=100 1737069337433349976
2025-01-16T23:15:39Z D! [outputs.file] Wrote batch of 1 metrics in 90.816µs

I have absolutely no idea what can be wrong, anybody has any idea?

Could it have to do with the string data in your payload?
I know with my LoRaWAN mqtt payloads if there is a string I had to add something along these lines.

json_string_fields = [
 "battery_low",
"tamper",
"water_leak"
]

although I did have issues with other stuff, which is why I stopped using telegraf and started using N8N.