CS- Influx2 - Grafana

Hi

Does anyone has an idea, why the 1st decoded Data sent to my INfluxdb can simply display in the Influxdb and therefor in grafana, too, but not the 2nd data from my new dragino lht65n sensor? The Bat status is showing up in influx, but the other giving only an error message…

CS-Json-1

CS-Json-2

What about the message “Temperatur Sensor”?? Should that the be the problem???

https://gist.github.com/mattrude/e733b35e19b06a9ddd9a580a931b2a2d

Maybe a workaround… but

Blockquote
external_sensor:
{
“0”:“0”,
“1”:“1”,
“4”:“4”,
“5”:“5”,
“6”:“6”,
“7”:“7”,
}[bytes[6]&0x7F],

I’ve simply changed the Text behind the ext. sensor number to a number. (See the origi. file on github) And now Influx can display the graph. Really don’t know why. I’m not a javascript programer…

Anyone…??