Telegraf: Error in plugin: metric parse error: expected tag

Message publisjed on topic:

Meter_B/Pipe_B/Flow Payload: 39.5
Meter_B/Pipe_B/Direction Payload: 0 or 255

Telegraf config:

  topics = [
    "Meter_B/Pipe_B/#",
  ]

[[inputs.mqtt_consumer.topic_parsing]]
        data_format = "value"
        data_type = "float"
#               topic = "+/+/+"
        topic = "Meter_B/Pipe_B/+"
        measurement = "_/Pipe_B/Flow"
        tags = "device_id/pipe_id/_"
        fields = "_/_/Flow"
#       [[processors.pivot]]
#       tag_key = "field"
#       value_key = "value"

Its still generates error:
[inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at 1:5: “39.5”

i tried changed type and format but it doesn’t make effect.
In the future i want change entry “_value” to “flow” but it seems problem is on the beginning of parsing

The value parser will grab a single value. This is certainly not a single value if it literally says 0 or 255. If you mean it can be the value 0 or 255 and produces only one, then it is not clear.

My guess is that you are getting data that is not what you expect.

[inputs.mqtt_consumer] Error in plugin: metric parse error: expected tag at 1:5: “39.5”

This error usually shows up when trying to parse using the line protocol/influx parser. Where the value coming in is not line protocol at all.