[Tutorial] RF433 in Gladys via Tasmota

If you, like me, have some old plugs or other « connected » accessories from the early days communicating at 433MHz, this might interest you.

It’s possible to integrate them quite easily into Gladys Assistant using a little inexpensive hardware and give them a second life!

Hardware
You will need to acquire:

Assembly
Once the hardware is received, let’s assemble everything!
It is possible to mount all of this without soldering anything but… it’s harder to find the Wemos already soldered!
The data pin of the FS1000a to D2 and the data of the RXB6 to D1. Note that you must provide an antenna if the modules you purchased didn’t include one. How to do it? Simply attach a 17.5 cm wire to the connection point provided for this (ant)!


General assembly:

Top view:

The transmitter:

Side view:

If you look closely, I’m using a Dupont connector (supplied with the Wemos) that allows you to plug in from the top and bottom at the same time, avoiding any soldering.

My final assembly (with an infrared LED and a DHT22 sensor (temperature) in addition):

Preparation
We will install (flash) Tasmota on the Wemos D1 Mini.
To do this, nothing could be simpler (on Windows):

  • Download « Tasmotizer »

  • Download the latest Tasmota firmware (Note: you must take the Sensor version!) Direct Link

  • Plug the Wemos into the PC via USB

  • Choose the previous file in the Tasmotizer interface (open), check the « Self-resetting device » and « Erase before flashing » boxes then Tasmotize!

Then, you need to modify the Tasmota configuration to connect to WiFi, MQTT, etc.
Use your smartphone to connect to your new device and connect it to your network.
Search for the new WiFi networks. Connect to the Tasmota-xxxx network that should appear. You should then get a configuration proposal from Tasmota. Enter your WiFi network information.
I won’t detail the procedure here because other topics already cover it.

Wemos Configuration
On the Wemos Tasmota homepage, click Configuration > Configure Other and paste the following code into the Template field:
{"NAME":"Wemos D1","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":18}
Check the Activate box then Save.
After the Wemos restarts, click Configuration > Configure Module and select the boxes as shown below:

And click Save. Keep the Tasmota page handy, we’ll need it again!

Go back to Gladys:

  • MQTT Integration
  • New device
    I recommend « Integer Counter » (« Compteur entier ») but it doesn’t really matter…

And there, copy the MQTT Topic to publish

Return to the Tasmota page from earlier:
Choose « Console »
Paste the MQTT Topic to publish copied earlier into the following string, in place of my topic (gladys/master/device/mqtt:Maison:RF/feature/mqtt:Maison:RF:Code/state)

Rule1 ON RfReceived#Data!=0 DO publish gladys/master/device/mqtt:Maison:RF/feature/mqtt:Maison:RF:Code/state %value% ENDON
(So it’s « Rule1 ON RfReceived#Data!=0 DO publish YOUR TOPIC %value% ENDON »)
Press « Enter » then validate the command Rule1 1 to activate the created rule.

That’s it!
Finally, the essential part remains: integrate this into scenes…
What will be the trigger?
The easiest is to collect the codes from remotes and other peripherals recognized by the Tasmota integration. To do this, simply add the device created at the beginning to your Dashboard
image

You can then create a trigger like this:

But how to control them then?
Simple!
Use the HTTP command « rfsend%20xxxxxx » where xxxxxx corresponds to the code to send directly from scenes! Here’s an example:
http://192.168.1.27/cm?cmnd=rfsend%20998854
Where « 192.168.1.27 » corresponds to the IP address of the Wemos.

And for info, the whole setup can work for infrared too, just by adapting. If interested, I’ll show you :wink:

3 Likes

hello, to put in the tutorials or docs! right?

It’s already the case, isn’t it?

Great tutorial! Thanks @GBoulvin!

Hello @GBoulvin
I am interested in infrared. I’d like to have a small module in each room of the house to control ceiling fans along with the lighting. Is that possible with your setup?
Have a good day

Possible and fairly simple, yes… As long as the IR protocol of your fans/heat pump/multimedia systems is supported by the Tasmota library.
The list of supported protocols is here.
The commands to use are similar (irsend and irreceived)
The hardware is simple: a Wemos, an IR LED (e.g., salvaged from an old remote) paired with a resistor, and an IR receiver (taken from an old CD player) are sufficient!
I’ll make a dedicated tutorial fairly soon!

Thanks a lot @GBoulvin
It’s already off to a bad start — my fans aren’t on that list. But I’ll wait for your tutorial to try, in case another brand of device has the same codes. Or maybe capture the remote’s codes and rewrite them to send to the fan.
Have a good evening

@Psoy otherwise there’s the Broadlink integration that’s almost live for that!

Hello @pierre-gilles
Yes yes, I’m waiting for it because I already have one, but I have four rooms to cover and one Broadlink only works in one. Besides, four Broadlinks end up more expensive than four setups with Wemos. However, the plus of the Broadlink is that it learns codes unknown to it using the device’s remote. We’ll see!
Have a good day

1 Like

That’s why IR / RF integration with Tasmota is taking time, because you need to find a simple and nice way to capture and transmit signals…
But maybe Broadlink will inspire me :slight_smile:

3 Likes

Hello @Barbudor,

do you know how I could identify that a Tasmota device has an IR or RF extension?
The « StatusN » entries don’t seem to provide this information (or I don’t know how to find it).

I can only detect it when a message is received or transmitted.
So I don’t know, when the device is detected, whether it has this capability.

Thanks in advance, and best wishes :wink:

1 Like