Skip to content

Simple Python and NodeRed Project for converting old RF plugs to Smart plugs for Alexa Integration.

License

Notifications You must be signed in to change notification settings

ScottGibb/Smart-RF-Plug-Transmitter

Repository files navigation

Converting Old RF Plugs to Smart Plugs with Node-RED and Docker

License: GPL v3 Static Analysis

Languages and Tools

Summary

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

Architecture

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.

System Architecture

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.

Node-RED Flows

The general flow used for Node-RED is shown below:

Node Red Flow

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.

Parts

The parts required for the project are listed below:

Software Requirements

For the project to work, the following software is needed:

Inspirations

The following projects inspired this project:

About

Simple Python and NodeRed Project for converting old RF plugs to Smart plugs for Alexa Integration.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published