Re: Python Plugin : Broadlink RM2 V4
Posted: Saturday 14 April 2018 17:21
Open source Home Automation System
https://forum.domoticz.com/
you need Domoticz 90xx and Broadlink 4.1.0
you need Domoticz v 90xx or greaterRueDesButtes wrote: ↑Monday 02 April 2018 19:19 Hello,
I am a "Domoticz" Newbi,
I am struggling with Broadlink for 1 week,
I am able to enter the details of the RM, but nothing happened: no error, no switch, no device...
Can you help me ?
Hardware:
- Raspberry PI 2 B
- Broadlink RMP PRO+ (V3?)
I have installed:
- Raspbian Jessy Lite Stretch
- Domoticz V3.8153
- Python 3.5
Code: Select all
2018-04-15 01:44:00.994 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 01:44:00.994 (Rmpro) All plugin system is on pause for 5s...
2018-04-15 01:44:00.994 (Rmpro) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 01:44:02.326 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:02.327 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:03.986 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:03.987 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:06.959 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:06.959 (Rmpro) 000000000000000000000000
2018-04-15 01:44:06.959 (Rmpro) Code stored in memory
2018-04-15 01:44:07.009 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:07.009 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:07.009 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 01:44:07.009 (Rmpro) All plugin system is on pause for 5s...
2018-04-15 01:44:07.010 (Rmpro) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 01:44:10.415 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:10.416 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:12.572 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:12.572 (Rmpro) 000000000000000000000000
2018-04-15 01:44:12.572 (Rmpro) Code stored in memory
2018-04-15 01:44:12.572 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:12.572 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:12.573 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 01:44:12.573 (Rmpro) All plugin system is on pause for 5s...
2018-04-15 01:44:12.573 (Rmpro) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 01:44:13.250 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 01:44:17.794 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:17.794 (Rmpro) 000000000000000000000000
2018-04-15 01:44:17.794 (Rmpro) Code stored in memory
2018-04-15 01:44:17.845 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:17.845 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:17.845 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 01:44:17.845 (Rmpro) All plugin system is on pause for 5s...
2018-04-15 01:44:17.845 (Rmpro) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 01:44:18.765 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:18.766 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:21.970 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:21.971 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:23.249 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:23.249 (Rmpro) 000000000000000000000000
2018-04-15 01:44:23.249 (Rmpro) Code stored in memory
2018-04-15 01:44:23.249 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-15 01:44:23.249 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-15 01:44:23.300 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:23.300 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:23.300 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 01:44:23.300 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:23.489 (Rmpro) Code Sent....
2018-04-15 01:44:23.489 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:23.489 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:23.489 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 01:44:23.490 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:23.524 (Rmpro) Code Sent....
2018-04-15 01:44:30.941 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:30.941 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:30.990 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:30.990 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:30.990 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 40 , Connected : True
2018-04-15 01:44:30.990 (Rmpro - Command) Updating device from 1:'20' to have values 0:'Off'.
2018-04-15 01:44:30.998 (Rmpro) Update 0:'Off' (Rmpro - Command)
2018-04-15 01:44:30.999 (Rmpro) Reset learned command
2018-04-15 01:44:33.745 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:33.746 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:33.754 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:33.754 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:33.754 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 01:44:33.754 (Rmpro) All plugin system is on pause for 5s...
2018-04-15 01:44:33.754 (Rmpro) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 01:44:38.583 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:38.584 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:38.762 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:38.763 (Rmpro) 000000000000000000000000
2018-04-15 01:44:38.763 (Rmpro) Code stored in memory
2018-04-15 01:44:38.763 (Rmpro - Command) Updating device from 0:'Off' to have values 1:'20'.
2018-04-15 01:44:38.772 (Rmpro) Update 1:'20' (Rmpro - Command)
2018-04-15 01:44:38.822 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:38.822 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:38.822 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 01:44:38.822 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:39.376 (Rmpro) Code Sent....
2018-04-15 01:44:41.449 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:41.449 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:41.480 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:41.480 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:41.480 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 01:44:41.480 (Rmpro) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 01:44:41.482 (Rmpro) Code Sent....
2018-04-15 01:44:43.255 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 01:44:43.286 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-15 01:44:43.286 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-15 01:44:47.189 User: Admin initiated a switch command (6/Rmpro - Command/Set Level)
2018-04-15 01:44:47.189 (Rmpro) Pushing 'onCommandCallback' on to queue
2018-04-15 01:44:47.194 (Rmpro) Processing 'onCommandCallback' message
2018-04-15 01:44:47.194 (Rmpro) Calling message handler 'onCommand'.
2018-04-15 01:44:47.195 (Rmpro) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2018-04-15 01:44:47.200 (Rmpro) ini file creation..../home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-10.ini
2018-04-15 01:44:47.200 (Rmpro) Creating device '4-10 '.
2018-04-15 01:44:47.203 (Rmpro) Command line : "/home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py" /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-10.ini
2018-04-15 01:44:47.203 (Rmpro - Command) Updating device from 1:'20' to have values 1:'10'.
2018-04-15 01:44:47.211 (Rmpro) Update 1:'10' (Rmpro - Command)
2018-04-15 01:45:13.260 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 01:45:13.264 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-15 01:45:13.264 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-15 01:45:43.266 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 01:45:43.277 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-15 01:45:43.277 (Rmpro) Calling message handler 'onHeartbeat'.
Plugin is not able to manage more than one signal at same time.. do you have saved the first one and tried after to read another one ?
Code: Select all
2018-04-15 15:48:00.288 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:00.288 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:00.307 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:00.307 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:00.307 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 40 , Connected : True
2018-04-15 15:48:00.307 (RMpro2 - Command) Updating device from 1:'20' to have values 0:'Off'.
2018-04-15 15:48:00.312 (RMpro2) Update 0:'Off' (RMpro2 - Command)
2018-04-15 15:48:00.312 (RMpro2) Reset learned command
2018-04-15 15:48:02.787 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:02.788 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:02.818 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:02.818 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:02.818 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 15:48:02.818 (RMpro2) All plugin system is on pause for 5s...
2018-04-15 15:48:02.818 (RMpro2) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 15:48:07.825 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:07.825 (RMpro2) 000000000000000000000000
2018-04-15 15:48:07.825 (RMpro2) Code stored in memory
2018-04-15 15:48:07.825 (RMpro2 - Command) Updating device from 0:'Off' to have values 1:'20'.
2018-04-15 15:48:07.832 (RMpro2) Update 1:'20' (RMpro2 - Command)
2018-04-15 15:48:08.547 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:08.548 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:08.584 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:08.584 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:08.584 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 15:48:08.584 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:08.586 (RMpro2) Code Sent....
2018-04-15 15:48:13.095 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:13.096 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:13.145 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:13.146 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:13.146 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 15:48:13.146 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:13.147 (RMpro2) Code Sent....
2018-04-15 15:48:21.333 (RMpro2) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 15:48:21.365 (RMpro2) Processing 'onHeartbeatCallback' message
2018-04-15 15:48:21.365 (RMpro2) Calling message handler 'onHeartbeat'.
2018-04-15 15:48:32.380 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:32.380 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:32.405 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:32.405 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:32.405 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2018-04-15 15:48:32.408 (RMpro2) ini file creation..../home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-5.ini
2018-04-15 15:48:32.408 (RMpro2) Creating device '4-5 '.
2018-04-15 15:48:32.996 (RMpro2) Command line : "/home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py" /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-5.ini
2018-04-15 15:48:32.996 (RMpro2 - Command) Updating device from 1:'20' to have values 1:'10'.
2018-04-15 15:48:33.005 (RMpro2) Update 1:'10' (RMpro2 - Command)
2018-04-15 15:48:41.547 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:41.547 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:41.573 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:41.573 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:41.573 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 40 , Connected : True
2018-04-15 15:48:41.573 (RMpro2) Nothing to reset
2018-04-15 15:48:44.880 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:44.880 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:44.880 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:44.881 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:44.881 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 15:48:44.881 (RMpro2) All plugin system is on pause for 5s...
2018-04-15 15:48:44.881 (RMpro2) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 15:48:49.887 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:49.887 (RMpro2) 000000000000000000000000
2018-04-15 15:48:49.888 (RMpro2) Code stored in memory
2018-04-15 15:48:49.888 (RMpro2 - Command) Updating device from 1:'10' to have values 1:'20'.
2018-04-15 15:48:49.892 (RMpro2) Update 1:'20' (RMpro2 - Command)
2018-04-15 15:48:49.931 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:49.931 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:49.942 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:49.943 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:49.943 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 15:48:49.943 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:50.497 (RMpro2) Code Sent....
2018-04-15 15:48:51.339 (RMpro2) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 15:48:51.349 (RMpro2) Processing 'onHeartbeatCallback' message
2018-04-15 15:48:51.349 (RMpro2) Calling message handler 'onHeartbeat'.
2018-04-15 15:48:53.652 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:53.652 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:53.654 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:53.654 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:53.654 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2018-04-15 15:48:53.657 (RMpro2) ini file creation..../home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-6.ini
2018-04-15 15:48:53.657 (RMpro2) Creating device '4-6 '.
2018-04-15 15:48:53.659 (RMpro2) Command line : "/home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py" /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-6.ini
2018-04-15 15:48:53.659 (RMpro2 - Command) Updating device from 1:'20' to have values 1:'10'.
2018-04-15 15:48:53.663 (RMpro2) Update 1:'10' (RMpro2 - Command)
2018-04-15 15:49:21.345 (RMpro2) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 15:49:21.375 (RMpro2) Processing 'onHeartbeatCallback' message
2018-04-15 15:49:21.375 (RMpro2) Calling message handler 'onHeartbeat'.
Yes I save the first and after I try to learn another signal but the result is alway 00000.
Code: Select all
2018-04-15 15:48:00.288 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:00.288 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:00.307 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:00.307 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:00.307 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 40 , Connected : True
2018-04-15 15:48:00.307 (RMpro2 - Command) Updating device from 1:'20' to have values 0:'Off'.
2018-04-15 15:48:00.312 (RMpro2) Update 0:'Off' (RMpro2 - Command)
2018-04-15 15:48:00.312 (RMpro2) Reset learned command
2018-04-15 15:48:02.787 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:02.788 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:02.818 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:02.818 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:02.818 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 15:48:02.818 (RMpro2) All plugin system is on pause for 5s...
2018-04-15 15:48:02.818 (RMpro2) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 15:48:07.825 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:07.825 (RMpro2) 000000000000000000000000
2018-04-15 15:48:07.825 (RMpro2) Code stored in memory
2018-04-15 15:48:07.825 (RMpro2 - Command) Updating device from 0:'Off' to have values 1:'20'.
2018-04-15 15:48:07.832 (RMpro2) Update 1:'20' (RMpro2 - Command)
2018-04-15 15:48:08.547 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:08.548 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:08.584 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:08.584 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:08.584 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 15:48:08.584 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:08.586 (RMpro2) Code Sent....
2018-04-15 15:48:13.095 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:13.096 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:13.145 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:13.146 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:13.146 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 15:48:13.146 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:13.147 (RMpro2) Code Sent....
2018-04-15 15:48:21.333 (RMpro2) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 15:48:21.365 (RMpro2) Processing 'onHeartbeatCallback' message
2018-04-15 15:48:21.365 (RMpro2) Calling message handler 'onHeartbeat'.
2018-04-15 15:48:32.380 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:32.380 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:32.405 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:32.405 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:32.405 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2018-04-15 15:48:32.408 (RMpro2) ini file creation..../home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-5.ini
2018-04-15 15:48:32.408 (RMpro2) Creating device '4-5 '.
2018-04-15 15:48:32.996 (RMpro2) Command line : "/home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py" /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-5.ini
2018-04-15 15:48:32.996 (RMpro2 - Command) Updating device from 1:'20' to have values 1:'10'.
2018-04-15 15:48:33.005 (RMpro2) Update 1:'10' (RMpro2 - Command)
2018-04-15 15:48:41.547 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:41.547 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:41.573 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:41.573 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:41.573 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 40 , Connected : True
2018-04-15 15:48:41.573 (RMpro2) Nothing to reset
2018-04-15 15:48:44.880 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:44.880 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:44.880 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:44.881 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:44.881 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2018-04-15 15:48:44.881 (RMpro2) All plugin system is on pause for 5s...
2018-04-15 15:48:44.881 (RMpro2) When Broadlink led is lit press the button on your remote within 5 seconds
2018-04-15 15:48:49.887 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:49.887 (RMpro2) 000000000000000000000000
2018-04-15 15:48:49.888 (RMpro2) Code stored in memory
2018-04-15 15:48:49.888 (RMpro2 - Command) Updating device from 1:'10' to have values 1:'20'.
2018-04-15 15:48:49.892 (RMpro2) Update 1:'20' (RMpro2 - Command)
2018-04-15 15:48:49.931 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:49.931 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:49.942 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:49.943 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:49.943 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2018-04-15 15:48:49.943 (RMpro2) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2018-04-15 15:48:50.497 (RMpro2) Code Sent....
2018-04-15 15:48:51.339 (RMpro2) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 15:48:51.349 (RMpro2) Processing 'onHeartbeatCallback' message
2018-04-15 15:48:51.349 (RMpro2) Calling message handler 'onHeartbeat'.
2018-04-15 15:48:53.652 User: Admin initiated a switch command (6/RMpro2 - Command/Set Level)
2018-04-15 15:48:53.652 (RMpro2) Pushing 'onCommandCallback' on to queue
2018-04-15 15:48:53.654 (RMpro2) Processing 'onCommandCallback' message
2018-04-15 15:48:53.654 (RMpro2) Calling message handler 'onCommand'.
2018-04-15 15:48:53.654 (RMpro2) onCommand called for Unit 1: Parameter 'Set Level', Level: 30 , Connected : True
2018-04-15 15:48:53.657 (RMpro2) ini file creation..../home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-6.ini
2018-04-15 15:48:53.657 (RMpro2) Creating device '4-6 '.
2018-04-15 15:48:53.659 (RMpro2) Command line : "/home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py" /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-4-6.ini
2018-04-15 15:48:53.659 (RMpro2 - Command) Updating device from 1:'20' to have values 1:'10'.
2018-04-15 15:48:53.663 (RMpro2) Update 1:'10' (RMpro2 - Command)
2018-04-15 15:49:21.345 (RMpro2) Pushing 'onHeartbeatCallback' on to queue
2018-04-15 15:49:21.375 (RMpro2) Processing 'onHeartbeatCallback' message
2018-04-15 15:49:21.375 (RMpro2) Calling message handler 'onHeartbeat'.
Top
I have 4.0 version, how can I update to 4.1? thanks
show the output of this command :Lars65 wrote: ↑Sunday 15 April 2018 20:11 I get this when I try to run the plugin:
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'.
Running raspbian stretch.
Any suggestions what to do?
try this :Lars65 wrote: ↑Tuesday 17 April 2018 17:00 output is:
Name: broadlink
Version: 0.8
Summary: Python API for controlling Broadlink IR controllers
Home-page: http://github.com/mjg59/python-broadlink
Author: Matthew Garrett
Author-email: [email protected]
License: UNKNOWN
Location: /usr/local/lib/python3.5/dist-packages
Requires: pycryptodome, PyCRC
Required-by:
Code: Select all
(RMpro3) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:49.671 (RMpro3) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:49.671 (RMpro3) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:50.161 (RMpro4) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:50.172 (RMpro4) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:50.172 (RMpro4) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:50.263 (RMpro2) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:50.273 (RMpro2) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:50.273 (RMpro2) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:50.623 (RMpro6) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:50.624 (RMpro6) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:50.624 (RMpro6) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:50.661 (RMpro5) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:50.674 (RMpro5) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:50.674 (RMpro5) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:51.161 (RMprotestrf) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:51.175 (RMprotestrf) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:51.175 (RMprotestrf) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:51.191 (RMprotest) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:51.225 (RMprotest) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:51.226 (RMprotest) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:51.623 (RMchacon) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:51.626 (RMchacon) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:51.626 (RMchacon) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:51.690 (RMchacon2) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:51.727 (RMchacon2) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:51.727 (RMchacon2) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:51.995 (RMmachinelvaisselleON) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:52.028 (RMmachinelvaisselleON) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:52.028 (RMmachinelvaisselleON) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:52.128 (RMmachinelingeOFF) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:52.178 (RMmachinelingeOFF) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:52.178 (RMmachinelingeOFF) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:55.336 (RMTVvolmoins) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:55.385 (RMTVvolmoins) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:55.385 (RMTVvolmoins) Calling message handler 'onHeartbeat'.
2018-04-19 01:47:55.541 (Meteo ) Temp + Humidity + Baro (Temp Hum Bar)
2018-04-19 01:47:55.550 (Meteo ) Wind (Température ressentie)
2018-04-19 01:47:55.559 (Meteo ) UV (UV)
2018-04-19 01:47:55.568 (Meteo ) Rain (Pluie)
2018-04-19 01:47:55.577 (Meteo ) General/Solar Radiation (Radiation solaire)
2018-04-19 01:47:59.265 (RMTVvolplus) Pushing 'onHeartbeatCallback' on to queue
2018-04-19 01:47:59.291 (RMTVvolplus) Processing 'onHeartbeatCallback' message
2018-04-19 01:47:59.291 (RMTVvolplus) Calling message handler 'onHeartbeat'.
Nope.. One hardware by physical device...
Code: Select all
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Plugin did not stop after 5 seconds, flushing event queue...
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.946 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.946 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) requeuing 'onHeartbeatCallback' message for 'Xiaomi Mi Flower Mate'
2018-04-19 21:55:22.947 Error: (Broadlink RM3 mini) Callback event 'onStopCallback' (Python call 'onStop') discarded.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) Stopping threads.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) Stopped.
2018-04-19 21:55:22.947 (Broadlink RM3 mini) Started.
2018-04-19 21:56:30.277 Error: Broadlink RM3 mini hardware (13) thread seems to have ended unexpectedly