This project contains a system in which regular RF plugs can be used alongside smart plugs. This allows users to reuse their old RF plugs as new smart plugs. Preventing e-waste and saving money. To do this, the following systems are needed:
- Smart Home Agent (Alexa, Google Home)
- Node-RED
- Raspberry Pi
The system works using a Raspberry Pi as the central control system, which is running both Node-RED and the SocketTransmitter python script. These are running in their own docker container to allow for better modularisation.
The Alexa devices are connected over the network using any IP link. Everything should work as long as the devices are on the same network as the Raspberry Pi running Node-RED.
- The Raspberry Pi is then connected to the 433MHz Transmitter module via the 5V, GND and Transmit pins.
- The flows attached to this repo are then used to communicate with the SocketTransmitter via TCP. This then sends the - required bitstream signal to the script running inside Docker. Which then turns the plugs on and off through the 433MHz Transmitter.
- The system is built such that when the SocketTransmitter container is up and running, it never needs to be taken down.
The general flow used for Node-RED is shown below:
Each Plug is set up as an Alexa-Home Node which then has two functions, turnOn and turnOff requests, which then feed into the function blocks triggering the TCP socket call to turn on and off the plugs.
The parts required for the project are listed below:
- Easy On Easy Off Plugs
- 433MHz Transmitter Receiver Pack
- Raspberry Pi Foundation
- Logic Analyser
- 3D Printed Transmitter Case
For the project to work, the following software is needed:
The following projects inspired this project: