dannybloe wrote:Well, the user variables only have to be created as stated in the wiki page (name and type and initial value (0 will do)). These variables get their values from the script itself so you don't have to worry about that. The script has a couple of constants (upper-case variables). Some of them you have to set like the name of your devices. All of them have a clear explanation ("Use the source Luke"). The values in them are the ones that I use and they seem to work just fine.
Does that help?
I only changed the user value targetFannOffHumidity to 60%. The rest i left alone and this is what happened:
Mon Dec 22 22:02:00 2014 LUA: Fan control
Mon Dec 22 22:02:00 2014 LUA: Current humidity:70
Mon Dec 22 22:02:00 2014 LUA: targetFanOffHumidity:60
Mon Dec 22 22:02:00 2014 LUA: humidityTmin5: 68
Mon Dec 22 22:02:00 2014 LUA: humidityTmin10: 56
Mon Dec 22 22:02:00 2014 LUA: fanMaxTimer: 4
Mon Dec 22 22:02:00 2014 LUA: humCounter:4
Mon Dec 22 22:02:00 2014 LUA: fanFollowsProgram:0
Mon Dec 22 22:02:00 2014 LUA: Delta: 14
Mon Dec 22 22:02:00 2014 LUA: New values >>>>>>>>>>>
Mon Dec 22 22:02:00 2014 LUA: humidityTmin5: 70
Mon Dec 22 22:02:00 2014 LUA: humidityTmin10: 68
Mon Dec 22 22:02:00 2014 LUA: fanMaxTimer: 3
Mon Dec 22 22:02:00 2014 LUA: humCounter:0
Mon Dec 22 22:02:00 2014 LUA: fanFollowsProgram:0
Mon Dec 22 22:02:00 2014 LUA: ------ target: 60
The fan wich I renamed to my own switch name didn't switch on
I think I see the problem, the name off the swich i miss typed! I will try again.