Rename attributes under State for temperature sensors

Alf-DK2 years ago

Hi

I have a Teltonika tracker with 2 1-Wire temperature sensors on
and I can see both Temp1 and Temp2 under State.

I would like, let's say an inside temperature and an outside temperature, inside is Temp1 and outside is Temp2

What options are there to view, inside temperature and outside temperature under State instead of Temp1 and Temp2

Joystick2 years ago

Hi Alf-DK, you can change it wit a Computed Attribute, something like:
Description: Temp1
Attribute: Inside Temp
Expression: temp1
Type: number

Alf-DK2 years ago

Thanks it seems to work

Alf-DK2 years ago

Yes it works fine.
Can I get Traccar to write C after the number as 7 C in value

Joystick2 years ago

Try this:
Description: Temp1
Attribute: Inside Temp
Expression: temp1+" C"
Type: string

Alf-DK2 years ago

Super it also works perfectly

Thanks Pete !

and then I have hidden temp1 and temp2 under user attributes