I am using the following script to update the outside temperature:
nowTemp = indigo.variables[1403030637].getValue(float) # WCT_external_temperature
yearHigh = indigo.variables[762466133].getValue(float) # WeatherOutsideTempYearlyHigh
yearLow = indigo.variables[128906629].getValue(float) # WeatherOutsideTempYearlyLow
if nowTemp > yearHigh:
indigo.variable.updateValue(762466133, value=nowTemp)
if nowTemp < yearLow:
indigo.variable.updateValue(128906629, value=nowTemp)
When I run it though, I get the following error:
Mar 23, 2020 at 10:12:25 AM
Script Error embedded script: Python argument types in
VariableCmds.updateValue(VariableCmds, int)
did not match C++ signature:
updateValue(_VariableCmds {lvalue}, boost::python::api::object elem, CCString value)
Script Error Exception Traceback (most recent call shown last):
embedded script, line 6, at top level
ArgumentError: Python argument types in
VariableCmds.updateValue(VariableCmds, int)
did not match C++ signature:
updateValue(_VariableCmds {lvalue}, boost::python::api::object elem, CCString value)
When I run the script from inside the trigger, the following line becomes highlighted:
indigo.variable.updateValue(762466133, value=nowTemp)
Can someone help me troubleshoot this?
Thanks,
Matt