FHEM Forum

FHEM => English Corner => Thema gestartet von: H3nr1 am 07 Mai 2016, 01:21:30

Titel: [solved]Fan control problem
Beitrag von: H3nr1 am 07 Mai 2016, 01:21:30
Hello, i wan't to control my fan. When there is more humidity in my bathroom i wan't the fan to go harder.


DEF
([DS2438_A0608D010000:humidity] > 60) DOELSEIF ([DS2438_A0608D010000:humidity] > 50) DOELSE (set ventilation dim 50|35|25


But the last part doesn't work. Who can help me or is there another way of doing this?

Thanks
Titel: Antw:Fan control problem
Beitrag von: chris1284 am 07 Mai 2016, 07:20:00
first i would test it like the commandref explains it:


DOIF ([DS2438_A0608D010000:humidity] > 60) (set ventilation dim 50)
DOELSEIF ([DS2438_A0608D010000:humidity] > 50) (set ventilation dim 35)
DOELSE (set ventilation dim 25)


when this is running you can try to shorten the definition
Titel: Antw:[solved]Fan control problem
Beitrag von: H3nr1 am 07 Mai 2016, 21:19:19
Thanks Chris this solution works  ;D