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

 找回密码
 立即注册
查看: 7106|回复: 8

[技术探讨] 请教:Home Assistant通过RM PRO+控制窗帘问题

[复制链接]

1

主题

26

帖子

145

积分

注册会员

Rank: 2

积分
145
金钱
119
HASS币
0
发表于 2017-11-18 22:09:35 | 显示全部楼层 |阅读模式
用e-control可以连接窗帘没有问题,从HA里无法扫频学码。
看论坛的帖子,从APP里导出遥控码,但不知道这个码要怎么转换加到configuration.yaml里,论坛里现有的方法都试过都无效
望大牛指教,谢谢。

  - platform: broadlink
    host: 192.168.1.1
    mac: '34:EA:44:425:16'
    timeout: 15
    switches:

        ssss:
           command_on: ''
           command_off: ''

jsonIrCode文件内容:
[{"buttonId":2,"id":1,"code":[-78,0,78,1,5,21,5,21,5,22,4,21,6,20,6,21,5,21,5,21,5,21,5,21,5,22,4,22,5,21,5,21,5,21,5,21,5,22,5,21,5,21,5,21,5,21,5,21,6,21,5,13,12,13,13,12,12,13,12,13,13,12,13,13,12,13,12,13,12,13,12,13,12,13,13,12,12,13,13,12,13,12,13,13,12,13,12,13,12,13,12,13,13,12,13,126,12,26,12,14,12,13,13,13,13,13,13,13,26,26,13,13,13,13,12,14,12,14,12,14,12,13,26,13,13,27,12,14,26,26,25,27,26,26,12,14,26,26,13,13,26,26,25,14,13,13,13,26,26,27,25,27,25,26,13,14,12,13,13,13,13,13,13,13,13,13,26,26,26,26,26,26,13,13,26,27,25,26,13,14,12,13,13,13,13,13,13,13,26,26,12,0,3,17,13,12,13,13,12,13,12,13,12,13,12,13,13,12,12,13,13,12,13,12,13,13,12,13,12,13,12,13,12,13,12,13,12,13,12,14,12,12,13,13,12,13,12,13,12,127,12,25,13,13,13,13,13,13,13,13,13,13,25,27,12,14,12,14,12,14,12,13,13,13,13,13,26,13,13,26,13,13,26,27,25,27,26,26,12,14,26,26,13,13,26,26,26,13,13,13,13,26,26,27,25,26,26,26,13,14,12,14,12,14,12,13,13,13,13,13,26,26,26,26,26,26,13,13,26,27,25,26,13,13,13,13,13,13,13,13,13,13,26,26,12,0,5,-36,0,0,0,0,0,0,0,0,0,0],"delay":0,"order":0,"name":""},{"buttonId":3,"id":2,"code":[-78,0,106,1,5,21,5,21,5,21,6,21,5,21,5,21,5,21,5,21,5,21,6,21,5,21,5,21,5,21,5,21,6,21,5,21,5,21,5,21,5,21,6,21,5,21,5,21,5,21,6,12,13,13,12,13,12,13,12,13,12,13,12,13,13,12,13,12,13,13,12,12,13,13,12,13,12,13,12,13,13,12,13,12,13,13,12,13,12,13,12,13,12,13,12,127,12,13,12,26,13,13,13,13,14,13,26,12,13,13,14,13,13,26,13,13,13,13,13,13,26,13,13,26,26,13,13,26,13,13,26,13,13,13,14,12,14,12,14,13,13,26,13,13,26,13,13,13,13,27,12,13,13,13,26,26,26,13,14,12,14,12,14,13,13,26,13,13,13,13,13,13,26,13,13,13,13,13,13,13,13,26,14,12,14,12,27,12,13,13,13,14,13,26,13,13,13,13,13,13,26,13,13,13,13,0,3,30,12,13,13,12,13,12,13,12,13,12,13,12,13,13,12,13,12,13,12,13,13,12,13,12,13,13,12,13,12,12,13,13,12,13,13,12,13,12,13,13,12,12,13,13,12,127,12,13,12,26,13,13,13,13,13,13,26,13,13,13,13,14,12,26,13,14,12,13,14,12,27,12,14,25,27,13,13,26,13,13,26,13,13,13,13,13,13,13,14,13,13,26,13,13,26,13,13,13,13,26,13,13,13,13,26,26,26,13,13,13,14,12,13,14,13,26,13,13,12,14,12,14,26,13,13,13,13,13,13,13,13,26,13,13,13,13,26,13,14,12,13,14,12,26,14,13,13,13,13,12,27,12,14,13,13,0,5,-36,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"delay":0,"order":0,"name":""},{"buttonId":1,"id":3,"code":[-78,0,82,1,5,22,4,22,5,21,5,21,5,21,5,22,4,22,5,21,5,21,5,21,5,22,4,21,6,21,4,22,5,21,5,21,5,22,4,22,5,21,5,21,5,22,4,22,4,22,5,13,12,13,12,13,13,12,13,13,11,14,12,13,12,13,12,13,12,13,12,14,11,14,11,13,13,13,12,13,12,13,12,13,13,12,12,13,12,13,13,13,12,13,12,127,12,13,12,13,13,26,13,13,26,14,12,27,12,14,25,14,13,26,13,13,25,14,13,26,26,26,26,27,12,13,13,13,26,26,13,14,25,27,12,14,12,13,13,13,26,27,25,27,25,14,12,27,13,13,26,26,12,14,26,13,13,26,13,13,26,13,13,26,13,13,13,13,13,13,13,13,26,13,13,26,13,14,25,13,13,13,13,27,12,14,26,13,13,26,12,14,12,0,3,18,12,13,12,13,12,13,12,13,12,13,12,13,13,13,12,12,13,12,13,13,12,13,12,13,12,13,12,14,11,13,13,13,12,13,12,13,12,13,12,13,13,12,13,13,12,126,13,13,11,14,13,26,13,13,26,13,13,27,12,13,26,13,13,27,12,14,25,14,13,26,25,27,26,26,13,13,13,13,26,26,13,13,26,26,13,13,13,13,12,14,26,26,26,27,25,14,12,27,12,14,25,27,13,12,26,14,12,27,12,14,26,13,13,26,13,13,12,14,13,13,13,13,25,14,12,27,13,13,26,13,13,13,13,27,12,13,26,13,13,27,13,13,12,0,5,-36,0,0,0,0,0,0],"delay":0,"order":0,"name":""}]

回复

使用道具 举报

3

主题

182

帖子

1640

积分

金牌会员

Rank: 6Rank: 6

积分
1640
金钱
1458
HASS币
10
发表于 2017-11-19 10:14:41 | 显示全部楼层
关注一下,我是需要用rm pro 来控制射频灯,我的灯也是通过扫频的方式来学码的。目前还没有加入到HA中。
回复

使用道具 举报

1

主题

26

帖子

145

积分

注册会员

Rank: 2

积分
145
金钱
119
HASS币
0
 楼主| 发表于 2017-11-19 18:05:47 | 显示全部楼层
搞定了
回复

使用道具 举报

1

主题

26

帖子

145

积分

注册会员

Rank: 2

积分
145
金钱
119
HASS币
0
 楼主| 发表于 2017-11-19 18:08:13 | 显示全部楼层
https://github.com/NightRang3r/Broadlink-e-control-db-dump
按这个方法,可以把jsonIrCode给转换出来,在HA里使用base64码
回复

使用道具 举报

3

主题

207

帖子

971

积分

高级会员

Rank: 4

积分
971
金钱
764
HASS币
0
发表于 2017-11-20 23:02:15 | 显示全部楼层
你的窗帘电机是那家产的?用的是什么协议?
回复

使用道具 举报

1

主题

26

帖子

145

积分

注册会员

Rank: 2

积分
145
金钱
119
HASS币
0
 楼主| 发表于 2017-11-23 20:03:03 | 显示全部楼层
xiaoguaileo 发表于 2017-11-20 23:02
你的窗帘电机是那家产的?用的是什么协议?

就是博联的
回复

使用道具 举报

3

主题

182

帖子

1640

积分

金牌会员

Rank: 6Rank: 6

积分
1640
金钱
1458
HASS币
10
发表于 2017-11-23 21:10:29 | 显示全部楼层
xianshihulu 发表于 2017-11-19 18:08
https://github.com/NightRang3r/Broadlink-e-control-db-dump
按这个方法,可以把jsonIrCode给转换出来, ...

不错,不错。赶紧去按你说的方法试试。
回复

使用道具 举报

30

主题

441

帖子

1614

积分

金牌会员

Rank: 6Rank: 6

积分
1614
金钱
1173
HASS币
0
QQ
发表于 2017-12-20 20:42:56 | 显示全部楼层
本帖最后由 fotanski 于 2018-1-18 00:01 编辑
没有符合的翻译结果!

请确认选中的文本是完整的单词或句子。

目前仅谷歌翻译支持汉译英。


                               
登录/注册后可看大图
轻灵划译
数据来源:

                               
登录/注册后可看大图

                               
登录/注册后可看大图

                               
登录/注册后可看大图

                               
登录/注册后可看大图

                               
登录/注册后可看大图



回复

使用道具 举报

0

主题

184

帖子

739

积分

高级会员

Rank: 4

积分
739
金钱
555
HASS币
0
发表于 2018-5-14 12:12:07 | 显示全部楼层
学习学习
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 18:38 , Processed in 0.096216 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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