Another bathroom ventilation project
Posted: 15 Oct 2023, 12:10
Hello
I have a two speed bathroom fan. I want to turn them on depending on the humidity. And it should block from turning on automatically during the night.
I put everything together, And it runs so far, but he is running always on level 1. I think something on my script is wrong.
Does anyone with experience see the fault?
on [TempHum#Humidity]<65 do //if humidity under lowerlevel then van off
gpio,14,1
gpio,12,1
endon
on [TempHum#Humidity]>65 and [TempHum#Humidity]<75 do //if humidity between lower and uper level then van level1
if [VirtualSwitch1#Dummy1]=0 //check if night block
gpio,14,0
gpio,12,1
endif
endon
on [TempHum#Humidity]>75 do //if humidity over uperlevel then van level2
if [VirtualSwitch1#Dummy1]=0 //check if night block
gpio,14,0
gpio,12,0
endif
endon
I have a two speed bathroom fan. I want to turn them on depending on the humidity. And it should block from turning on automatically during the night.
I put everything together, And it runs so far, but he is running always on level 1. I think something on my script is wrong.
Does anyone with experience see the fault?
on [TempHum#Humidity]<65 do //if humidity under lowerlevel then van off
gpio,14,1
gpio,12,1
endon
on [TempHum#Humidity]>65 and [TempHum#Humidity]<75 do //if humidity between lower and uper level then van level1
if [VirtualSwitch1#Dummy1]=0 //check if night block
gpio,14,0
gpio,12,1
endif
endon
on [TempHum#Humidity]>75 do //if humidity over uperlevel then van level2
if [VirtualSwitch1#Dummy1]=0 //check if night block
gpio,14,0
gpio,12,0
endif
endon