Having the same trouble as many others have from my research, my data from NRD labelled as value is being sent as a string to influxdb and hence not recognised by Grafana.
The set up is Atlas Scientific water sensors sending MQTT data to Mosquitto, then into Node Red, onto influxdb for storage and extracted by Grafana for display. Sensors with multiple outputs are ok as the label is a name extracted in the parser, ie percentage 89, are sent as a number, but single output sensors are labeled as value, and sent as a string.
The same data sent to influxdb displays fine on the Node Red GUI.
Sorry but i am a newbie, yet to work out how to cut and paste from Node Red flow workspace into here.
This sensor works
Sys4/DO/add97/DOsys4 : msg.payload : Object object PercentOxygen: 86.1 MGPerL: 7.83 created_at: "2021-11-06T23:13:55.8728987Z" ModuleType: "DO" value: "7.83" Address: 97 Name: "DOsys4" CompensationTemperature: 25
Multiple values with name labels.
This is what is in the parser:
This is what comes out.
07/11/2021, 10:20:02node: 8127b9f1260f2605 Sys4/DO/add97/DOsys4 : msg.payload : number 86.2
This doesn't work:
Sys4/ORP/add98/ORPsys4 : msg.payload : Object object created_at: "2021-11-06T23:24:06.425076Z" ModuleType: "ORP" value: "78" Address: 98 Name: "ORPsys4"
A single value labeled value.
07/11/2021, 10:33:16node: 8127b9f1260f2605 Sys4/ORP/add98/ORPsys4 : msg.payload : string "77"
Have tried various "solutions" to output the value as a number but nothing seems to work.