Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)
发表于 : 周一 8月 21, 2017 22:27
在docker里的domoticz容器点右键选择编辑,第二个标签:卷,设置配置文件的路径(安装教程里的安装命令已经带了),一般是/docker/domoticz/config/(也就是你自己安装插件时,在群晖docker文件夹下创建的文件夹),ini配置文件就在这个目录下,这个目录是自己创建,自己设置配置文件的映射路径,不是固定的,所以每个人可能不一样!当初我也卡在这里很久,这里好像不好插图,你去QQ群里问,我看到截图给你
好了,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
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
哦,有修改哦。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
代码: 全选
/src/domoticz/domoticz -dbase /config/domoticz.db -log /config/comoticz.log
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
才发现你是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
IP和MAC又对了一遍没错,照理说也不该是地址DHCP没对,设备都显示出来了呀。log里关于博联的报错只有Connecting to Broadlink device.... 这一句
[/img]
都设置好了电机ON/OFF没反应,在log里复制长码,手动编辑文件粘贴(实际上是一样的)还是没反应。怀疑是自己平台或者文件没设置好