@icebear Für die normalen Influx Out Nodes - musst Du in einem Array, erst ein Objekt mit den Feldern und dann ein Objekt mit den Tags liefern.
HIer mal die Inject Nodes - mit den es verschiedene Szenarien ausprobiert werden können:
Spoiler
[
{
"id": "b16df1e0167e5bc3",
"type": "inject",
"z": "5ad55a7b0d4580eb",
"name": "2 Felder - temperature and humidity - no tags",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"temperature\":23,\"humidity\":55}",
"payloadType": "json",
"x": 390,
"y": 1180,
"wires": [
[
"90f29f6c8b919e3e"
]
]
},
{
"id": "e60c2882c426fdf5",
"type": "inject",
"z": "5ad55a7b0d4580eb",
"name": "2 Felder - temperature and humidity - muliple tags",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "[[{\"temperature\":24,\"humidity\":52},{\"room\":\"Wohnzimmer\"}],[{\"temperature\":25,\"humidity\":70},{\"room\":\"Bad\"}]]",
"payloadType": "json",
"x": 380,
"y": 1260,
"wires": [
[
"90f29f6c8b919e3e"
]
]
},
{
"id": "aacd65d9c75c1481",
"type": "inject",
"z": "5ad55a7b0d4580eb",
"name": "2 Felder - temperature and humidity - tag room = Wohnzimmer",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "[{\"temperature\":23.5,\"humidity\":50},{\"room\":\"Wohnzimmer\"}]",
"payloadType": "json",
"x": 340,
"y": 1220,
"wires": [
[
"90f29f6c8b919e3e"
]
]
},
{
"id": "01e8862a06c685a9",
"type": "inject",
"z": "5ad55a7b0d4580eb",
"name": "1 Feld - pressure - no tags",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"pressure\":1024}",
"payloadType": "json",
"x": 450,
"y": 1300,
"wires": [
[
"90f29f6c8b919e3e"
]
]
}
]
bd08908a-83ae-451a-a087-9f0e1ed89369-image.png
Wenn Du die Batch-Nodes verwendest kannst Du alles über Objekteigenschaften festlegen:
[
{
"measurement": "m_batch_t&h",
"fields": {
"temperature": 26,
"humidity": 80
},
"tags": {
"room": "Dusche"
}
},
{
"measurement": "m_batch_power",
"fields": {
"power": 26
},
"tags": {
"device": "Laptop"
}
}
]