固件分享 -- 艾韵A1红外遥控器

RT,刷机过程省略,源码来源为:

[GitHub - crankyoldgit/IRremoteESP8266: Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/]
[GitHub - Curious-r/IRremoteESP8266 at AI-Win-A1]
感谢crankyoldgit和Curious-r两位作者的分享

关于我的固件:

  1. 各类SDK更新到目前最新
  2. 做了小小改动,不喜欢蓝灯常亮,改成发射红外信号时闪红灯,接收红外信号时闪蓝灯(没有深入改,闪蓝光的时间很短)
    IRMQTTServer_AI_WIN_A1.bin.zip (405.5 KB)

请问怎么使用啊?

刷机后,通过mqtt接入homeassisant

在configuration.yaml加入以下内容(ir_server记得改成你设置的主题)

mqtt:
climate:
- name: Living Room Aircon
modes:
- “off”
- “auto”
- “cool”
- “heat”
- “dry”
- “fan_only”
fan_modes:
- “Auto”
- “Min”
- “Low”
- “Medium”
- “High”
- “Max”
swing_modes:
- “Off”
- “Auto”
- “Highest”
- “High”
- “Middle”
- “Low”
- “Lowest”
# power_command_topic is probably not needed for most HA configurations
# power_command_topic: “ir_server/ac/cmnd/power”
mode_command_topic: “ir_server/ac/cmnd/mode”
mode_state_topic: “ir_server/ac/stat/mode”
temperature_command_topic: “ir_server/ac/cmnd/temp”
temperature_state_topic: “ir_server/ac/stat/temp”
fan_mode_command_topic: “ir_server/ac/cmnd/fanspeed”
fan_mode_state_topic: “ir_server/ac/stat/fanspeed”
swing_mode_command_topic: “ir_server/ac/cmnd/swingv”
swing_mode_state_topic: “ir_server/ac/stat/swingv”
min_temp: 16
max_temp: 32
temp_step: 1
retain: false

自动发现,还是需要配置的,红外的发送接收

可以自动发送,但建议自定义配置,这样可以定制一些功能,比如风速、风向等

固件其实就是IRMQTT,一样的,目前并没有做深度的修改

收到谢谢,我之前买了6个一直在吃灰,明天找出来刷机用上

你好,我新手一个,把配置位置加到configuration.yaml提示错误,我原来配置文件里面没有配置mqtt,我把它加上去了,检查配置提示:加载/config/configuration.yaml时出错:此处不允许使用映射值
在“/config/configuration.yaml”中,第19行,第14列,19是climate:这行,我估计是空格没有敲对,求大佬看下哪里不对


这里是监听mqtt收到的红外信息,看看给对

缩进问题,climate以及以下的行,必须空两格

大佬:还是搞不定,可以把你的配置截图发出来下吗?我照了敲空格

翻译看了下,怎么录入红外代码去这些模式里面
{
“protocol”: “UNKNOWN”,
“model”: -1,
“power”: “Off”,
“mode”: “Off”,
“use_celsius”: “On”,
“temp”: 25,
“fanspeed”: “Auto”,
“swingv”: “Off”,
“swingh”: “Off”,
“quiet”: “Off”,
“turbo”: “Off”,
“econo”: “Off”,
“light”: “Off”,
“filter”: “Off”,
“clean”: “Off”,
“beep”: “Off”,
“sleep”: -1
}