iobroker--博联rm万能遥控器快速学码大法

前言

博联的学码是一件痛苦的事情,特别是在ha里面学,复制代码稍微不慎,则前功尽弃。而且还很容易掉链子。nodered的博联节点,其他提供了把易控app的特定文件复制过来直接调用的功能。可能很多人不知道而已。下面,我分享一下使用方法。

前置学习

下载安装博联节点,记住节点用这一个,别搞错了:


步骤

  • 下载博联易控app学码,然后备份和还原学到的码。记住,仅支持自定义学码,不支持云端配对的码。

  • 在手机里面把三个文件复制到搭载nodered的机子,记住存放文件的路径,在博联rm节点进行对应的设置。下面一楼说的坑,其实是nodered用docker运行的时候,这三个文件放在宿主机里,记得要映射到容器对应的文件夹,然后再nr设置路径的时候,路径为容器的路径。
  • 应用:可以在流里面直接调用,也可以通过mqtt接入ha或者其他平台,具体用法自己探索。不展开。

萝卜大佬厉害
这里填个坑,我的NR是在群晖上面安装的,安装方法见文档

如果按照此方法安装的,那么博联RM节点,学到的红外码三个文件的路径就有点变化。

具体如下:

/data/SharedData

另外,这里分享一下,在nodered里面直接通过RM节点学码的方法。

导入如下Flow,可以直接学码,和发码

[mw_shl_code=applescript,true]{“id”:“ad5c34da.2f8f38”,“type”:“RM”,“z”:“abf138a8.077c08”,“name”:“RMmini3”,“device”:“2879b4b0.21974c”,“action”:“learn”,“remote”:"",“button”:"",“fix”:“1”,“RFSweep”:“false”,“x”:262.5,“y”:77.5,“wires”:“29345e16.2040f2”]]},{“id”:“33d80a6b.b632c6”,“type”:“inject”,“z”:“abf138a8.077c08”,“name”:“点击学码”,“topic”:"",“payload”:"",“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:"",“x”:127.49998474121094,“y”:77.49998474121094,“wires”:“ad5c34da.2f8f38”]]},{“id”:“1048ff1e.88d4c1”,“type”:“debug”,“z”:“abf138a8.077c08”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:537.4999847412109,“y”:77.49998474121094,“wires”:]},{“id”:“29345e16.2040f2”,“type”:“json”,“z”:“abf138a8.077c08”,“name”:"",“property”:“payload”,“action”:"",“pretty”:false,“x”:397.49998474121094,“y”:77.49998474121094,“wires”:“1048ff1e.88d4c1”]]},{“id”:“b9206d01.0081”,“type”:“comment”,“z”:“abf138a8.077c08”,“name”:“博联RM pro遥控学码,发码”,“info”:“1. Inject\n2. Tap the remote button\n3. Copy learning code from debug tab”,“x”:165.49998474121094,“y”:41.49998474121094,“wires”:]},{“id”:“e16790e3.06701”,“type”:“RM”,“z”:“abf138a8.077c08”,“name”:“RMmini3”,“device”:“2879b4b0.21974c”,“action”:“msg”,“remote”:"",“button”:"",“fix”:"",“RFSweep”:“false”,“x”:421.1666717529297,“y”:124.50001525878906,“wires”:“58c74b33.657474”]]},{“id”:“20ffa6f2.4fee6a”,“type”:“inject”,“z”:“abf138a8.077c08”,“name”:“点击学码”,“topic”:"",“payload”:"",“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“onceDelay”:"",“x”:128.16665649414062,“y”:122.5,“wires”:“6bf5a028.2eee3”]]},{“id”:“58c74b33.657474”,“type”:“debug”,“z”:“abf138a8.077c08”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:594.1666717529297,“y”:122.50001525878906,“wires”:]},{“id”:“6bf5a028.2eee3”,“type”:“function”,“z”:“abf138a8.077c08”,“name”:“空调开”,“func”:“var data = [38,0,46,1,143,146,16,56,15,20,16,55,16,56,15,20,16,20,15,56,15,20,16,20,15,56,15,20,16,20,15,56,16,55,16,20,15,56,16,19,16,20,15,20,16,56,15,56,15,56,16,56,15,56,16,56,15,56,16,56,15,20,15,20,16,19,16,20,15,20,16,55,16,56,15,20,16,56,15,56,16,19,16,20,15,20,16,19,16,20,15,56,16,19,16,20,15,56,16,55,16,56,15,173,143,147,15,56,16,19,16,56,15,56,16,20,15,20,15,56,16,20,15,20,15,56,16,20,15,20,15,56,16,56,15,20,16,55,16,20,15,20,16,19,16,56,15,56,16,56,15,56,16,55,16,56,15,56,16,56,15,20,16,19,16,20,15,20,15,20,16,56,15,56,16,20,15,56,15,56,16,20,15,20,15,20,16,20,15,20,15,56,18,18,15,20,15,56,16,56,15,56,16,173,143,146,15,56,16,56,15,20,15,56,16,20,15,56,16,19,16,56,15,20,16,56,15,56,16,19,16,20,15,56,16,19,16,56,15,20,16,19,16,20,18,17,15,20,16,20,15,20,15,20,17,18,16,20,15,20,15,20,16,20,15,20,15,20,16,19,16,20,15,20,16,19,16,20,15,20,15,20,16,19,16,20,15,20,16,19,16,56,15,56,16,56,15,20,15,56,16,20,15,0,13,5,0,0,0,0,0,0,0,0,0,0]\n\nmsg.payload={\n “mac”:”",\n “host”:"",\n “action”:“send”,\n “data”:data,\n “repeat”:1\n};\n\nreturn msg;",“outputs”:1,“noerr”:0,“x”:263.1666717529297,“y”:123.50001525878906,“wires”:“e16790e3.06701”]]},{“id”:“2879b4b0.21974c”,“type”:“rmdevice”,“z”:"",“folder”:"/data/SharedData",“mac”:“34EA34C78271”,“host”:“192.168.2.101”}][/mw_shl_code]

学好了码以后也可以直接配合其他节点发送,接入HA,或者用于自动化。

试了无数遍。把docker底下所有opt目录都放了一份。依然不出现。不知道到底该把东西放哪个目录了

你用的是hassio,现在你找到了,有空可以填填这个坑

可以看看这个补充的

大佬们加油,好教程