『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 48250|回复: 41

[基础教程] 博联rm万能遥控器快速学码大法

  [复制链接]

62

主题

603

帖子

6386

积分

论坛元老

Rank: 8Rank: 8

积分
6386
金钱
5708
HASS币
240

教程狂人论坛风云人物

发表于 2019-5-24 09:59:57 | 显示全部楼层 |阅读模式
本帖最后由 antsunzj 于 2019-5-24 10:10 编辑

前言
  博联的学码是一件痛苦的事情,特别是在ha里面学,复制代码稍微不慎,则前功尽弃。而且还很容易掉链子。nodered的博联节点,其他提供了把易控app的特定文件复制过来直接调用的功能。可能很多人不知道而已。下面,我分享一下使用方法。
认真看,看不懂的请留言。不要灌水。
前置学习
下载安装博联节点,记住节点用这一个,别搞错了:

图0-1

图0-1
0-2.png
步骤
* 下载博联易控app学码,然后备份和还原学到的码。记住,仅支持自定义学码,不支持云端配对的码。
1-1.png

图1-2

图1-2
* 在手机里面把三个文件复制到搭载nodered的机子,记住存放文件的路径,在博联rm节点进行对应的设置。

图2-1

图2-1

* 应用:可以在流里面直接调用,也可以通过mqtt接入ha或者其他平台,具体用法自己探索。不展开。
2-2.png


尝试过萝卜,我想你一定会忘记青瓜
回复

使用道具 举报

5

主题

295

帖子

3990

积分

论坛元老

Rank: 8Rank: 8

积分
3990
金钱
3695
HASS币
0
发表于 2019-5-24 10:02:38 | 显示全部楼层
学习一下,有意转nodered
回复

使用道具 举报

2

主题

150

帖子

571

积分

高级会员

Rank: 4

积分
571
金钱
421
HASS币
0
发表于 2019-5-24 10:04:42 来自手机 | 显示全部楼层
感谢分享
回复

使用道具 举报

12

主题

259

帖子

1014

积分

金牌会员

Rank: 6Rank: 6

积分
1014
金钱
754
HASS币
0
发表于 2019-5-24 10:10:39 | 显示全部楼层
是node red直接调用手机的码吗?
回复

使用道具 举报

62

主题

603

帖子

6386

积分

论坛元老

Rank: 8Rank: 8

积分
6386
金钱
5708
HASS币
240

教程狂人论坛风云人物

 楼主| 发表于 2019-5-24 10:12:04 | 显示全部楼层
tang5275 发表于 2019-5-24 10:10
是node red直接调用手机的码吗?

对,直接调用手机学到的码
尝试过萝卜,我想你一定会忘记青瓜
回复

使用道具 举报

8

主题

2073

帖子

6053

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
6053
金钱
3980
HASS币
145

灌水之王

发表于 2019-5-24 10:42:47 | 显示全部楼层
文件偷懒
回复

使用道具 举报

34

主题

709

帖子

4693

积分

论坛元老

Rank: 8Rank: 8

积分
4693
金钱
3974
HASS币
50
发表于 2019-5-24 11:04:20 | 显示全部楼层
我擦了。。。RM PRO+无法接入易控,,,老子也是醉了
回复

使用道具 举报

62

主题

603

帖子

6386

积分

论坛元老

Rank: 8Rank: 8

积分
6386
金钱
5708
HASS币
240

教程狂人论坛风云人物

 楼主| 发表于 2019-5-24 11:32:54 | 显示全部楼层
huang7dede 发表于 2019-5-24 11:04
我擦了。。。RM PRO+无法接入易控,,,老子也是醉了

你先用智慧星把它连上wifi,然后用易控app去发现
尝试过萝卜,我想你一定会忘记青瓜
回复

使用道具 举报

123

主题

4661

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16412
金钱
11666
HASS币
45
发表于 2019-5-24 12:09:26 | 显示全部楼层
代表博联感谢你
回复

使用道具 举报

9

主题

256

帖子

2796

积分

金牌会员

Rank: 6Rank: 6

积分
2796
金钱
2530
HASS币
60
发表于 2019-5-24 21:43:32 | 显示全部楼层
萝卜大佬厉害
这里填个坑,也感谢萝卜大佬的指导,我的NR是在群晖上面安装的,安装方法见文档

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

具体如下:

/data/SharedData


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

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

[{"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"}]


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

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 06:38 , Processed in 0.651585 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表