This error message does imply one of the required variables is not there.Hcroij wrote: Saturday 03 April 2021 20:40 The Wiki script on line 61 on the waaren script (few posts above) its around line 52 or so.
Insert below code somewhere before line 61. It will show your vars and values .
You need to look for
humCounter
humidityTmin5
humidityTmin10
targetFanOffHumidity
fanMaxTimer
fanFollowsProgram
If they are all there and all have a value, the SENSOR_NAME is not defined.
Please be aware that variable- and devices names are case sensitive.
Code: Select all
-- loop through all variables and show name and vulue
for variableName,variableValue in pairs(uservariables) do
print ("Variable '"..variableName.."', value '"..tostring(variableValue).."'");
end