Giter Site home page Giter Site logo

rf-bridge's Introduction

rf-bridge

这是一个利用 NodeMCU 接入 433Mhz 射频到 Home Assistant 的项目。

Roadmap

  • WiFi / MQTT 对于 HA 的接入
  • 射频接收测试
  • 射频发射测试

Background

租房处开关较难拆卸且为明装,关灯神器只有贴开关上的那种才能正常使用,而此种开关目前只看到了射频的版本,所以需要一个能够接入 HomeAssistant 的 433Mhz 射频网关。

相较于花费 70r+ 的 Sonoff Bridge 与 100r+ 的小米音箱射频加装,显然还是包邮的 10r MCU + 6r 射频模块 更有性价比。

Installation

  1. 编辑 src/main.cpp,填入 WiFi 以及 MQTT 信息。
  2. 在 HA 的 configuration.yaml 中添加以下配置:
mqtt:
  - button:
      unique_id: rf-bridge-x
      name: "RF Button x"
      command_topic: "home/rf-bridge/set"
      payload_press: "<int>|<hex>"

其中,payload_press 的内容为 长度|代码,可以在 HA 的 MQTT 界面通过监听 home/rf-bridge 这个 topic 获得,理论上可以同时接入 114514 个射频设备。

如果你觉得信号差,可以加根双公导线在发送端天线上,然后另一头对准你想操控的设备(如下图),也可以直接买信号加强版模块

References

rf-bridge's People

Contributors

jerrita avatar

Stargazers

 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.