Skip to content

Receive 433 MHz remote control signals on an ESP8266 and send code to MQTT to decide what to do with it.

License

Notifications You must be signed in to change notification settings

Alacritous/RemoteControltoMQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

RemoteControltoMQTT

Receive 433 MHz remote control signals on an ESP8266 and send code to MQTT to decide what to do with it.

You may need to install extra libraries. The libraries are either available directly in the Arduino IDE or you can download them from the URLs shown in the file at the top as comments on the include lines.

It's pretty simple. Get the 433 MHz Radio reciever of your choice, I bought mine from Aliexpress, and connect the data out pin of the receiver to the data in pin(D6 on a Wemos D1 Mini in my code here) and change the settings in the code section "USER CONFIG" to match your local setup. The only changes you should need to make to the file are in the "USER CONFIG" section.

That will send any incoming remote control keypresses to your MQTT server and set the default topic "RadioTrans" to the incoming code.

You can then use whatever method you like to then decide what to do when any given code comes in.

image

For example, my setup uses Node-Red. I have a flow set up to monitor the incoming MQTT topic and use a switch node to decide what to do with each code.

image

When the code "9492484" comes in when I push a fob button, I can then use it to set another node to output to a switch or trigger an event or send a web request or turn on or off a light. The possibilities are endless.

image

The switch node can be used to isolate the incoming code and then decide what to do with each code as they arrive. There's no limit to the number of incoming codes.

This is just my simple implementation of this process. Others have done it and it has been integrated into some of the home automation packages.

About

Receive 433 MHz remote control signals on an ESP8266 and send code to MQTT to decide what to do with it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages