萝卜大佬厉害
这里填个坑,我的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,或者用于自动化。