Python Plugin : Broadlink RM2 V4
Moderator: leecollings
-
- Posts: 84
- Joined: Friday 12 August 2016 13:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin : Broadlink RM2 V4
What a great plugin
it works great
thanks Zak45
Gerwin
it works great
thanks Zak45
Gerwin
-
- Posts: 16
- Joined: Saturday 23 June 2018 20:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10338
- Contact:
Re: Python Plugin : Broadlink RM2 V4
Hi all,
thanks again zak for this awesome plugin!
It works perfectly for me, just the remote doesn't work.
I didn't find any other post with my issue, I hope I searched well.
If I click on the switch remote it gives me an error, below the log:
Name: broadlink
Version: 0.9
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: PyCRC, pycryptodome
thanks again zak for this awesome plugin!
It works perfectly for me, just the remote doesn't work.
I didn't find any other post with my issue, I hope I searched well.
If I click on the switch remote it gives me an error, below the log:
- Spoiler: show
Name: broadlink
Version: 0.9
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: PyCRC, pycryptodome
-
- Posts: 953
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink RM2 V4
The MissingSectionHeaderError mean you have a bad format on your ini file.(the one for your remote)arcpaqua wrote: ↑Monday 15 April 2019 10:58 Hi all,
thanks again zak for this awesome plugin!
It works perfectly for me, just the remote doesn't work.
I didn't find any other post with my issue, I hope I searched well.
If I click on the switch remote it gives me an error, below the log:
2019-04-12 15:50:56.353 Error: (Broadlink RM2) 'onStart' failed 'MissingSectionHeaderError'.
2019-04-12 15:50:56.353 Error: (Broadlink RM2) ----> Line 218 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function onStart
2019-04-12 15:50:56.353 Error: (Broadlink RM2) ----> Line 978 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function genRemote
2019-04-12 15:50:56.353 Error: (Broadlink RM2) ----> Line 960 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function get_remoteconfig
2019-04-12 15:50:56.353 Error: (Broadlink RM2) ----> Line 698 in '/usr/lib/python3.5/configparser.py', function read
2019-04-12 15:50:56.353 Error: (Broadlink RM2) ----> Line 1077 in '/usr/lib/python3.5/configparser.py', function _read
pi@raspberrypi:~ $ sudo pip3 show broadlink
Name: broadlink
Version: 0.9
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: PyCRC, pycryptodome
this one need to be like that :
[Custom]
command = xx,yy,....
-
- Posts: 16
- Joined: Saturday 23 June 2018 20:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10338
- Contact:
Re: Python Plugin : Broadlink RM2 V4
Thank you Zak,
the ini file is correct (I followed the guide).
[Custom]
command = 27,5,2,8,4,9,10,6,16,13,,11,16,,15,14,,12,,,,,
I tried also with:
[Custom]
command = 27,5,2,8,4,9,10,6,16,13
and:
[Custom]
Command = 27,5,2,8,4,9,10,6,16,13
There is a strange thing, in the guide and in the python file (plugin.py) it's written that the ini file for remote should be in remote folder (for me /home/pi/domoticz/plugins/BroadlinkRM2/log/remote) and his name should be plugin_remote_<<hardwareid>>.ini (so for me /home/pi/domoticz/plugins/BroadlinkRM2/log/remote/plugin_remote_5.ini).
But in fact, if I create the file and put it in the correct folder as shown in the guide, Domoticz tell me:
2019-04-15 17:32:24.419 Error: (Broadlink RM2 Soggiorno) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/log/BroadlinkRM2-5-254.ini
So I renamed my file and placed it in the folder shown by the Domoticz log and it happens what I wrote in my previous post.
What I do wrong?
Thank you very much
[EDIT]
I create the ini file by copying one of the learned codes, so the format should be correct.
The character Coding is UTF-8
the ini file is correct (I followed the guide).
[Custom]
command = 27,5,2,8,4,9,10,6,16,13,,11,16,,15,14,,12,,,,,
I tried also with:
[Custom]
command = 27,5,2,8,4,9,10,6,16,13
and:
[Custom]
Command = 27,5,2,8,4,9,10,6,16,13
There is a strange thing, in the guide and in the python file (plugin.py) it's written that the ini file for remote should be in remote folder (for me /home/pi/domoticz/plugins/BroadlinkRM2/log/remote) and his name should be plugin_remote_<<hardwareid>>.ini (so for me /home/pi/domoticz/plugins/BroadlinkRM2/log/remote/plugin_remote_5.ini).
But in fact, if I create the file and put it in the correct folder as shown in the guide, Domoticz tell me:
2019-04-15 17:32:24.419 Error: (Broadlink RM2 Soggiorno) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/log/BroadlinkRM2-5-254.ini
So I renamed my file and placed it in the folder shown by the Domoticz log and it happens what I wrote in my previous post.
What I do wrong?
Thank you very much
[EDIT]
I create the ini file by copying one of the learned codes, so the format should be correct.
The character Coding is UTF-8
-
- Posts: 953
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink RM2 V4
@arcpaqua
this file need to be under remote folder.
Verify that you put correct right on it.. just to validate, you can start with chmod 777
this file need to be under remote folder.
Verify that you put correct right on it.. just to validate, you can start with chmod 777
-
- Posts: 16
- Joined: Saturday 23 June 2018 20:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10338
- Contact:
Re: Python Plugin : Broadlink RM2 V4
If I move the file in remote folder it doesn't work
2019-04-15 17:32:24.419 Error: (Broadlink RM2 Soggiorno) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/log/BroadlinkRM2-5-254.ini
2019-04-15 17:32:24.419 Error: (Broadlink RM2 Soggiorno) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/log/BroadlinkRM2-5-254.ini
-
- Posts: 953
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink RM2 V4
this need to be on the remote folder.
when you start the plugin, you should see something like that :
2019-04-15 22:17:59.650 (RM2 Salon) ini file read....C:/BroadlinkRM2/remote/plugin_remote_13.ini
2019-04-15 22:17:59.650 (RM2 Salon) Custom Commands: 4,70,72,74,86
2019-04-15 22:17:59.650 (RM2 Salon) Device Number begin to : 11
of course, this is only one example.
when you start the plugin, you should see something like that :
2019-04-15 22:17:59.650 (RM2 Salon) ini file read....C:/BroadlinkRM2/remote/plugin_remote_13.ini
2019-04-15 22:17:59.650 (RM2 Salon) Custom Commands: 4,70,72,74,86
2019-04-15 22:17:59.650 (RM2 Salon) Device Number begin to : 11
of course, this is only one example.
-
- Posts: 16
- Joined: Saturday 23 June 2018 20:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10338
- Contact:
Re: Python Plugin : Broadlink RM2 V4
If I do as you write I have this error message:
2019-04-15 23:54:41.011 Status: (Broadlink RM2) Stop directive received.
2019-04-15 23:54:41.011 Status: (Broadlink RM2) Exiting work loop.
2019-04-15 23:54:41.111 Status: (Broadlink RM2) Stopping threads.
2019-04-15 23:54:41.111 Status: (Broadlink RM2) Stopped.
2019-04-15 23:54:41.111 Status: (Broadlink RM2) Started.
2019-04-15 23:54:41.381 Status: (Broadlink RM2) Entering work loop.
2019-04-15 23:54:41.381 Status: (Broadlink RM2) Initialized version 4.2.0, author 'zak45'
2019-04-15 23:54:41.486 Error: (Broadlink RM2) 'onStart' failed 'MissingSectionHeaderError'.
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 218 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function onStart
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 978 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function genRemote
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 960 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function get_remoteconfig
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 698 in '/usr/lib/python3.5/configparser.py', function read
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 1077 in '/usr/lib/python3.5/configparser.py', function _read
After that, if I click on the remote switch:
2019-04-15 23:55:13.511 Status: User: Admin initiated a switch command (28/Broadlink RM2 Soggiorno - Remote/On)
2019-04-15 23:55:13.544 Error: (Broadlink RM2 Soggiorno) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-5-254.ini
So as you can see Domoticz doesn't search on remote folder and the file name isn't plugin_remote_5.ini
Why does it happen to me?
You can find attached the folder structure
2019-04-15 23:54:41.011 Status: (Broadlink RM2) Stop directive received.
2019-04-15 23:54:41.011 Status: (Broadlink RM2) Exiting work loop.
2019-04-15 23:54:41.111 Status: (Broadlink RM2) Stopping threads.
2019-04-15 23:54:41.111 Status: (Broadlink RM2) Stopped.
2019-04-15 23:54:41.111 Status: (Broadlink RM2) Started.
2019-04-15 23:54:41.381 Status: (Broadlink RM2) Entering work loop.
2019-04-15 23:54:41.381 Status: (Broadlink RM2) Initialized version 4.2.0, author 'zak45'
2019-04-15 23:54:41.486 Error: (Broadlink RM2) 'onStart' failed 'MissingSectionHeaderError'.
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 218 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function onStart
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 978 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function genRemote
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 960 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function get_remoteconfig
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 698 in '/usr/lib/python3.5/configparser.py', function read
2019-04-15 23:54:41.486 Error: (Broadlink RM2) ----> Line 1077 in '/usr/lib/python3.5/configparser.py', function _read
After that, if I click on the remote switch:
2019-04-15 23:55:13.511 Status: User: Admin initiated a switch command (28/Broadlink RM2 Soggiorno - Remote/On)
2019-04-15 23:55:13.544 Error: (Broadlink RM2 Soggiorno) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-5-254.ini
So as you can see Domoticz doesn't search on remote folder and the file name isn't plugin_remote_5.ini
Why does it happen to me?
You can find attached the folder structure
- Attachments
-
- BroadlinkError_002.jpg (114.01 KiB) Viewed 2875 times
-
- BroadlinkError_001.jpg (185.51 KiB) Viewed 2875 times
-
- Posts: 953
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink RM2 V4
@arcpaqua
At one moment you said to have this error:
2019-04-15 17:32:24.419 Error: (Broadlink RM2 Soggiorno) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/log/BroadlinkRM2-5-254.ini
but I do not see any log folder on your screenshot....
put the plugin on debug mode.
and post Domoticz log from start.
At one moment you said to have this error:
2019-04-15 17:32:24.419 Error: (Broadlink RM2 Soggiorno) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/log/BroadlinkRM2-5-254.ini
but I do not see any log folder on your screenshot....
put the plugin on debug mode.
and post Domoticz log from start.
-
- Posts: 16
- Joined: Saturday 23 June 2018 20:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10338
- Contact:
Re: Python Plugin : Broadlink RM2 V4
I'm sorry @zak45
It's because I just made some experiment by changing folders.
The question is the same in both (with and without log folder).
Below the log with the following actions: reboot system, restart domoticz service, restart (update) hardware Broadlink and click on remote button switch.
It's a bit long... sorry
It's because I just made some experiment by changing folders.
The question is the same in both (with and without log folder).
Below the log with the following actions: reboot system, restart domoticz service, restart (update) hardware Broadlink and click on remote button switch.
It's a bit long... sorry
- Spoiler: show
-
- Posts: 16
- Joined: Saturday 23 June 2018 20:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10338
- Contact:
Re: Python Plugin : Broadlink RM2 V4
For now, I solved with a little trick: I created 4 switch selector with all TV commands.arcpaqua wrote: ↑Tuesday 16 April 2019 15:26 I'm sorry @zak45
It's because I just made some experiment by changing folders.
The question is the same in both (with and without log folder).
Below the log with the following actions: reboot system, restart domoticz service, restart (update) hardware Broadlink and click on remote button switch.
-
- Posts: 953
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink RM2 V4
@arcpaqua
Do you have verified right settings on your ini / folder ?
User running Domoticz need to have at minima read authorization.
Do you have verified right settings on your ini / folder ?
User running Domoticz need to have at minima read authorization.
Re: Python Plugin : Broadlink RM2 V4
Hello Zak45,
I'm posting in the right place then
When trying to launch it by command line i have the folowing:
File "plugin_http.sh", line 1
nohup python /Domoticz/plugins/BroadlinkRM2/plugin_http.py $1 $2 $3 &
^
SyntaxError: invalid syntax
Looking everywhere in this plugin but didn't figure out what went wrong...
How do I check port usage under debian? ( silly question but I'm more a windows guy
)
Edit : somehow something changed ! the nohup.out now indicates :
python: can't open file '/Domoticz/plugins/BroadlinkRM2/plugin_http.py': [Errno 13] Permission denied
wheras before it was a path error saying that such file or directory did not exist.
I'm posting in the right place then

When trying to launch it by command line i have the folowing:
File "plugin_http.sh", line 1
nohup python /Domoticz/plugins/BroadlinkRM2/plugin_http.py $1 $2 $3 &
^
SyntaxError: invalid syntax
Looking everywhere in this plugin but didn't figure out what went wrong...
How do I check port usage under debian? ( silly question but I'm more a windows guy

Edit : somehow something changed ! the nohup.out now indicates :
python: can't open file '/Domoticz/plugins/BroadlinkRM2/plugin_http.py': [Errno 13] Permission denied
wheras before it was a path error saying that such file or directory did not exist.
-
- Posts: 953
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink RM2 V4
fineLoky31 wrote: ↑Thursday 02 May 2019 10:12 Hello Zak45,
I'm posting in the right place then
When trying to launch it by command line i have the folowing:
File "plugin_http.sh", line 1
nohup python /Domoticz/plugins/BroadlinkRM2/plugin_http.py $1 $2 $3 &
^
SyntaxError: invalid syntax
Looking everywhere in this plugin but didn't figure out what went wrong...
How do I check port usage under debian? ( silly question but I'm more a windows guy)
Edit : somehow something changed ! the nohup.out now indicates :
python: can't open file '/Domoticz/plugins/BroadlinkRM2/plugin_http.py': [Errno 13] Permission denied
wheras before it was a path error saying that such file or directory did not exist.

verify when you do python from a terminal session that it load python v3.x and not 2.x.
If loading 2.x then replace python by python3 into plugin_http.sh
And yes, check again all rights on the file.
Re: Python Plugin : Broadlink RM2 V4
noob question, how do I do this check?
I thought that installing it by pip3 was enough to get sure of that.
Regarding the rights on the file, by any chance can you tell me which of the numerous directory of BroadlinkRM2 over the system are the executed files pick from?
As I got path error I explore and discover there are a lot different directories for the broadlink...
I thought that installing it by pip3 was enough to get sure of that.
Regarding the rights on the file, by any chance can you tell me which of the numerous directory of BroadlinkRM2 over the system are the executed files pick from?
As I got path error I explore and discover there are a lot different directories for the broadlink...
-
- Posts: 953
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink RM2 V4
put debug mode 'on' for the plugin and post domoticz log from start.Loky31 wrote: ↑Thursday 02 May 2019 16:05 noob question, how do I do this check?
I thought that installing it by pip3 was enough to get sure of that.
Regarding the rights on the file, by any chance can you tell me which of the numerous directory of BroadlinkRM2 over the system are the executed files pick from?
As I got path error I explore and discover there are a lot different directories for the broadlink...
Re: Python Plugin : Broadlink RM2 V4
Ok so it's done 
I can confirm that I'm running python 3.5.3:
2019-05-03 22:45:36.360 Status: PluginSystem: Started, Python version '3.5.3'.
Regarding what the RM plugin log , here it is :
2019-05-03 22:46:20.326 (RM salon) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2019-05-03 22:46:20.326 (RM salon) 'Mode1':'780f77182d75'
2019-05-03 22:46:20.326 (RM salon) 'DomoticzBuildTime':'2019-05-02 18:46:22'
2019-05-03 22:46:20.326 (RM salon) 'Database':'/home/pi/domoticz/domoticz.db'
2019-05-03 22:46:20.326 (RM salon) 'DomoticzHash':'281a59b7'
2019-05-03 22:46:20.326 (RM salon) 'Address':'192.168.1.97'
2019-05-03 22:46:20.327 (RM salon) 'HardwareID':'16'
2019-05-03 22:46:20.327 (RM salon) 'Author':'zak45'
2019-05-03 22:46:20.327 (RM salon) 'Mode3':'RM2'
2019-05-03 22:46:20.327 (RM salon) 'Key':'BroadlinkRM2'
2019-05-03 22:46:20.327 (RM salon) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2019-05-03 22:46:20.327 (RM salon) 'Port':'0'
2019-05-03 22:46:20.327 (RM salon) 'Version':'4.2.0'
2019-05-03 22:46:20.327 (RM salon) 'DomoticzVersion':'4.10666'
2019-05-03 22:46:20.327 (RM salon) 'Name':'RM salon'
2019-05-03 22:46:20.327 (RM salon) 'StartupFolder':'/home/pi/domoticz/'
2019-05-03 22:46:20.327 (RM salon) 'Mode5':'9000'
2019-05-03 22:46:20.327 (RM salon) 'Mode6':'Debug'
2019-05-03 22:46:20.327 (RM salon) 'Mode2':'/home/domoticz/plugins/BroadlinkRM2'
2019-05-03 22:46:20.327 (RM salon) 'Mode4':'yes'
2019-05-03 22:46:20.327 (RM salon) 'Language':'fr'
2019-05-03 22:46:20.327 (RM salon) 'UserDataFolder':'/home/pi/domoticz/'
2019-05-03 22:46:20.328 (RM salon) Device count: 8
2019-05-03 22:46:20.328 (RM salon) Device: 1 - ID: 44, Name: 'RM salon - Command', nValue: 1, sValue: '10'
2019-05-03 22:46:20.328 (RM salon) Device ID: '44'
2019-05-03 22:46:20.328 (RM salon) Device Name: 'RM salon - Command'
2019-05-03 22:46:20.328 (RM salon) Device nValue: 1
2019-05-03 22:46:20.328 (RM salon) Device sValue: '10'
2019-05-03 22:46:20.328 (RM salon) Device LastLevel: 10
2019-05-03 22:46:20.328 (RM salon) Device: 2 - ID: 47, Name: 'Ecran montée', nValue: 1, sValue: 'On-7'
2019-05-03 22:46:20.328 (RM salon) Device ID: '47'
2019-05-03 22:46:20.328 (RM salon) Device Name: 'Ecran montée'
2019-05-03 22:46:20.328 (RM salon) Device nValue: 1
2019-05-03 22:46:20.328 (RM salon) Device sValue: 'On-7'
2019-05-03 22:46:20.328 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.328 (RM salon) Device: 3 - ID: 48, Name: 'Ecran descente', nValue: 1, sValue: 'On-6'
2019-05-03 22:46:20.328 (RM salon) Device ID: '48'
2019-05-03 22:46:20.328 (RM salon) Device Name: 'Ecran descente'
2019-05-03 22:46:20.329 (RM salon) Device nValue: 1
2019-05-03 22:46:20.329 (RM salon) Device sValue: 'On-6'
2019-05-03 22:46:20.329 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.329 (RM salon) Device: 5 - ID: 50, Name: 'TV on/off', nValue: 1, sValue: 'On-2'
2019-05-03 22:46:20.329 (RM salon) Device ID: '50'
2019-05-03 22:46:20.329 (RM salon) Device Name: 'TV on/off'
2019-05-03 22:46:20.329 (RM salon) Device nValue: 1
2019-05-03 22:46:20.329 (RM salon) Device sValue: 'On-2'
2019-05-03 22:46:20.329 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.329 (RM salon) Device: 7 - ID: 52, Name: 'Projo on', nValue: 1, sValue: 'On-5'
2019-05-03 22:46:20.329 (RM salon) Device ID: '52'
2019-05-03 22:46:20.329 (RM salon) Device Name: 'Projo on'
2019-05-03 22:46:20.329 (RM salon) Device nValue: 1
2019-05-03 22:46:20.329 (RM salon) Device sValue: 'On-5'
2019-05-03 22:46:20.329 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.329 (RM salon) Device: 8 - ID: 53, Name: 'Projo off', nValue: 1, sValue: 'On-9'
2019-05-03 22:46:20.329 (RM salon) Device ID: '53'
2019-05-03 22:46:20.330 (RM salon) Device Name: 'Projo off'
2019-05-03 22:46:20.330 (RM salon) Device nValue: 1
2019-05-03 22:46:20.330 (RM salon) Device sValue: 'On-9'
2019-05-03 22:46:20.330 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.330 (RM salon) Device: 254 - ID: 45, Name: 'RM salon - Remote', nValue: 0, sValue: ''
2019-05-03 22:46:20.330 (RM salon) Device ID: '45'
2019-05-03 22:46:20.330 (RM salon) Device Name: 'RM salon - Remote'
2019-05-03 22:46:20.330 (RM salon) Device nValue: 0
2019-05-03 22:46:20.330 (RM salon) Device sValue: ''
2019-05-03 22:46:20.330 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.330 (RM salon) Device: 255 - ID: 46, Name: 'RM salon - Import', nValue: 0, sValue: 'Off'
2019-05-03 22:46:20.330 (RM salon) Device ID: '46'
2019-05-03 22:46:20.330 (RM salon) Device Name: 'RM salon - Import'
2019-05-03 22:46:20.330 (RM salon) Device nValue: 0
2019-05-03 22:46:20.330 (RM salon) Device sValue: 'Off'
2019-05-03 22:46:20.330 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.330 (RM salon) Pushing 'PollIntervalDirective' on to queue
2019-05-03 22:46:20.331 (RM salon - Import) Updating device from 0:'Off' to have values 0:'Off'.
2019-05-03 22:46:20.351 (RM salon) Update 0:'Off' (RM salon - Import)
2019-05-03 22:46:20.351 (RM salon) Connecting to: 192.168.1.97:780f77182d75
2019-05-03 22:46:20.942 (RM salon) Connected to Broadlink device: 192.168.1.97
2019-05-03 22:46:20.981 (RM salon) No ini file :/home/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_16.ini
2019-05-03 22:46:20.981 (RM salon) Custom Commands for Remote not managed
2019-05-03 22:46:20.981 (RM salon) Device Number begin to : 6
and then :
2019-05-03 22:46:27.547 (RM salon) Processing 'PollIntervalDirective' message
2019-05-03 22:46:27.547 (RM salon) Heartbeat interval set to: 30.
2019-05-03 22:46:36.552 (RM salon) Pushing 'onHeartbeatCallback' on to queue
2019-05-03 22:46:36.603 (RM salon) Processing 'onHeartbeatCallback' message
2019-05-03 22:46:36.604 (RM salon) Calling message handler 'onHeartbeat'.
So I don't get what is making it wrong when it comes to start the web server...
Regarding teh rights, what is to be checked exactly to be correct?

I can confirm that I'm running python 3.5.3:
2019-05-03 22:45:36.360 Status: PluginSystem: Started, Python version '3.5.3'.
Regarding what the RM plugin log , here it is :
2019-05-03 22:46:20.326 (RM salon) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2019-05-03 22:46:20.326 (RM salon) 'Mode1':'780f77182d75'
2019-05-03 22:46:20.326 (RM salon) 'DomoticzBuildTime':'2019-05-02 18:46:22'
2019-05-03 22:46:20.326 (RM salon) 'Database':'/home/pi/domoticz/domoticz.db'
2019-05-03 22:46:20.326 (RM salon) 'DomoticzHash':'281a59b7'
2019-05-03 22:46:20.326 (RM salon) 'Address':'192.168.1.97'
2019-05-03 22:46:20.327 (RM salon) 'HardwareID':'16'
2019-05-03 22:46:20.327 (RM salon) 'Author':'zak45'
2019-05-03 22:46:20.327 (RM salon) 'Mode3':'RM2'
2019-05-03 22:46:20.327 (RM salon) 'Key':'BroadlinkRM2'
2019-05-03 22:46:20.327 (RM salon) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2019-05-03 22:46:20.327 (RM salon) 'Port':'0'
2019-05-03 22:46:20.327 (RM salon) 'Version':'4.2.0'
2019-05-03 22:46:20.327 (RM salon) 'DomoticzVersion':'4.10666'
2019-05-03 22:46:20.327 (RM salon) 'Name':'RM salon'
2019-05-03 22:46:20.327 (RM salon) 'StartupFolder':'/home/pi/domoticz/'
2019-05-03 22:46:20.327 (RM salon) 'Mode5':'9000'
2019-05-03 22:46:20.327 (RM salon) 'Mode6':'Debug'
2019-05-03 22:46:20.327 (RM salon) 'Mode2':'/home/domoticz/plugins/BroadlinkRM2'
2019-05-03 22:46:20.327 (RM salon) 'Mode4':'yes'
2019-05-03 22:46:20.327 (RM salon) 'Language':'fr'
2019-05-03 22:46:20.327 (RM salon) 'UserDataFolder':'/home/pi/domoticz/'
2019-05-03 22:46:20.328 (RM salon) Device count: 8
2019-05-03 22:46:20.328 (RM salon) Device: 1 - ID: 44, Name: 'RM salon - Command', nValue: 1, sValue: '10'
2019-05-03 22:46:20.328 (RM salon) Device ID: '44'
2019-05-03 22:46:20.328 (RM salon) Device Name: 'RM salon - Command'
2019-05-03 22:46:20.328 (RM salon) Device nValue: 1
2019-05-03 22:46:20.328 (RM salon) Device sValue: '10'
2019-05-03 22:46:20.328 (RM salon) Device LastLevel: 10
2019-05-03 22:46:20.328 (RM salon) Device: 2 - ID: 47, Name: 'Ecran montée', nValue: 1, sValue: 'On-7'
2019-05-03 22:46:20.328 (RM salon) Device ID: '47'
2019-05-03 22:46:20.328 (RM salon) Device Name: 'Ecran montée'
2019-05-03 22:46:20.328 (RM salon) Device nValue: 1
2019-05-03 22:46:20.328 (RM salon) Device sValue: 'On-7'
2019-05-03 22:46:20.328 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.328 (RM salon) Device: 3 - ID: 48, Name: 'Ecran descente', nValue: 1, sValue: 'On-6'
2019-05-03 22:46:20.328 (RM salon) Device ID: '48'
2019-05-03 22:46:20.328 (RM salon) Device Name: 'Ecran descente'
2019-05-03 22:46:20.329 (RM salon) Device nValue: 1
2019-05-03 22:46:20.329 (RM salon) Device sValue: 'On-6'
2019-05-03 22:46:20.329 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.329 (RM salon) Device: 5 - ID: 50, Name: 'TV on/off', nValue: 1, sValue: 'On-2'
2019-05-03 22:46:20.329 (RM salon) Device ID: '50'
2019-05-03 22:46:20.329 (RM salon) Device Name: 'TV on/off'
2019-05-03 22:46:20.329 (RM salon) Device nValue: 1
2019-05-03 22:46:20.329 (RM salon) Device sValue: 'On-2'
2019-05-03 22:46:20.329 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.329 (RM salon) Device: 7 - ID: 52, Name: 'Projo on', nValue: 1, sValue: 'On-5'
2019-05-03 22:46:20.329 (RM salon) Device ID: '52'
2019-05-03 22:46:20.329 (RM salon) Device Name: 'Projo on'
2019-05-03 22:46:20.329 (RM salon) Device nValue: 1
2019-05-03 22:46:20.329 (RM salon) Device sValue: 'On-5'
2019-05-03 22:46:20.329 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.329 (RM salon) Device: 8 - ID: 53, Name: 'Projo off', nValue: 1, sValue: 'On-9'
2019-05-03 22:46:20.329 (RM salon) Device ID: '53'
2019-05-03 22:46:20.330 (RM salon) Device Name: 'Projo off'
2019-05-03 22:46:20.330 (RM salon) Device nValue: 1
2019-05-03 22:46:20.330 (RM salon) Device sValue: 'On-9'
2019-05-03 22:46:20.330 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.330 (RM salon) Device: 254 - ID: 45, Name: 'RM salon - Remote', nValue: 0, sValue: ''
2019-05-03 22:46:20.330 (RM salon) Device ID: '45'
2019-05-03 22:46:20.330 (RM salon) Device Name: 'RM salon - Remote'
2019-05-03 22:46:20.330 (RM salon) Device nValue: 0
2019-05-03 22:46:20.330 (RM salon) Device sValue: ''
2019-05-03 22:46:20.330 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.330 (RM salon) Device: 255 - ID: 46, Name: 'RM salon - Import', nValue: 0, sValue: 'Off'
2019-05-03 22:46:20.330 (RM salon) Device ID: '46'
2019-05-03 22:46:20.330 (RM salon) Device Name: 'RM salon - Import'
2019-05-03 22:46:20.330 (RM salon) Device nValue: 0
2019-05-03 22:46:20.330 (RM salon) Device sValue: 'Off'
2019-05-03 22:46:20.330 (RM salon) Device LastLevel: 0
2019-05-03 22:46:20.330 (RM salon) Pushing 'PollIntervalDirective' on to queue
2019-05-03 22:46:20.331 (RM salon - Import) Updating device from 0:'Off' to have values 0:'Off'.
2019-05-03 22:46:20.351 (RM salon) Update 0:'Off' (RM salon - Import)
2019-05-03 22:46:20.351 (RM salon) Connecting to: 192.168.1.97:780f77182d75
2019-05-03 22:46:20.942 (RM salon) Connected to Broadlink device: 192.168.1.97
2019-05-03 22:46:20.981 (RM salon) No ini file :/home/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_16.ini
2019-05-03 22:46:20.981 (RM salon) Custom Commands for Remote not managed
2019-05-03 22:46:20.981 (RM salon) Device Number begin to : 6
and then :
2019-05-03 22:46:27.547 (RM salon) Processing 'PollIntervalDirective' message
2019-05-03 22:46:27.547 (RM salon) Heartbeat interval set to: 30.
2019-05-03 22:46:36.552 (RM salon) Pushing 'onHeartbeatCallback' on to queue
2019-05-03 22:46:36.603 (RM salon) Processing 'onHeartbeatCallback' message
2019-05-03 22:46:36.604 (RM salon) Calling message handler 'onHeartbeat'.
So I don't get what is making it wrong when it comes to start the web server...
Regarding teh rights, what is to be checked exactly to be correct?
-
- Posts: 953
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink RM2 V4
yep, but necesary to me to be able to provide some help.
here is an example of what you should have (more or less)
usr@amlogic:~/domoticz/plugins/BroadlinkRM2$ ls -altr
total 88
-rw-r--r-- 1 usr root 43486 Feb 19 21:41 plugin.py
-rw-r--r-- 1 usr root 1518 Feb 22 16:57 plugin_send.py
-rw-r--r-- 1 usr root 58 Feb 22 16:57 plugin_send.cmd
-rw-r--r-- 1 usr root 11469 Feb 22 16:57 plugin_http.py
-rw-r--r-- 1 usr root 76 Feb 22 16:57 plugin_http.cmd
drwxr-xr-x 2 usr root 4096 Apr 20 10:16 __pycache__
-rwxr-xr-x 1 usr root 87 May 4 10:10 plugin_http.sh
drwxr-xr-x 3 usr root 4096 May 4 10:11 .
-rw-r--r-- 1 usr root 1480 May 4 10:13 nohup.out
usr@amlogic:~/domoticz/plugins/BroadlinkRM2$ cat plugin_http.sh
nohup python3 /home/usr/domoticz/plugins/BroadlinkRM2/plugin_http.py $1 $2 $3 $4 $5 &
usr@amlogic:~/domoticz/plugins/BroadlinkRM2$
This mean for you:
your plugin_http.sh file need to be under : /home/pi/domoticz/plugins/BroadlinkRM2/
you can put the same rights as in the example
the content of the .sh file need to have this :
nohup python3 /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.py $1 $2 $3 $4 $5 &
to test if this work, open terminal session and go to /home/pi/domoticz/plugins/BroadlinkRM2/
enter this command : nohup plugin_http.sh 0.0.0.0 9000 /home/pi/domoticz/
if something goes wrong, your will see it into nohup.out.
Re: Python Plugin : Broadlink RM2 V4
Many Thanks, will try that asap but likely to be next weekend. Keep you posted of course 

Who is online
Users browsing this forum: No registered users and 1 guest