Convert temperature to integer

User avatar
durosity
Posts: 4810
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Convert temperature to integer

Post by durosity »

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, devEx.name))

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

Settings I'm using:
Attachments
Screenshot 2019-01-30 at 19.20.11.png
Screenshot 2019-01-30 at 19.20.11.png (144.28 KiB) Viewed 2063 times
Computer says no.
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: Convert temperature to integer

Post by howartp »

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

Return to “Device Extensions Plugin”