sheetmetalconnect
07/30/2025, 5:11 PMdataFlow:
- 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&sheetmetalconnect
07/30/2025, 5:12 PMsheetmetalconnect
07/30/2025, 5:13 PMsheetmetalconnect
07/30/2025, 5:13 PM