2024年12月4日星期三 上午1:57:28

BroadLink RM IR/RF - Home Assistant中接入博联WiFi智能遥控

1 年 前
#20271 引用
BroadLink IR/RF

BroadLink IR/RF Smart Home Hub-WiFi IR/RF Blaster for Home Automation, TV, Curtain, Shades Remote, Smart AC Controller, Works with Alexa, Google Assistant, IFTTT (RM4 pro)

https://www.amazon.com/dp/B086VBXSDH/ref=syn_sd_onsite_desktop_0






useful links
BROADLINK RM4 MINI
https://www.chiphell.com/thread-2529021-1-1.html
https://www.cnblogs.com/softlin/p/16511684.html
0
1 年 前
#22390 引用
Broadlink RM Pro
Broadlink RM Pro+ (Broadlink RM Pro Plus)
Broadlink RM mini

BroadLink 4th generation

BROADLINK RM4 MINI(黑豆)67 detail
BROADLINK RM4  Pro  172  detial



https://community.home-assistant.io/t/broadlink-rmpro-slow-commands/606594/2
0
1 年 前
#22475 引用
RM4 Pro Humidity (sensor.broadlink_rm4_pro_humidity);
RM4 Pro Temperature (sensor.broadlink_rm4_pro_temperature);

https://community.home-assistant.io/t/homekit-integration-questions/455248?u=msly


实现的步骤:

1.        把Broadlink RM4 mini小黑豆接入home assistant;
2.        用小黑豆学习空调遥控器的“开,关,模式设置,温度设置,风量设置”指令;
3. 把学习到的指令导入相应的配置文件,UI实现用它来控制空调状态

3.        把小黑豆伪装成一个空调控制器接入homekit;
4.        让home assistant以及homekit同步空调当前的运行状态;


系统环境

硬件
1个 RM4 mini
1个 遥控器  

软件
home assistant integration

HA 配置
home assistant
0
4 个月 前
#43480 引用
step 2.Install the Broadlink  integration in home assistant

This is assuming the Broadlink  integration is already set up.

It works purely with text links to a file created in the home assistant by the Broadlink integration.

These will be
entity_id: (your configured broadlink device i.e. RM4 Mini)

entity_id
remote.zhi_neng_yao_kong
0
4 个月 前
#43481 引用
step 3. remote.learn_command

Go to Developer Tools | Services and enter the service name
 remote.learn_command







Select the entity id of your remote, make up a name for the device you’re controlling and the command you want to send, then click Call Service, point your remote at the RM4 and press the appropriate button.




service: remote.learn_command
data:
  device: Gree2
  command:
    - Power on
    - Cool
    - Fan up and down start
    - Fan up and down stop
    - Fan speed min
    - Fan speed max    
    - 18
    - 19
    - 20
    - 24
    - Power off
  command_type: ir
target:
  entity_id: remote.zhi_neng_yao_kong




把遥控器拿出来对准空调发射命令学习
长按你的遥控器按键
0
4 个月 前
#43482 引用
智能家居里的空调控制复合信号/绝对指令 vs “单个指令/相对指令“

复合信号/绝对指令
二者的区别是,前者发给空调的信号是个“复合信号/绝对指令”,一个指令中包括了多个信息,比如 “开机/制冷/24度/低风量/左右摆风/往上吹“ 或 ”开机/制热/28度/高风量/左右不摆风/往下吹“,无论空调当前处于什么状态,只要收到上述复合信号,就会按信号中的指令严格执行。

“单个指令/相对指令“

而后者发给空调的信号是“单个指令/相对指令“,指令中只包括单个信息,比如”加一度“,”减一度“,”改风向“,”改模式“,每个信号都是在当前状态下做变更。

智能家居里的空调控制需要前者,这样才不会导致逻辑混乱。解决方法是在某宝买了个三菱柜机通用的可以发复合信号的遥控器,20多块钱解决问题



broadlink_remote_e81656b7b8b3_codes

Open .storage/broadlink_remote_{BroadlinkMAC}_codes in a text editor.
0
4 个月 前
#43483 引用
How to use

When you want to send a command in an automation or script, use
remote.send_command
not remote.turn_on (that turns the Broadlink on…) and use the device ID and command that you created.
0
4 个月 前
#43484 引用
test the code, you only need to change the “Service”:

0
4 个月 前
#43485 引用
To make sure it works after you’ve set it up, just run:

service: remote.send_command
data:
  command: Turn on
  device: gree air
target:
  entity_id: remote.zhi_neng_yao_kong
0
4 个月 前
#43486 引用
1
0