Giter Site home page Giter Site logo

homebridge-mqtt-sonoffrf-receiver's Introduction

homebridge-mqtt-sonoffrf-receiver

Get Motion Sensor status via MQTT in Homebridge using Sonoff RF Bridge 433 with TasmOTA firmware. Motion sensor is activated when received RF code matches for rfcode or RF key stored in Sonoff RF Bridge. Open Sonoff RF Bridge console to read out received RF codes as hexadecimal values in DATA field. Use these values in rfcode parameter or use rfkey if you have already defined RF codes in Sonoff RF Bridge. Value 'any' will activate the sensor if any RF code received. Use rfcodeon and rfcodeoff parameters if your sensor sends both on and off states. Sensor can be motion sensor or RF button or any other RF sensor.

Installation

sudo npm install -g homebridge-mqtt-sonoffrf-receiver

Sample HomeBridge Configuration

{
  "bridge": {
    "name": "HomeBridge",
    "username": "CC:33:3B:D3:CE:32",
    "port": 51826,
    "pin": "321-45-123"
  },

  "description": "",

  "accessories": [
    {
      "accessory": "mqtt-sonoffrf-receiver",
      "name": "Living Room",
      "url": "mqtt://localhost",
      "topic": "tele/sonoff_rf/RESULT",
      "username": "username",
      "password": "password",
      "rfcode": "1..7FFFFF or 'any'",
      "rfkey": "1..16 or 'any'",
      "ondelay": "time in ms while the sensor is active, the default is 10000",
      "rfcodeon": "1..7FFFFF",
      "rfcodeoff": "1..7FFFFF",
      "accessoryservicetype": "'MotionSensor' (default) or 'StatelessProgrammableSwitch'"
    }
  ],

  "platforms": []
}

References

Use homebridge-mqtt-sonoffrf-transmitter to control RF devices in Homebridge.

homebridge-mqtt-sonoffrf-receiver's People

Contributors

heisice avatar miskui avatar

Watchers

 avatar

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.