Idea
I have one of these tower fans with 3 speeds and oscillating. I'm lazy so I want to remote control it.
Should be simple with one of those 4x relay ESP board and Tasmota, right? Sure, kind of.
Biggest problem
Understanding the original cabling and buttons. I will not include a wiring diagram since I'm sure every Fan is different.
There a 5 buttons and a hardware timer.
Ignoring the timer since this can be some software thing later and I never really used it anyway.
There are those switches:
- All Off (button)
- Level 1 (switch)
- Level 2 (switch)
- Level 3 (switch)
- Oscillation toggle (button)
Problem 1
The 3 levels must be exclusive
Aka only 1 relay is allowed to be on at a time.
Tasmota has a built in function called interloc
So a interlock 1,2,3
will have the desired effect.
Relays 1,2,3 are in group 1 and interlocking
Relay 4 in no group or group 4
Problem 2
The Off Button must switch all relays off
By default Buttons are directly connected to the relay with the same number or to relay 1, fallback.
This can be disabled by SetOption73 1 but this detaches all buttons,
But I need normal buttons 1 - 3 for the fan levels.
Only the off button needs to be special.
With Switches it is possible on a per switch level.
and a switchmode5 3
changes Switch5 to a toggle like a button.
With a rule we can power off all relays when switch5 is pressed
Rule1 On Switch5#state=2 DO Power0 off ENDON
And enable it with Rule1 1
Nice to have
Naming the WebUI Buttons
WebButton1 Level 1
WebButton2 Level 2
WebButton3 Level 3
WebButton4 Oscillate
Unfortunately we cannot add a switch to the WebUI so we have to power off with the buttons.
The author does not allow comments to this entry
No comments