UMH-Core to InfluxDB
# archived-umh-documentation
s
I tried working through the docs to consume data https://docs.umh.app/usage/unified-namespace/consuming-data The docs refer to creating data flow, but in the UI I can choose out of Data Bridge, Stream or Stand Alone. I'm unsure how to proceed -- either way either I get linter errors, or I get issue with the topic not accepted
Copy code
dataFlow:
- name: tasmota-influx
  desiredState: active
  dataFlowComponentConfig:
    benthos:
      input:
        uns:
          topics: ["umh.v1.DKLP.Office.+._historian.+"]
      pipeline:
        processors:
        - mapping: |
            # Extract topic components
            let topic_parts = metadata("umh_topic").split(".")
            let measurement = "tasmota_sensors"
            let enterprise = topic_parts.1
            let site = topic_parts.2  
            let area = topic_parts.3
            let tag_name = topic_parts.5
            
            # Build InfluxDB line protocol (without string() function)
            let tags = "enterprise=" + enterprise + ",site=" + site + ",area=" + area + ",sensor=" + tag_name
            let field = "value=" + (this.value | "")
            let timestamp = (this.timestamp_ms | "")
            
            root = measurement + "," + tags + " " + field + " " + timestamp
      output:
        http_client:
          url: "http://192.168.68.56:8086/api/v2/write?org=DKLP&bucket=DKLP&precision=ms"
          verb: "POST"
          headers:
            Authorization: "Token [MY KEY]
            Content-Type: "text/plain"
https://cdn.discordapp.com/attachments/1400163226049843230/1400163847230459904/CleanShot_2025-07-30_at_19.10.052x.png?ex=688ba3b2&is=688a5232&hm=5da19ee8f94ec5b1231dd7ade0d19dbcc67442144e9a0186d5b926b89680d3a9&
What am I missing here? End goal would just be a demo setup of MQTT -> UNS -> Influx -> Grafana perhaps also include some calculations like daily energy costs etc.
I spent the last 4 hours on this, so I'm kind of running out ideas 😂
4 Views