This week I bought a set of radio controlled power outlets. My plan is to use Home Assistant (Python, Open Source) to control the power outlets. For that to work I need to find the codes that are used by the remote control’s 433 Mhz radio transmitter to switch the power ON and OFF (each power outlet has two codes).
First I connect the 433 Mhz receiver to my Wemos D1 (ESP8266). I use the Wemos since it is still installed on my experiment board (after I found out the codes I do not need this setup any more).
I like to use the Arduino IDE to write/ upload ESP8266 firmware.
Reading the codes
Once the code is uploaded to the ESP8266 it writes to the serial interface with 115200 baud. I press the different buttons on the remote control and in the Serial Monitor I see the related codes.
I filled a spreadsheet with all ON / OFF codes for all my 5 power outlets. With these codes I am prepared to connect more devices to Home Assistant.
I hope this article proves helpful to you… Mark