你是用docker?docker下我找了很久也没找到路径,套件安装的domoticz倒是能找到路径
[插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
版面规则
博联Broadlink RM Pro/Mini、RM Home、MP1、MP2、SP mini等
博联Broadlink RM Pro/Mini、RM Home、MP1、MP2、SP mini等
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
在docker里的domoticz容器点右键选择编辑,第二个标签:卷,设置配置文件的路径(安装教程里的安装命令已经带了),一般是/docker/domoticz/config/(也就是你自己安装插件时,在群晖docker文件夹下创建的文件夹),ini配置文件就在这个目录下,这个目录是自己创建,自己设置配置文件的映射路径,不是固定的,所以每个人可能不一样!当初我也卡在这里很久,这里好像不好插图,你去QQ群里问,我看到截图给你
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
好了,ini路径的这个问题解决了。其实要看docker卷里面的装载路径对应的文件夹,放这个文件夹就可以了。
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
又有错误啦,刚才ini的路径对了。但执行出错了,各位大神在帮忙看看。我的环境是群晖装的docker版
代码: 全选
2017-08-23 21:42:27.662 User: ehaining initiated a switch command (22/主卧电风扇开关/On)
2017-08-23 21:42:27.677 (博联 RM PRO) Calling message handler 'onCommand'.
2017-08-23 21:42:27.677 (博联 RM PRO) onCommand called for Unit 4: Parameter 'On', Level: 0 , Connected : True
2017-08-23 21:42:27.677 (博联 RM PRO) Generate on Command for learned code stored on unit :4
2017-08-23 21:42:27.678 (博联 RM PRO) Code keyCommand : On
2017-08-23 21:42:27.678 Error: (博联 RM PRO) 'onCommand' failed 'NoSectionError'.
2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 207 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 316 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommand
2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 781 in /usr/lib/python3.5/configparser.py, function get
2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 1138 in /usr/lib/python3.5/configparser.py, function _unify_values
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
ini文件你是不是没做过修改?看帖子里我贴的ini文件示例,按键编码等号左边的数字好改成相应的On或Off。覆雨翻云 写了: ↑周三 8月 23, 2017 21:55 又有错误啦,刚才ini的路径对了。但执行出错了,各位大神在帮忙看看。我的环境是群晖装的docker版代码: 全选
2017-08-23 21:42:27.662 User: ehaining initiated a switch command (22/主卧电风扇开关/On) 2017-08-23 21:42:27.677 (博联 RM PRO) Calling message handler 'onCommand'. 2017-08-23 21:42:27.677 (博联 RM PRO) onCommand called for Unit 4: Parameter 'On', Level: 0 , Connected : True 2017-08-23 21:42:27.677 (博联 RM PRO) Generate on Command for learned code stored on unit :4 2017-08-23 21:42:27.678 (博联 RM PRO) Code keyCommand : On 2017-08-23 21:42:27.678 Error: (博联 RM PRO) 'onCommand' failed 'NoSectionError'. 2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 207 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand 2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 316 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommand 2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 781 in /usr/lib/python3.5/configparser.py, function get 2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 1138 in /usr/lib/python3.5/configparser.py, function _unify_values
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
哦,有修改哦。DT27 写了: ↑周四 8月 24, 2017 11:09ini文件你是不是没做过修改?看帖子里我贴的ini文件示例,按键编码等号左边的数字好改成相应的On或Off。覆雨翻云 写了: ↑周三 8月 23, 2017 21:55 又有错误啦,刚才ini的路径对了。但执行出错了,各位大神在帮忙看看。我的环境是群晖装的docker版代码: 全选
2017-08-23 21:42:27.662 User: ehaining initiated a switch command (22/主卧电风扇开关/On) 2017-08-23 21:42:27.677 (博联 RM PRO) Calling message handler 'onCommand'. 2017-08-23 21:42:27.677 (博联 RM PRO) onCommand called for Unit 4: Parameter 'On', Level: 0 , Connected : True 2017-08-23 21:42:27.677 (博联 RM PRO) Generate on Command for learned code stored on unit :4 2017-08-23 21:42:27.678 (博联 RM PRO) Code keyCommand : On 2017-08-23 21:42:27.678 Error: (博联 RM PRO) 'onCommand' failed 'NoSectionError'. 2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 207 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand 2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 316 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommand 2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 781 in /usr/lib/python3.5/configparser.py, function get 2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 1138 in /usr/lib/python3.5/configparser.py, function _unify_values
请教docker里执行的下面的命令,是什么意思??
代码: 全选
/src/domoticz/domoticz -dbase /config/domoticz.db -log /config/comoticz.log
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
DT27 写了: ↑周四 8月 24, 2017 11:09ini文件你是不是没做过修改?看帖子里我贴的ini文件示例,按键编码等号左边的数字好改成相应的On或Off。覆雨翻云 写了: ↑周三 8月 23, 2017 21:55 又有错误啦,刚才ini的路径对了。但执行出错了,各位大神在帮忙看看。我的环境是群晖装的docker版代码: 全选
2017-08-23 21:42:27.662 User: ehaining initiated a switch command (22/主卧电风扇开关/On) 2017-08-23 21:42:27.677 (博联 RM PRO) Calling message handler 'onCommand'. 2017-08-23 21:42:27.677 (博联 RM PRO) onCommand called for Unit 4: Parameter 'On', Level: 0 , Connected : True 2017-08-23 21:42:27.677 (博联 RM PRO) Generate on Command for learned code stored on unit :4 2017-08-23 21:42:27.678 (博联 RM PRO) Code keyCommand : On 2017-08-23 21:42:27.678 Error: (博联 RM PRO) 'onCommand' failed 'NoSectionError'. 2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 207 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand 2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 316 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommand 2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 781 in /usr/lib/python3.5/configparser.py, function get 2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 1138 in /usr/lib/python3.5/configparser.py, function _unify_values
代码: 全选
[DEFAULT]
pluginname = RMPro
customname = 主卧电风扇开关
pluginkey = BroadlinkRM2
hardwareid = 2
pluginfolder = /config/
unit = 4
[Device]
mac = 34EA34C73C28
host = 192.168.1.139
[learnedcode]
on = 2600640014111312131213111312131213371311133713371237143613361435151113371237131213361411131213121312131212121337131212371436133614361337133613121336131213121312131212121312133713121237133712371337133614000d0500000000
off = 2600640014111312131213111312131213371311133713371237143613361435151113371237131213361411131213121312131212121337131212371436133614361337133613121336131213121312131212121312133713121237133712371337133614000d0500000000
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
才发现你是docker版。。。docker版不要按我写的帖子做,去看docker版的帖子...覆雨翻云 写了: ↑周四 8月 24, 2017 22:37DT27 写了: ↑周四 8月 24, 2017 11:09ini文件你是不是没做过修改?看帖子里我贴的ini文件示例,按键编码等号左边的数字好改成相应的On或Off。覆雨翻云 写了: ↑周三 8月 23, 2017 21:55 又有错误啦,刚才ini的路径对了。但执行出错了,各位大神在帮忙看看。我的环境是群晖装的docker版代码: 全选
2017-08-23 21:42:27.662 User: ehaining initiated a switch command (22/主卧电风扇开关/On) 2017-08-23 21:42:27.677 (博联 RM PRO) Calling message handler 'onCommand'. 2017-08-23 21:42:27.677 (博联 RM PRO) onCommand called for Unit 4: Parameter 'On', Level: 0 , Connected : True 2017-08-23 21:42:27.677 (博联 RM PRO) Generate on Command for learned code stored on unit :4 2017-08-23 21:42:27.678 (博联 RM PRO) Code keyCommand : On 2017-08-23 21:42:27.678 Error: (博联 RM PRO) 'onCommand' failed 'NoSectionError'. 2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 207 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand 2017-08-23 21:42:27.678 Error: (博联 RM PRO) ----> Line 316 in /src/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommand 2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 781 in /usr/lib/python3.5/configparser.py, function get 2017-08-23 21:42:27.679 Error: (博联 RM PRO) ----> Line 1138 in /usr/lib/python3.5/configparser.py, function _unify_values
代码: 全选
[DEFAULT] pluginname = RMPro customname = 主卧电风扇开关 pluginkey = BroadlinkRM2 hardwareid = 2 pluginfolder = /config/ unit = 4 [Device] mac = 34EA34C73C28 host = 192.168.1.139 [learnedcode] on = 2600640014111312131213111312131213371311133713371237143613361435151113371237131213361411131213121312131212121337131212371436133614361337133613121336131213121312131212121312133713121237133712371337133614000d0500000000 off = 2600640014111312131213111312131213371311133713371237143613361435151113371237131213361411131213121312131212121337131212371436133614361337133613121336131213121312131212121312133713121237133712371337133614000d0500000000
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
putty里cd到文件夹,然后nano int
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
command点击learn,设备的灯没亮啊,然后还是对着它按了开关按钮,log里面看没有红外代码,只有Error Connecting to Broadlink device....
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
IP和MAC又对了一遍没错,照理说也不该是地址DHCP没对,设备都显示出来了呀。log里关于博联的报错只有Connecting to Broadlink device.... 这一句
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
都设置好了电机ON/OFF没反应,在log里复制长码,手动编辑文件粘贴(实际上是一样的)还是没反应。怀疑是自己平台或者文件没设置好
于是我去劫包,但用PC发包过去还是控制不了
然后我用PC的蓝叠模拟了安卓登录博联的“智慧星”app,发现也TM控制不了
接着我又用别人的手机和平板下载登录“智慧星”,就能控制
这就很神奇了,不知道题主大大有没有类似的情况
我准备换个RM设备试试