Closed BKFCAW closed 1 year ago
I'm not sure what did it, but I stumbled upon a confguration that works:
[[inputs.mqtt_consumer]]
interval = "303s"
servers = ["tcp://192.168.10.193:1883"]
persistent_session = false
qos = 0
topics = [
"homie/aurora-180803112/abc/entering-water-temperature",
"homie/aurora-180803112/abc/leaving-water-temperature",
"homie/aurora-180803112/pump/waterflow",
"homie/aurora-180803112/compressor/speed"
]
data_format = "value"
data_type = "float"
I'm not sure where to ask about this...
I have several devices to which I have interface via Telegraf using JSON, which in turn connects to InfluxDB and then visualized in Grafana. I have tried various combinations of syntax, many of which generate errors, but when the Telegraf config file is error-free, there's no output, possibly signifying a mismatch of keywords.
I can see that the USB-ethernet connection is collecting data, both by issuing a mosquitto_sub command on the host Raspberry Pi, and by running MQTT Explorer on a nearby Linux box.
Most of my interfaces use JSON input to Telegraf, and it looks like there's a JSON output option in MQTT Explorer, and I can specify JSON in my Telegraf config file, but perhaps there is a better option.
Any suggestions on a Telegraf config file that works with Aurora MQTT data? Here is my Telegraf config file:
and here some debug output: