- Posted on
Thu Oct 29, 2020 1:43 pm
-
FlyingDiver
offline
-
- Posts: 7243
- Joined: Jun 07, 2014
- Location: Southwest Florida, USA
Can't do it. The API doesn't give me that data. I would have to round off the numbers myself, and I'm not sure that would be accurate.
You're using these numbers for a control page? Can't think of why it would matter otherwise. The problem (IMO) is that the control page system doesn't provide any tools for formatting the data you want to display. One way around it would be to create a trigger that fires any time the device state changes, which writes the value to a variable as a string formatted exactly the way you want it. Probably would need a single line of Python code to do that.