就是因为日志没报错了。我以为已经好了(汗颜)
日志里干干净净没报错,学习、保存那些都没有问题
domoticz里点按钮时,没有灯亮
看看帖子,看你的文件按没按帖子要求修改。AlwaysOnline 写了: ↑周二 9月 26, 2017 14:16 楼主,学习遥控的时候出现这个日志,求解答
2017-09-26 14:02:20.072 Error: (Broadlink) 'onCommand' failed 'NoOptionError'.
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 219 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 365 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommandOther
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 765 in /usr/lib/python3.4/configparser.py, function get
我没修改那个多段文件,我没这需要,这样会有影响吗?Admin 写了: ↑周二 9月 26, 2017 15:20看看帖子,看你的文件按没按帖子要求修改。AlwaysOnline 写了: ↑周二 9月 26, 2017 14:16 楼主,学习遥控的时候出现这个日志,求解答
2017-09-26 14:02:20.072 Error: (Broadlink) 'onCommand' failed 'NoOptionError'.
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 219 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 365 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommandOther
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 765 in /usr/lib/python3.4/configparser.py, function get
多段的地方不需要改,你用的是帖子压缩包里的插件文件吗?AlwaysOnline 写了: ↑周二 9月 26, 2017 18:07我没修改那个多段文件,我没这需要,这样会有影响吗?Admin 写了: ↑周二 9月 26, 2017 15:20看看帖子,看你的文件按没按帖子要求修改。AlwaysOnline 写了: ↑周二 9月 26, 2017 14:16 楼主,学习遥控的时候出现这个日志,求解答
2017-09-26 14:02:20.072 Error: (Broadlink) 'onCommand' failed 'NoOptionError'.
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 219 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 365 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function genCommandOther
2017-09-26 14:02:20.072 Error: (Broadlink) ----> Line 765 in /usr/lib/python3.4/configparser.py, function get
明明是发送命令出问题,你为什么说是学习遥控出问题= =、AlwaysOnline 写了: ↑周三 9月 27, 2017 14:50已经解决,原来不是多段开关的也要修改ini文件,终于弄明白了,感谢楼主
你ssh执行python3进python控制台,然后执行下面代码,把返回结果截图上来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....
代码: 全选
import broadlink
device = broadlink.rm(host=("192.168.1.47",80), mac=bytearray.fromhex("34ea348f05b8"))
device.auth()
device.host
Module Import failed: ' Name: broadlink'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.
楼主,请问这个错误是什么问题啊?
看日志感觉你点的不对啊,硬件设置,开debug,然后重来,看日志。先学习,学习的时候,按遥控日志里就应该出来编码了。lemon2201126 写了: ↑周三 11月 22, 2017 17:51 设备显示在线,我点了learn,设备红灯亮,然后遥控器按了,设备灯灭。按道理会保存代码
看了文件没有新增ini的文件,这个是为什么有保存住,感谢
2017-11-22 17:48:25.363 (RMPro) Update 1:'19.6' (RMPro - Temp)
2017-11-22 17:48:32.744 User: Admin initiated a switch command (24/RMPro - Command/Set Level)
2017-11-22 17:48:32.777 (RMPro) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2017-11-22 17:48:32.901 (RMPro) Update 0:'Off' (RMPro - Command)
2017-11-22 17:48:36.255 User: Admin initiated a switch command (24/RMPro - Command/Set Level)
2017-11-22 17:48:36.259 (RMPro) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2017-11-22 17:48:36.259 (RMPro) Nothing to save
2017-11-22 17:48:38.335 User: Admin initiated a switch command (24/RMPro - Command/Set Level)
2017-11-22 17:48:38.364 (RMPro) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2017-11-22 17:48:38.364 (RMPro) Nothing to save
2017-11-22 17:48:41.035 User: Admin initiated a switch command (24/RMPro - Command/Set Level)
2017-11-22 17:48:41.069 (RMPro) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2017-11-22 17:48:41.070 (RMPro) Nothing to save
2017-11-22 17:48:41.772 User: Admin initiated a switch command (24/RMPro - Command/Set Level)
2017-11-22 17:48:41.821 (RMPro) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2017-11-22 17:48:41.822 (RMPro) Nothing to save
2017-11-22 17:48:42.248 User: Admin initiated a switch command (24/RMPro - Command/Set Level)
2017-11-22 17:48:42.272 (RMPro) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2017-11-22 17:48:42.273 (RMPro) Nothing to save
2017-11-22 17:48:43.304 User: Admin initiated a switch command (24/RMPro - Command/Set Level)
2017-11-22 17:48:43.325 (RMPro) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2017-11-22 17:48:43.364 (RMPro) Connected to Broadlink device.
2017-11-22 17:48:43.364 (RMPro) All plugin system is on pause for 5s...
2017-11-22 17:48:43.364 (RMPro) When Broadlink led is lit press the button on your remote within 5 seconds
2017-11-22 17:48:48.660 (RMPro) Code stored in memory
2017-11-22 17:48:48.779 (RMPro) Update 1:'10' (RMPro - Command)
2017-11-22 17:48:50.221 User: Admin initiated a switch command (24/RMPro - Command/Set Level)
2017-11-22 17:48:50.232 (RMPro) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2017-11-22 17:48:50.357 (RMPro) Update 0:'Off' (RMPro - Command)
我用了那四条代码。。只有一个可以用,但是刷新过后打开:8080.提示我浏览器缓存刷新失败打不开了DT27 写了: ↑周三 11月 22, 2017 16:07Module Import failed: ' Name: broadlink'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.
楼主,请问这个错误是什么问题啊?
你从头再看一遍帖子。。。。。。