But I still do not get anything other than 0 displayed even through the event log shows it as 0.032. So I’m either doing something wrong with the format, or the device.energy value doesn’t allow formatting, or something else I’ve not considered.
You have no control over the formatting for valueTiles - I submitted a request to add a format parameter for a valueTile() to allow specifying the number format. I suggest that you do the same.
Thats annoying then, but at least I know I’ve not missed the obvious. I’ll defiantly do that, as I’m now seeing rounding that I’d change if I had control over it.
(and remove the unit: part). While this works for display in the app, the energy is now a string including units instead of a raw numeric value - using this in another smart app might causes problems as most likely it won’t expect a string with units…
1 Like
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
5
To avoid this rather serious implication, you can instead add a new ad hoc / custom Attribute of the String datatype and also update it whenever / wherever the existing numeric attribute is set.