I am running version 1.033 of the Ocelot plugin with version 1.7.07 of HS. I have been running a script and events which set variables in the Ocelot to temperatures read from HAI thermostats. HS gets the temperature data and stores it in a device. The last script in the chain stores the value of that device to an Ocelot variable. The problem script reads as follows:
sub main()
Dim UpstrTemp
Dim IntTemp
Dim StrUpstrTemp
IntTemp = 111
'UpstrTemp = hs.Getvar("TempUpstr")
UpstrTemp = hs.DeviceValue("t2")
IntTemp = Cint(UpstrTemp)
StrUpstrTemp = Cstr(IntTemp)
cpuxa.SetVarLong 104,UpstrTemp
hs.writelog "Info","Ocelot Upstrs temp changed to " + StrUpstrTemp
end sub
This script works to set the Ocelot variable about one out of twenty times it is run. Last night's HS log showed that it worked at 3:38 A.M. to set the temperature to 75, but recored no other changes. The HS device recorded all changes. Anyone have any ideas? I saw nothing in the Ocelot log to indicate the script ever ran, but then I may not know what to look for.
sub main()
Dim UpstrTemp
Dim IntTemp
Dim StrUpstrTemp
IntTemp = 111
'UpstrTemp = hs.Getvar("TempUpstr")
UpstrTemp = hs.DeviceValue("t2")
IntTemp = Cint(UpstrTemp)
StrUpstrTemp = Cstr(IntTemp)
cpuxa.SetVarLong 104,UpstrTemp
hs.writelog "Info","Ocelot Upstrs temp changed to " + StrUpstrTemp
end sub
This script works to set the Ocelot variable about one out of twenty times it is run. Last night's HS log showed that it worked at 3:38 A.M. to set the temperature to 75, but recored no other changes. The HS device recorded all changes. Anyone have any ideas? I saw nothing in the Ocelot log to indicate the script ever ran, but then I may not know what to look for.
Comment