Coder Social home page Coder Social logo

timleland / rfoutlet Goto Github PK

View Code? Open in Web Editor NEW
140.0 15.0 64.0 46 KB

Control 433Mhz Rf power outlets from a Raspberry Pi

Home Page: http://timleland.com/wireless-power-outlets/

Makefile 1.05% C++ 79.50% HTML 12.28% JavaScript 1.27% PHP 5.91%
raspberry-pi outlet wireless 433mhz

rfoutlet's Introduction

Hi 👋, I'm Tim Leland

I'm a full stack developer

Popular Blog Post

Projects

Browser Extensions

rfoutlet's People

Contributors

timleland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rfoutlet's Issues

Piscope shows pin activity but RFSniffer does not report it

Hi - I'm not able to get RFSniffer to report any signal on my RPi 3 and wondering if I have a software issue (running RaspiOS bullseye). I ran Piscope to check GPIO27 and there certainly seems to be signal on that pin.

In this screenshot, I pressed a button on my 433mhz BN-LNK remote and could certainly see some signal coming over it (in red box). The signal would repeat with each button press.

Does anything look amiss or is the pin just too noisy for RFSniffer to pick up the signal from the remote? My Pi is wired like this. I'm using WiringPi from here

HomeKit Support Using HomeBridge

I have managed to enable HomeKit support using:

There is also the alternative of calling the codesend command directly with the cmdswitch2 plugin

Here is the sample config file that works with my branch of RFOutlet that supports GET requests.

{
    "bridge": {
    	"name": "HomeBridge",
    	    "username": "CC:22:3D:E3:CE:30",
    	    "port": 51826,
    	    "pin": "031-45-154"
    },

    "description": "HomeBridge HTTP Status Control",

    "accessories": [
    {
   	"accessory": "Http",
   	    "name": "1",
   	    "switchHandling": "realtime",
   	    "http_method": "GET",
   	    "on_url":      "http://localhost/rfoutlet/toggle.php?outletId=1&outletStatus=on",
   	    "off_url":     "http://localhost/rfoutlet/toggle.php?outletId=1&outletStatus=off",
   	    "service": "Light",
   	    "brightnessHandling": "no",
   	    "sendimmediately": ""
    },
    {
   	"accessory": "Http",
   	    "name": "2",
   	    "switchHandling": "realtime",
   	    "http_method": "GET",
   	    "on_url":      "http://localhost/rfoutlet/toggle.php?outletId=2&outletStatus=on",
   	    "off_url":     "http://localhost/rfoutlet/toggle.php?outletId=2&outletStatus=off",
   	    "service": "Light",
   	    "brightnessHandling": "no",
   	    "sendimmediately": ""
    },
    {
   	"accessory": "Http",
   	    "name": "3",
   	    "switchHandling": "realtime",
   	    "http_method": "GET",
   	    "on_url":      "http://localhost/rfoutlet/toggle.php?outletId=3&outletStatus=on",
   	    "off_url":     "http://localhost/rfoutlet/toggle.php?outletId=3&outletStatus=off",
   	    "service": "Light",
   	    "brightnessHandling": "no",
   	    "sendimmediately": ""
    },
    {
   	"accessory": "Http",
   	    "name": "4",
   	    "switchHandling": "realtime",
   	    "http_method": "GET",
   	    "on_url":      "http://localhost/rfoutlet/toggle.php?outletId=4&outletStatus=on",
   	    "off_url":     "http://localhost/rfoutlet/toggle.php?outletId=4&outletStatus=off",
   	    "service": "Light",
   	    "brightnessHandling": "no",
   	    "sendimmediately": ""
    },
    {
   	"accessory": "Http",
   	    "name": "5",
   	    "switchHandling": "realtime",
   	    "http_method": "GET",
   	    "on_url":      "http://localhost/rfoutlet/toggle.php?outletId=5&outletStatus=on",
   	    "off_url":     "http://localhost/rfoutlet/toggle.php?outletId=5&outletStatus=off",
   	    "service": "Light",
   	    "brightnessHandling": "no",
   	    "sendimmediately": ""
    }
    ]
}

Alexa Support

Hi there, I love the project so far but it seems to be missing something. I've read in your blog that you got rfoutlet to work with both siri and google home however, I don't have an iPhone or a google home 😢 .

Long story short, I've gone down the rabbit hole of rewriting rfoutlet with alexa support. It involves:

  • creating a web service on the raspberry pi and
  • exposing all of its endpoints globally for alexa skills kit to call it then finally
  • securing the endpoints so anyone can't turn on your lights

It's quite a rabbit hole, but I'd be willing to help get alexa support in this project.

I regret not starting my project out as a fork but here it is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.