galadril / DomoticzForAndroid

This is a Domoticz Android app. Domoticz is a very light weight home automation system ...
http://www.domoticz.com
14 stars 7 forks source link

Thermostat issue with settings whole points #165

Closed galadril closed 8 years ago

galadril commented 8 years ago

by bryan241:

It took me a while to find the problem for the thermostat...

You should change the following lines in DevicesInfo.java.

if (row.has("SetPoint")){ setPoint = row.getLong("SetPoint"); }

should be changed to :

if (row.has("SetPoint")){ setPoint = Double.parseDouble(row.getString("SetPoint")); }

Because row.getLong("SetPoint") is parsed to integer.

http://www.domoticz.com/forum/viewtopic.php?f=37&t=8884&start=340#p67426