Hi all
I’ve search through the forums (and elsewhere) to see if I can solve my issue–no luck so far. I have a couple of DC fans in the house (one with a integrated LED light). These fans (and light) are controlled solely (till now) by 433MHz RF remotes.
I have a Tasmota-flashed Sonoff RF Bridge which I’ve managed to use (though MQTT) to allow control of the fans. I’ve done this by having the RF bridge “learning” the RF signals for each of the key buttons on the remote (fan speeds 1 to 5, fan off, and for one fan, light on/off [its one button; same code for on and off]).
This allows me to control the fans and lights in HA, but is far from elegant. For each fan I essentially have a list of the “lightning” switches–the first of which (the the slash through it) set the fan on and to that speed, the second of which does nothing (and the same for the light switch on the fan in HA).
There are three things I’d like to resolve (the first may be made redundant by the second):
Firstly, is there are way to only have a single “button” (image/icon/etc) where I have the two lightning icons at the moment (its annoying as the second does nothing)?
Secondly, is there a way to have speed settings (0 to 5) rather than the series of switches (I had a play with the MQTT Fan template but it didn’t seem to make sense in my circumstance). I note that there is no “On” button for the fan remote–hitting a speed just turns it on to that speed.
Thirdly, I’d like to be able to update the state displayed in HA (if I can resolve the two points above) when the fan speed/state (an light on/off) state in changed using the physical remote. As there is no “state” sensor, the only way I could see to do this, is if the displayed “state” is updated both when a selection is made though HA (should just work once the above is resolved) and also updated when teh RF Bridge reads the signal for the change of state (i.e. teh sme one assigned to MQTT commands through “teaching” the RF Bridge" (e.g. the “light toggle” code is tele/sonoff_rfb_01/RESULT = {"RfReceived":{"Sync":5710,"Low":320,"High":920,"Data":"917106","RfKey":"None"}}
).
For reference, my current config for the fan (with light) is:
switch:
- platform: mqtt
name: "Office fan speed 1"
command_topic: "cmnd/sonoff_rfb_01/RfKey1"
optimistic: true
- platform: mqtt
name: "Office fan speed 2"
command_topic: "cmnd/sonoff_rfb_01/RfKey2"
optimistic: true
- platform: mqtt
name: "Office fan speed 3"
command_topic: "cmnd/sonoff_rfb_01/RfKey3"
optimistic: true
- platform: mqtt
name: "Office fan speed 4"
command_topic: "cmnd/sonoff_rfb_01/RfKey4"
optimistic: true
- platform: mqtt
name: "Office fan speed 5"
command_topic: "cmnd/sonoff_rfb_01/RfKey5"
optimistic: true
- platform: mqtt
name: "Office fan off"
command_topic: "cmnd/sonoff_rfb_01/RfKey6"
optimistic: true
- platform: mqtt
name: "Office light"
command_topic: "cmnd/sonoff_rfb_01/RfKey7"
optimistic: true
Any help or suggestions appreciated!