Convert temperature to integer
Posted: Wed Jan 30, 2019 1:20 pm
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:
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: