matt (support) wrote:Yeah, the error itself is coming from the embedded script executor, which is used to run python scripts you have embedded in Triggers, Schedules, or Action Groups. We need to find which script it is so we can troubleshoot what is causing the error. I presume it is a script that is doing something with a RFX device or the RFX plugin, but maybe not.
We have on our feature request list (and I'd really like to see it get implemented) adding much better error logging which would show which trigger, schedule, etc. the problem is coming from. But for now it is pretty much a guessing game.
Ahhh ok, thanks much Matt - that makes sense and gives me something to investigate.
Looking, I bet it's this then...
I have a trigger when an RFXCOM value changes that it populates that into a variable (in F deg).
Then when that one is updated, another trigger fires to convert it to Celsius w Python;
- Code: Select all
myVar = indigo.variables[894550057]
tempSensor = indigo.devices[1469511808]
tempF = tempSensor.states["temperature"]
tempC = (tempF-32)*5/9
tempC = round(tempC, 1)
# "{0:.1f}".format(tempC)
indigo.variable.updateValue(myVar, str(tempC)+" °C")
I bet you tempF needs to be cast to fix this.. it complains about line 4 on occasion, so I'll add int(tempF) - that should fix it!
Odd that it only happens on occasion though.
Thanks!