I must read this in a different way. not like
(fan = off and fanfollowprogram = 0) or (fan = on and fanfollowprogram = 0)
but
(fan=off) or (fan=on and fanfollowsprogram = 0)
That make sense to me, Thanks Dannyblo

Moderator: leecollings
Code: Select all
if (fanFollowsProgram == 1 and otherdevices[FAN_NAME]=='Off') then
-- likely someone turned off the ventilator while the program was running
fanFollowsProgram = 0
end
Well, I thought that if someone turned it off while the program was running there must have been a good reason for it. In fact, I use this 'feature' sometimes. Sometimes I don't want all the heat in the bathroom to be sucked away while I am still there and if there is not much moist then I just turn it off (in effect canceling the de-humidification program). But you can easily remove that piece of code if you want to.almirhod wrote:I have a question regarding the code below.
Why do you reset the program when the fan is OFF? Doesnt it make more sense to turn the fan back ON and finish the ongoing program?Code: Select all
if (fanFollowsProgram == 1 and otherdevices[FAN_NAME]=='Off') then -- likely someone turned off the ventilator while the program was running fanFollowsProgram = 0 end
Maybe I'm missing something but dont your risk that the next humidity measure is the same or lower and therefore not starting the fan at all. Best case a few degrees higher.
Yes I did create the 6 variable with integer @ 0dannybloe wrote:Did you create the uservariables in Domoticz as described in the wiki?
Code: Select all
humCounter = tonumber(uservariables['humCounter'])
Nice peace of work. Works like charm in my bathroom. I even empty my hot water tank to just try it outpecora wrote:Does anyone have a suggestion?
this one may do the work... I haven't tried itjorns wrote:Can someone give us a clue how to implement a second humiditysensor that can control the fan?.pecora wrote:Does anyone have a suggestion?
thx
could you pls confirm if dzVents could run directly on Windows ?dannybloe wrote:I will make a version in the coming days that will support multiple devices. It will be based on dzVents though because that allows me to check previous readings more easily. And it is much easier to support multiple 'rooms/devices'.
Users browsing this forum: No registered users and 1 guest