Custom Computed Attribute to show unit after value.

sosapablo3 years ago

Hi Anton,
Is it possible to have a custom attribute show a unit after the value in the state panel? E.G.

Attribute: "Fuel Tank Level" to show as "Fuel Tank Level" 136 litres or 136 l etc.

Anton Tananaev3 years ago

Yes. Just format it with the unit.

sosapablo3 years ago

I donĀ“t understand.
you mean write it like that

https://ibb.co/tByLTDg

Anton Tananaev3 years ago

Correct, but I don't think you have the right syntax there.

sosapablo3 years ago

anton, Please, could you give me an example. I have tried many ways and there has been no result

Anton Tananaev3 years ago

What options have you tried so far?

sosapablo3 years ago

EJ: io13 'rpm'
io13 "rpm"
io13 rpm
io13 'rpm'
io13 (rpm)
and other ways, but very desperate nonsense. sorry mate

no solutiom

sosapablo3 years ago

after a while I have also tried other ways and nothing

ej: io13 \rpm
io13 'rpm'
io13 'rpm'
io13; 'rpm' \

Anton Tananaev3 years ago

How about io13 + "rpm"?

sosapablo3 years ago

@Anto
Anton, really thank you for everything not only for this solved issue but for all the issues that I have come to read and the solution has come from you, really thank you

Solution confirmed jeje.