Renaming Attribute / Computed Attribute

RichardG4 years ago

My VT900 device reports an ambient temperature sensor as 'DriverLicense' in the Traccar > State > Attributes section.

The reported temperature value is correct, just the attribute name is wrong.

I am trying to create a custom attribute called "Ambient Temperature" that will show the value of DriverLicense, but I cannot get it to work when entering DriverLicense into the expression field.
Ambient Temp

As a test, I have tried a different input (adc1) within the expression field and it has worked.
Description text

Am I doing something wrong?

| 24662824 | meiligao |      231 | 2021-05-19 13:39:20 | 2021-05-19 13:39:17 | 2021-05-19 13:39:17 | 0x01         |           49.27652 |         -123.122785 |       73 |  0.07 |    113 | NULL    | {"hdop":1.0,"out1":false,"out2":false,"out3":false,"out4":false,"out5":false,"in1":true,"in2":false,"in3":false,"in4":false,"in5":false,"adc1":12,"adc2":0,"adc3":325,"adc4":716,"rssi":31,"odometer":2910,"sat":8,"driverLicense":"22.3","distance":0.48,"totalDistance":5770.41,"motion":true}  
Anton Tananaev4 years ago

Attributes always start with lower case.

RichardG4 years ago

That's done it, thanks.

DT