Git Product home page Git Product logo

mqttirext's Introduction

MqttIrext


什么是MqttIrext?

MqttIrext Irext的一个衍生项目。 MqttIrext的作用是帮助你只需要一个ESP8266系列的模块和一个红外二级管就可以控制家里红外设备。 它的优势在于:

  • 成本低廉只需要一个ESP8266模块或开发板如NodeMcu)和一个红外二级管
  • 不需要人为学习红外码快速匹配到电器
  • 有mqtt接口可以方便接入homeassistant

开发状态

MqttIrext 仍然处于前期开发阶段,未经充分测试与验证,不推荐用于生产环境。

目前的交互协议可能随时改变,不保证向后兼容,升级新版本时需要注意公告说明同时升级服务端和客户端。

说明

现已完成,当前版本只支持空调

使用方式

  • 首先你需要刷好固件
  • 打开 http://esp.shanming.top/#/, 配置mqtt信息,完成会提示是否连接 配置mqtt
  • 开启esp设备,查找AP_HOME_NODEBleeper热点,手机或电脑都可以连接,访问地址192.168.4.1 配置如下信息: 配置esp设备mqtt
  • 网页端会接收到这样一个消息 配置esp设备mqtt
  • 配置topic和针脚,默认是14也就是d5,8266型号就是00AED134
  • 选择好空调固件,点击使用固件,会看到右上角有download is ok消息,证明固件下载完成 配置esp设备mqtt
  • 点击测试,会发送改变温度,从 18度到30,制冷,或在HomeAssistant中测试

发射管连接图

红外连接图

也可以尝试不用三级管,直接连接。红外二级管长引脚接gpio,短脚接地。

HomeAssistant配置文件

记得修改mqtt型号

climate:
  - platform: mqtt
    name: study
    friendly_name: 客厅空调
    modes:
      - cool
      - heat
      - auto
      - fan
      - dry
      - off
    swing_modes:
      - on
      - off
    fan_modes:
      - high
      - medium
      - low
      - auto
    power_command_topic: "esp/00AECB90/mode/set"
    mode_command_topic: "esp/00AECB90/mode/set"
    temperature_command_topic: "esp/00AECB90/temperature/set"
    fan_mode_command_topic: "esp/00AECB90/fan/set"
    swing_mode_command_topic: "esp/00AECB90/swing/set"
    min_temp: 16
    max_temp: 30

特别感谢

  • Strawmanbobi Irext开源库的作者,给予我技术和精神上的支持
  • Caffreyfans IRmqtt 开源库作者,我这这个基础上做了一些修改

mqttirext's People

Contributors

yaming116 avatar apcan avatar

Watchers

James Cloos 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.