How to add "units" to dashboard tile that is displaying an attribute?

I made a small app and driver that calculates the dew point from a temperature / humidity sensor.
All works fine but I cannot get the units to show in the dashboard.
Is it possible? or did I do something wrong?


sendEvent(name: "dewPoint", value: dewpoint, unit: "°F", descriptionText: descriptionText)



What if you setup the driver with the temperature measurement capability and tried using a temperature template for tile.


Alternatively, you could construct a separate string-based attribute formatted the way you want it. One approach I liked with the Hubigraphs setup was that only a degree symbol was displayed, not the units. Kind of makes sense, as the user you know the units work in and as the developer you don't need to cater for display of F or C.

1 Like