I’m trying to gradually replace rflink switches (newkaku…) by sonoff wifi switches (that already work with built in mqtt broker).
What I would like is to use the current rflink remote control to control the sonoff, so in essence a newkaku switch command (e.g. newkaku_014…be_2) should set or clear a switch in the mqtt platform.
Maybe I needed a script to accomplish this, but it would be very cool if this also could be done purely from the configuration file.
(I’ve already managed (with help of the forum ) to map two newkaku switches to the same lamp, using an “aliases:” line in the configuration file).
I have a cheap USB tv receiver compatible with RTL-SDR, the Hassio add on RTL2MQTT to get the commands and the node-red add on for the automations. Can easily give any command to Ha with any button of the remote.
Disadvantage of the switches is that they don’t have a manual button (for those home mates that not always find the remote), so I want to replace the switches with (one by one) with Sonoff s20 types.
I’ve already integrated one of these into Home Assistant (flashing Espurna into the switch and connecting via mqtt) and that works,
but what I would like is to use the 433MHz remote to control the sonoff (by triggering an mqtt event when the 433MHz remote is used).
I’ve never used node-red yet, I hoped it would be possible to map (or kind of duplicate) the 433MHz switch (newkaku_xxx in configuration.yaml) to the mqtt switch.
I’m still looking into that direction and probably move to a python script if this fails.
I see a missing link… you need a 433MHz receiver to get the remote control into HA, and then to the Sonoffs.
A bit of a hack, I used the TV receiver as described, but I think there are better suited products from our reputable chinese sources
@PianSom, if I understood your post and remember how RM Pro works, you are using it to transmit radio messages, to control 433MHz plug from HA. What @gerk59 is asking is to receive commands from the 433MHz remote and then control the Sonoffs.
Once you have the button push from the remote, simple scripts can let you control everything with it.