Convert temperature to integer

Posted on
Wed Jan 30, 2019 1:20 pm
durosity offline
User avatar
Posts: 4047
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Convert temperature to integer

I've been trying to use this plugin to convert a value of say 7.85 ºC to an integer (and also another one for a float) for use in control pages, however I keep getting an error:

EPS - Device Extensions Debug Adding Garage - Temp Sensor Converted to cache
EPS - Device Extensions Debug Found device reference field 'device' in plugin device 'Garage - Temp Sensor Converted', auto-watching 'Garage - Temp Sensor' for changes
EPS - Device Extensions Debug Automatically adding watched device 'Garage - Temp Sensor' to cache as a watched item
EPS - Device Extensions Error Exception in plugin._stringToNumber line 2216: 'ServerInfo' object has no attribute 'error'
CODE: indigo.server.error ("Input value of %s on %s contains a decimal, forcing value to be a float. Change the preferences for this device to get rid of this error." % (value,

I'm guessing that the plugin doesn't do that?

Settings I'm using:
Screenshot 2019-01-30 at 19.20.11.png
Screenshot 2019-01-30 at 19.20.11.png (144.28 KiB) Viewed 701 times

Computer says no.

Posted on
Mon Feb 04, 2019 5:19 pm
howartp offline
Posts: 4267
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Convert temperature to integer

Can you change the State/property to be the non-UI Value version?

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest