[插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

博联Broadlink RM Pro/Mini、RM Home、MP1、MP2、SP mini等
版面规则
博联Broadlink RM Pro/Mini、RM Home、MP1、MP2、SP mini等
头像
DT27
帖子: 345
注册时间: 周四 3月 30, 2017 08:54
Gender:

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 DT27 »

demon1107 写了: 周四 11月 23, 2017 14:04
DT27 写了: 周三 11月 22, 2017 16:07
demon1107 写了: 周三 11月 22, 2017 10:30 2017-11-22 10:15:59.665 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/BroadlinkRM2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.

2017-11-22 10:15:59.666 Error: (博联RM) Module Import failed, exception: 'ImportError'

2017-11-22 10:15:59.666 Error: (博联RM) Module Import failed: ' Name: broadlink'

2017-11-22 10:15:59.666 Error: (博联RM) Error Line details not available.

楼主,请问这个错误是什么问题啊? :cry:
Module Import failed: ' Name: broadlink'

你从头再看一遍帖子。。。。。。
我用了那四条代码。。只有一个可以用,但是刷新过后打开:8080.提示我浏览器缓存刷新失败打不开了
domoticz死了,重启就行了
czweb
帖子: 1
注册时间: 周四 12月 07, 2017 21:56

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 czweb »

DT27 写了: 周四 11月 16, 2017 10:56
dxh000130 写了: 周二 11月 14, 2017 21:43 您好 我出现了无法连接的错误

2017-12-08 07:52:18.082 Error: (RM2) Error Connecting to Broadlink device....
小写mac地址就对了.
程序开发不太科学,有点傻,16进制是不分大小写才对
blindlight
帖子: 98
注册时间: 周四 3月 30, 2017 00:03

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 blindlight »

czweb 写了: 周五 12月 08, 2017 16:04
DT27 写了: 周四 11月 16, 2017 10:56
dxh000130 写了: 周二 11月 14, 2017 21:43 您好 我出现了无法连接的错误

2017-12-08 07:52:18.082 Error: (RM2) Error Connecting to Broadlink device....
小写mac地址就对了.
程序开发不太科学,有点傻,16进制是不分大小写才对
觉得傻自己改程序,反正源代码就在那里
615181413
帖子: 1
注册时间: 周六 12月 09, 2017 21:13

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 615181413 »

求告知,射频开关是否可以这样导入?我尝试了一下,学习不了,大神求帮忙
头像
DT27
帖子: 345
注册时间: 周四 3月 30, 2017 08:54
Gender:

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 DT27 »

615181413 写了: 周六 12月 09, 2017 21:16 求告知,射频开关是否可以这样导入?我尝试了一下,学习不了,大神求帮忙
射频学习得靠运气,多试几次,建议不要自己手动学习,直接用易控应用学习后导出。
dxh000130
帖子: 5
注册时间: 周二 11月 14, 2017 21:41

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 dxh000130 »

抱歉楼主 前一段时间没搞这个 现在还是这个问题 执行python返回结果是
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import broadlink
>>> device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
>>> device.auth()
True
>>> device.host
('192.168.1.47', 80)
>>>
DT27 写了: 周四 11月 16, 2017 10:56
dxh000130 写了: 周二 11月 14, 2017 21:43 您好 我出现了无法连接的错误
017-11-14 21:38:15.768 (rm pro) Debug log level set to: 'true'.
2017-11-14 21:38:15.768 (rm pro) 'Address':'192.168.1.47'
2017-11-14 21:38:15.768 (rm pro) 'Mode1':'34ea348f05b8'
2017-11-14 21:38:15.768 (rm pro) 'Author':'zak45'
2017-11-14 21:38:15.768 (rm pro) 'Mode6':'Debug'
2017-11-14 21:38:15.768 (rm pro) 'Mode4':'yes'
2017-11-14 21:38:15.768 (rm pro) 'Mode5':'9000'
2017-11-14 21:38:15.768 (rm pro) 'Mode2':'/usr/local/domoticz/var/plugins/BroadlinkRM2'
2017-11-14 21:38:15.768 (rm pro) 'Mode3':'yes'
2017-11-14 21:38:15.768 (rm pro) 'Port':'0'
2017-11-14 21:38:15.768 (rm pro) 'Key':'BroadlinkRM2'
2017-11-14 21:38:15.768 (rm pro) 'Name':'rm pro'
2017-11-14 21:38:15.768 (rm pro) 'HardwareID':'7'
2017-11-14 21:38:15.768 (rm pro) 'HomeFolder':'/usr/local/domoticz/var/plugins/BroadlinkRM2/'
2017-11-14 21:38:15.768 (rm pro) 'Version':'3.0.0'
2017-11-14 21:38:15.768 (rm pro) Device count: 4
2017-11-14 21:38:15.768 (rm pro) Device: 1 - ID: 22, Name: 'rm pro - Command', nValue: 0, sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device ID: '22'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Command'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 2 - ID: 23, Name: 'rm pro - Temp', nValue: 0, sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device ID: '23'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Temp'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 254 - ID: 24, Name: 'rm pro - Remote', nValue: 0, sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device ID: '24'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Remote'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 255 - ID: 25, Name: 'rm pro - Import', nValue: 0, sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device ID: '25'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Import'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Connecting to: 192.168.1.47:34ea348f05b8
2017-11-14 21:38:15.769 Error: (rm pro) Error Connecting to Broadlink device....
2017-11-14 21:38:15.769 (rm pro) Device Number begin to : 2
2017-11-14 21:38:15.769 (rm pro) No ini file :/usr/local/domoticz/var/plugins/BroadlinkRM2/remote/plugin_remote_7.ini
2017-11-14 21:38:15.769 (rm pro) Custom Commands for Remote not managed
2017-11-14 21:38:15.769 (rm pro) Heartbeat interval set to: 30.
2017-11-14 21:38:25.283 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:38:25.284 Error: (rm pro) Error Connecting to Broadlink device....
2017-11-14 21:38:54.373 (天气) Temp + Humidity + Baro (室外温湿度 气压)
2017-11-14 21:38:54.390 (天气) Wind (室外风力)
2017-11-14 21:38:54.407 (天气) UV (室外UV)
2017-11-14 21:38:54.424 (天气) Rain (室外降雨)
2017-11-14 21:38:54.441 (天气) General/Solar Radiation (室外空气质量)
2017-11-14 21:38:55.278 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:39:00.146 Error: EventSystem: in bedroom: [string "commandArray = {} ..."]:3: attempt to index global 'devicechanged' (a nil value)
2017-11-14 21:39:25.321 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:39:55.315 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:40:00.168 Error: EventSystem: in bedroom: [string "commandArray = {} ..."]:3: attempt to index global 'devicechanged' (a nil value)
2017-11-14 21:40:25.309 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:40:25.310 Error: (rm pro) Error Connecting to Broadlink device....
你ssh执行python3进python控制台,然后执行下面代码,把返回结果截图上来

代码: 全选

import broadlink
device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
device.auth()
device.host
附件
屏幕快照 2017-12-14 下午9.50.52.png
屏幕快照 2017-12-14 下午9.50.52.png (75.33 KiB) 查看 529019 次
头像
DT27
帖子: 345
注册时间: 周四 3月 30, 2017 08:54
Gender:

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 DT27 »

dxh000130 写了: 周四 12月 14, 2017 21:53 抱歉楼主 前一段时间没搞这个 现在还是这个问题 执行python返回结果是
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import broadlink
>>> device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
>>> device.auth()
True
>>> device.host
('192.168.1.47', 80)
>>>
DT27 写了: 周四 11月 16, 2017 10:56
dxh000130 写了: 周二 11月 14, 2017 21:43 您好 我出现了无法连接的错误
017-11-14 21:38:15.768 (rm pro) Debug log level set to: 'true'.
2017-11-14 21:38:15.768 (rm pro) 'Address':'192.168.1.47'
2017-11-14 21:38:15.768 (rm pro) 'Mode1':'34ea348f05b8'
2017-11-14 21:38:15.768 (rm pro) 'Author':'zak45'
2017-11-14 21:38:15.768 (rm pro) 'Mode6':'Debug'
2017-11-14 21:38:15.768 (rm pro) 'Mode4':'yes'
2017-11-14 21:38:15.768 (rm pro) 'Mode5':'9000'
2017-11-14 21:38:15.768 (rm pro) 'Mode2':'/usr/local/domoticz/var/plugins/BroadlinkRM2'
2017-11-14 21:38:15.768 (rm pro) 'Mode3':'yes'
2017-11-14 21:38:15.768 (rm pro) 'Port':'0'
2017-11-14 21:38:15.768 (rm pro) 'Key':'BroadlinkRM2'
2017-11-14 21:38:15.768 (rm pro) 'Name':'rm pro'
2017-11-14 21:38:15.768 (rm pro) 'HardwareID':'7'
2017-11-14 21:38:15.768 (rm pro) 'HomeFolder':'/usr/local/domoticz/var/plugins/BroadlinkRM2/'
2017-11-14 21:38:15.768 (rm pro) 'Version':'3.0.0'
2017-11-14 21:38:15.768 (rm pro) Device count: 4
2017-11-14 21:38:15.768 (rm pro) Device: 1 - ID: 22, Name: 'rm pro - Command', nValue: 0, sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device ID: '22'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Command'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 2 - ID: 23, Name: 'rm pro - Temp', nValue: 0, sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device ID: '23'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Temp'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 254 - ID: 24, Name: 'rm pro - Remote', nValue: 0, sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device ID: '24'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Remote'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 255 - ID: 25, Name: 'rm pro - Import', nValue: 0, sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device ID: '25'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Import'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Connecting to: 192.168.1.47:34ea348f05b8
2017-11-14 21:38:15.769 Error: (rm pro) Error Connecting to Broadlink device....
2017-11-14 21:38:15.769 (rm pro) Device Number begin to : 2
2017-11-14 21:38:15.769 (rm pro) No ini file :/usr/local/domoticz/var/plugins/BroadlinkRM2/remote/plugin_remote_7.ini
2017-11-14 21:38:15.769 (rm pro) Custom Commands for Remote not managed
2017-11-14 21:38:15.769 (rm pro) Heartbeat interval set to: 30.
2017-11-14 21:38:25.283 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:38:25.284 Error: (rm pro) Error Connecting to Broadlink device....
2017-11-14 21:38:54.373 (天气) Temp + Humidity + Baro (室外温湿度 气压)
2017-11-14 21:38:54.390 (天气) Wind (室外风力)
2017-11-14 21:38:54.407 (天气) UV (室外UV)
2017-11-14 21:38:54.424 (天气) Rain (室外降雨)
2017-11-14 21:38:54.441 (天气) General/Solar Radiation (室外空气质量)
2017-11-14 21:38:55.278 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:39:00.146 Error: EventSystem: in bedroom: [string "commandArray = {} ..."]:3: attempt to index global 'devicechanged' (a nil value)
2017-11-14 21:39:25.321 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:39:55.315 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:40:00.168 Error: EventSystem: in bedroom: [string "commandArray = {} ..."]:3: attempt to index global 'devicechanged' (a nil value)
2017-11-14 21:40:25.309 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:40:25.310 Error: (rm pro) Error Connecting to Broadlink device....
你ssh执行python3进python控制台,然后执行下面代码,把返回结果截图上来

代码: 全选

import broadlink
device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
device.auth()
device.host
手动连接成功了,你是不是这个路径不对“/usr/local/domoticz/var/plugins/BroadlinkRM2”
dxh000130
帖子: 5
注册时间: 周二 11月 14, 2017 21:41

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 dxh000130 »

路径没有问题啊 路径下生成了import和remote两个文件夹
DT27 写了: 周五 12月 15, 2017 09:07
dxh000130 写了: 周四 12月 14, 2017 21:53 抱歉楼主 前一段时间没搞这个 现在还是这个问题 执行python返回结果是
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import broadlink
>>> device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
>>> device.auth()
True
>>> device.host
('192.168.1.47', 80)
>>>
DT27 写了: 周四 11月 16, 2017 10:56

你ssh执行python3进python控制台,然后执行下面代码,把返回结果截图上来

代码: 全选

import broadlink
device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
device.auth()
device.host
手动连接成功了,你是不是这个路径不对“/usr/local/domoticz/var/plugins/BroadlinkRM2”
头像
DT27
帖子: 345
注册时间: 周四 3月 30, 2017 08:54
Gender:

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 DT27 »

dxh000130 写了: 周五 12月 15, 2017 16:14 路径没有问题啊 路径下生成了import和remote两个文件夹
DT27 写了: 周五 12月 15, 2017 09:07
dxh000130 写了: 周四 12月 14, 2017 21:53 抱歉楼主 前一段时间没搞这个 现在还是这个问题 执行python返回结果是
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import broadlink
>>> device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
>>> device.auth()
True
>>> device.host
('192.168.1.47', 80)
>>>
手动连接成功了,你是不是这个路径不对“/usr/local/domoticz/var/plugins/BroadlinkRM2”
日志里有错误提示:2017-11-14 21:38:15.769 (rm pro) No ini file :/usr/local/domoticz/var/plugins/BroadlinkRM2/remote/plugin_remote_7.ini
dxh000130
帖子: 5
注册时间: 周二 11月 14, 2017 21:41

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 dxh000130 »

您好 我用树莓派重新安装了一遍 仍然错误
2017-12-16 18:04:44.624 (rm) Debug log level set to: 'true'.
2017-12-16 18:04:44.625 (rm) 'Key':'BroadlinkRM2'
2017-12-16 18:04:44.625 (rm) 'Mode2':'/home/pi/domoticz/plugins/BroadlinkRM2'
2017-12-16 18:04:44.625 (rm) 'Mode4':'yes'
2017-12-16 18:04:44.625 (rm) 'Port':'0'
2017-12-16 18:04:44.625 (rm) 'Mode5':'9000'
2017-12-16 18:04:44.625 (rm) 'Address':'192.168.1.47'
2017-12-16 18:04:44.625 (rm) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2017-12-16 18:04:44.625 (rm) 'HardwareID':'3'
2017-12-16 18:04:44.625 (rm) 'Mode1':'34ea348f05b8'
2017-12-16 18:04:44.625 (rm) 'Name':'rm'
2017-12-16 18:04:44.625 (rm) 'Mode3':'yes'
2017-12-16 18:04:44.625 (rm) 'Author':'zak45'
2017-12-16 18:04:44.625 (rm) 'Mode6':'Debug'
2017-12-16 18:04:44.625 (rm) 'Version':'3.0.0'
2017-12-16 18:04:44.625 (rm) Device count: 4
2017-12-16 18:04:44.625 (rm) Device: 1 - ID: 5, Name: 'rm - Command', nValue: 0, sValue: 'Off'
2017-12-16 18:04:44.625 (rm) Device ID: '5'
2017-12-16 18:04:44.625 (rm) Device Name: 'rm - Command'
2017-12-16 18:04:44.625 (rm) Device nValue: 0
2017-12-16 18:04:44.625 (rm) Device sValue: 'Off'
2017-12-16 18:04:44.625 (rm) Device LastLevel: 0
2017-12-16 18:04:44.625 (rm) Device: 2 - ID: 6, Name: 'rm - Temp', nValue: 0, sValue: ''
2017-12-16 18:04:44.625 (rm) Device ID: '6'
2017-12-16 18:04:44.625 (rm) Device Name: 'rm - Temp'
2017-12-16 18:04:44.625 (rm) Device nValue: 0
2017-12-16 18:04:44.625 (rm) Device sValue: ''
2017-12-16 18:04:44.625 (rm) Device LastLevel: 0
2017-12-16 18:04:44.625 (rm) Device: 254 - ID: 7, Name: 'rm - Remote', nValue: 0, sValue: ''
2017-12-16 18:04:44.625 (rm) Device ID: '7'
2017-12-16 18:04:44.626 (rm) Device Name: 'rm - Remote'
2017-12-16 18:04:44.626 (rm) Device nValue: 0
2017-12-16 18:04:44.626 (rm) Device sValue: ''
2017-12-16 18:04:44.626 (rm) Device LastLevel: 0
2017-12-16 18:04:44.626 (rm) Device: 255 - ID: 8, Name: 'rm - Import', nValue: 0, sValue: 'Off'
2017-12-16 18:04:44.626 (rm) Device ID: '8'
2017-12-16 18:04:44.626 (rm) Device Name: 'rm - Import'
2017-12-16 18:04:44.626 (rm) Device nValue: 0
2017-12-16 18:04:44.626 (rm) Device sValue: 'Off'
2017-12-16 18:04:44.626 (rm) Device LastLevel: 0
2017-12-16 18:04:44.626 (rm) Connecting to: 192.168.1.47:34ea348f05b8
2017-12-16 18:04:44.626 Error: (rm) Error Connecting to Broadlink device....
2017-12-16 18:04:44.657 (rm) Device Number begin to : 2
2017-12-16 18:04:44.693 (rm) No ini file :/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_3.ini
2017-12-16 18:04:44.693 (rm) Custom Commands for Remote not managed
2017-12-16 18:04:44.693 (rm) Heartbeat interval set to: 30.
2017-12-16 18:04:53.968 (rm) Calling message handler 'onHeartbeat'.
2017-12-16 18:04:53.977 Error: (rm) Error Connecting to Broadlink device....

路径下面确实有这两个文件夹图片 但是我用pi账户打开这个文件夹时提示无权限访问
DT27 写了: 周六 12月 16, 2017 15:25
dxh000130 写了: 周五 12月 15, 2017 16:14 路径没有问题啊 路径下生成了import和remote两个文件夹
DT27 写了: 周五 12月 15, 2017 09:07

手动连接成功了,你是不是这个路径不对“/usr/local/domoticz/var/plugins/BroadlinkRM2”
日志里有错误提示:2017-11-14 21:38:15.769 (rm pro) No ini file :/usr/local/domoticz/var/plugins/BroadlinkRM2/remote/plugin_remote_7.ini
附件
屏幕快照 2017-12-16 下午6.09.31.png
屏幕快照 2017-12-16 下午6.09.31.png (111.23 KiB) 查看 528988 次
Yoooooki
帖子: 2
注册时间: 周二 12月 19, 2017 18:03

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 Yoooooki »

我的好像没有/plugins 这个文件夹
头像
DT27
帖子: 345
注册时间: 周四 3月 30, 2017 08:54
Gender:

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 DT27 »

Yoooooki 写了: 周三 12月 20, 2017 18:51 我的好像没有/plugins 这个文件夹
看下是不是最新版,现在稳定版跟测试版都自带这个文件夹的,另外,你是什么系统,好像有的系统不带,linux肯定带的。只要是新版,不带自己建一个就行了。
小唐豆豆
帖子: 7
注册时间: 周二 1月 02, 2018 17:30

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 小唐豆豆 »

showphi 写了: 周二 8月 22, 2017 20:38
覆雨翻云 写了: 周二 8月 22, 2017 08:29
showphi 写了: 周一 8月 21, 2017 22:27

你是用docker?docker下我找了很久也没找到路径,套件安装的domoticz倒是能找到路径
之前安装的是套件版的,但是RM2插件总是装不进。之后装了docker版的,RM2能连了,但创建开关后,生成的ini配置文件找不到啊!

唉,小白学习进度止步不前了!
在docker里的domoticz容器点右键选择编辑,第二个标签:卷,设置配置文件的路径(安装教程里的安装命令已经带了),一般是/docker/domoticz/config/(也就是你自己安装插件时,在群晖docker文件夹下创建的文件夹),ini配置文件就在这个目录下,这个目录是自己创建,自己设置配置文件的映射路径,不是固定的,所以每个人可能不一样!当初我也卡在这里很久,这里好像不好插图,你去QQ群里问,我看到截图给你
装载路径到底该怎么设置啊?
zjhzsz
帖子: 5
注册时间: 周一 1月 29, 2018 20:22

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 zjhzsz »

在硬件中选择“Broadlink RM2 with Kodi Remote”
都设置了。还是看不到啊?
hjukao238076
帖子: 5
注册时间: 周二 1月 02, 2018 10:38

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 hjukao238076 »

现在已经添加设备进去了,但是显示没有ini,import和remote和文件夹也没有创建,domoticz能学习但不能保存代码,这是什么原因?
附件
屏幕截图(20).png
屏幕截图(20).png (79.04 KiB) 查看 528691 次
头像
Admin
网站管理员
帖子: 122
注册时间: 周六 2月 25, 2017 12:47
Gender:

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 Admin »

hjukao238076 写了: 周二 1月 30, 2018 21:11 现在已经添加设备进去了,但是显示没有ini,import和remote和文件夹也没有创建,domoticz能学习但不能保存代码,这是什么原因?
你rmpro硬件设置里路径填的什么,路径权限改成777
hjukao238076
帖子: 5
注册时间: 周二 1月 02, 2018 10:38

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 hjukao238076 »

Admin 写了: 周三 1月 31, 2018 08:37
hjukao238076 写了: 周二 1月 30, 2018 21:11 现在已经添加设备进去了,但是显示没有ini,import和remote和文件夹也没有创建,domoticz能学习但不能保存代码,这是什么原因?
你rmpro硬件设置里路径填的什么,路径权限改成777
现在是这样的
附件
屏幕截图(2).png
屏幕截图(2).png (63.23 KiB) 查看 528679 次
头像
Admin
网站管理员
帖子: 122
注册时间: 周六 2月 25, 2017 12:47
Gender:

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 Admin »

hjukao238076 写了: 周三 1月 31, 2018 14:05
Admin 写了: 周三 1月 31, 2018 08:37
hjukao238076 写了: 周二 1月 30, 2018 21:11 现在已经添加设备进去了,但是显示没有ini,import和remote和文件夹也没有创建,domoticz能学习但不能保存代码,这是什么原因?
你rmpro硬件设置里路径填的什么,路径权限改成777
现在是这样的
你点的按钮是import按钮,点错了吧。import是用来导入编码的。learn学习,学习后点save自动把编码保存成ini。
zjhzsz
帖子: 5
注册时间: 周一 1月 29, 2018 20:22

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 zjhzsz »

dxh000130 写了: 周四 12月 14, 2017 21:53 抱歉楼主 前一段时间没搞这个 现在还是这个问题 执行python返回结果是
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import broadlink
>>> device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
>>> device.auth()
True
>>> device.host
('192.168.1.47', 80)
>>>
DT27 写了: 周四 11月 16, 2017 10:56
dxh000130 写了: 周二 11月 14, 2017 21:43 您好 我出现了无法连接的错误
017-11-14 21:38:15.768 (rm pro) Debug log level set to: 'true'.
2017-11-14 21:38:15.768 (rm pro) 'Address':'192.168.1.47'
2017-11-14 21:38:15.768 (rm pro) 'Mode1':'34ea348f05b8'
2017-11-14 21:38:15.768 (rm pro) 'Author':'zak45'
2017-11-14 21:38:15.768 (rm pro) 'Mode6':'Debug'
2017-11-14 21:38:15.768 (rm pro) 'Mode4':'yes'
2017-11-14 21:38:15.768 (rm pro) 'Mode5':'9000'
2017-11-14 21:38:15.768 (rm pro) 'Mode2':'/usr/local/domoticz/var/plugins/BroadlinkRM2'
2017-11-14 21:38:15.768 (rm pro) 'Mode3':'yes'
2017-11-14 21:38:15.768 (rm pro) 'Port':'0'
2017-11-14 21:38:15.768 (rm pro) 'Key':'BroadlinkRM2'
2017-11-14 21:38:15.768 (rm pro) 'Name':'rm pro'
2017-11-14 21:38:15.768 (rm pro) 'HardwareID':'7'
2017-11-14 21:38:15.768 (rm pro) 'HomeFolder':'/usr/local/domoticz/var/plugins/BroadlinkRM2/'
2017-11-14 21:38:15.768 (rm pro) 'Version':'3.0.0'
2017-11-14 21:38:15.768 (rm pro) Device count: 4
2017-11-14 21:38:15.768 (rm pro) Device: 1 - ID: 22, Name: 'rm pro - Command', nValue: 0, sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device ID: '22'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Command'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 2 - ID: 23, Name: 'rm pro - Temp', nValue: 0, sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device ID: '23'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Temp'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 254 - ID: 24, Name: 'rm pro - Remote', nValue: 0, sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device ID: '24'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Remote'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: ''
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Device: 255 - ID: 25, Name: 'rm pro - Import', nValue: 0, sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device ID: '25'
2017-11-14 21:38:15.768 (rm pro) Device Name: 'rm pro - Import'
2017-11-14 21:38:15.768 (rm pro) Device nValue: 0
2017-11-14 21:38:15.768 (rm pro) Device sValue: 'Off'
2017-11-14 21:38:15.768 (rm pro) Device LastLevel: 0
2017-11-14 21:38:15.768 (rm pro) Connecting to: 192.168.1.47:34ea348f05b8
2017-11-14 21:38:15.769 Error: (rm pro) Error Connecting to Broadlink device....
2017-11-14 21:38:15.769 (rm pro) Device Number begin to : 2
2017-11-14 21:38:15.769 (rm pro) No ini file :/usr/local/domoticz/var/plugins/BroadlinkRM2/remote/plugin_remote_7.ini
2017-11-14 21:38:15.769 (rm pro) Custom Commands for Remote not managed
2017-11-14 21:38:15.769 (rm pro) Heartbeat interval set to: 30.
2017-11-14 21:38:25.283 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:38:25.284 Error: (rm pro) Error Connecting to Broadlink device....
2017-11-14 21:38:54.373 (天气) Temp + Humidity + Baro (室外温湿度 气压)
2017-11-14 21:38:54.390 (天气) Wind (室外风力)
2017-11-14 21:38:54.407 (天气) UV (室外UV)
2017-11-14 21:38:54.424 (天气) Rain (室外降雨)
2017-11-14 21:38:54.441 (天气) General/Solar Radiation (室外空气质量)
2017-11-14 21:38:55.278 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:39:00.146 Error: EventSystem: in bedroom: [string "commandArray = {} ..."]:3: attempt to index global 'devicechanged' (a nil value)
2017-11-14 21:39:25.321 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:39:55.315 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:40:00.168 Error: EventSystem: in bedroom: [string "commandArray = {} ..."]:3: attempt to index global 'devicechanged' (a nil value)
2017-11-14 21:40:25.309 (rm pro) Calling message handler 'onHeartbeat'.
2017-11-14 21:40:25.310 Error: (rm pro) Error Connecting to Broadlink device....
你ssh执行python3进python控制台,然后执行下面代码,把返回结果截图上来

代码: 全选

import broadlink
device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
device.auth()
device.host
我也是这样,应该手动链接上了,但我在硬件的下拉菜单还是找不到broadlink
hjukao238076
帖子: 5
注册时间: 周二 1月 02, 2018 10:38

Re: [插件]RM2 RMPro 插件 BroadlinkRM2 v3(增强版)

帖子 hjukao238076 »

Admin 写了: 周三 1月 31, 2018 14:47
hjukao238076 写了: 周三 1月 31, 2018 14:05
Admin 写了: 周三 1月 31, 2018 08:37

你rmpro硬件设置里路径填的什么,路径权限改成777
现在是这样的
你点的按钮是import按钮,点错了吧。import是用来导入编码的。learn学习,学习后点save自动把编码保存成ini。
解决了,原来是权限问题,改了777后可以用import功能了,之前是不能写入导致学习和import都不能生成ini,学习
回复