- if the button is greyed-out, you need to create the ini file and put on it devices idx (see wiki)
- be sure to have put your script with +x
- not good idea to put your ini under domoticz folder, better outside it.
Moderator: leecollings
- if the button is greyed-out, you need to create the ini file and put on it devices idx (see wiki)
initiated a switch command (16/Broadlink - Command/Set Level)
2019-03-09 08:02:57.078 (Broadlink) Pushing 'onHeartbeatCallback' on to queue
2019-03-09 08:02:57.093 (Broadlink) Processing 'onHeartbeatCallback' message
2019-03-09 08:02:57.093 (Broadlink) Calling message handler 'onHeartbeat'.
2019-03-09 08:03:22.701 (Broadlink) Pushing 'onCommandCallback' on to queue
2019-03-09 08:03:22.721 (Broadlink) Processing 'onCommandCallback' message
2019-03-09 08:03:22.721 (Broadlink) Calling message handler 'onCommand'.
2019-03-09 08:03:22.721 (Broadlink) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2019-03-09 08:03:22.721 (Broadlink) All plugin system is on pause for 5s...
2019-03-09 08:03:22.721 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 08:03:22.701 Status: User: Darkneo initiated a switch command (16/Broadlink - Command/Set Level)
2019-03-09 08:03:27.081 (Broadlink) Pushing 'onHeartbeatCallback' on to queue
2019-03-09 08:03:27.728 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 08:03:27.728 (Broadlink) 000000000000000000000000
2019-03-09 08:03:27.728 (Broadlink) Code stored in memory
2019-03-09 08:03:27.728 (Broadlink - Command) Updating device from 1:'10' to have values 1:'20'.
2019-03-09 08:03:27.729 (Broadlink) Update 1:'20' (Broadlink - Command)
2019-03-09 08:03:27.779 (Broadlink) Processing 'onHeartbeatCallback' message
2019-03-09 08:03:27.779 (Broadlink) Calling message handler 'onHeartbeat'.
2019-03-09 08:03:46.024 (Broadlink) Pushing 'onCommandCallback' on to queue
2019-03-09 08:03:46.049 (Broadlink) Processing 'onCommandCallback' message
2019-03-09 08:03:46.049 (Broadlink) Calling message handler 'onCommand'.
2019-03-09 08:03:46.049 (Broadlink) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2019-03-09 08:03:46.049 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 08:03:46.050 (Broadlink) Code Sent....
2019-03-09 08:03:46.024 Status: User: Darkneo initiated a switch command (16/Broadlink - Command/Set Level)
- chmod +x to /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.shjudaca wrote: ↑Saturday 09 March 2019 11:05 Same problems here...installed everything correctly.... but when i try to import ...and start WebStart i get this in log
2019-03-09 10:59:17.351 Status: User: Admin initiated a switch command (439/Broadlink - Import/Set Level)
2019-03-09 10:59:17.493 Error: (Broadlink) 127
2019-03-09 10:59:17.494 Error: (Broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 1024 /home/pi/BroadlinkRM2
2019-03-09 10:59:17.494 Error: (Broadlink) None
2019-03-09 10:59:17.598 Error: (Broadlink) Not able to start Web server
Wen i try to learn a new button with the learn switch
2019-03-09 11:04:16.531 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 11:04:16.501 Status: User: Admin initiated a switch command (437/Broadlink - Command/Set Level)
2019-03-09 11:04:21.547 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 11:04:21.547 (Broadlink) 000000000000000000000000
2019-03-09 11:04:21.548 (Broadlink) Code stored in memory
But when i hit "Test" nothing happens.....
I can only make one button working...
zak45 wrote: ↑Wednesday 06 March 2019 17:19Hi,luizcarlosnery wrote: ↑Wednesday 06 March 2019 14:27 My domoticz works perfectly, but I have been trying to use this plugin for a long time, but I never got it!
to be able to try to help you, please provide these informations:
Domoticz version/ plugin version/ python version
Do you have other python plugin that is working ?
post the output of : sudo pip3 list modules
Put the plugin on Debug mode and post the output
Code: Select all
[DEFAULT]
hardwareid = 26
pluginname = broadlink2
unit = 3
customname = tv aanuit
pluginkey = BroadlinkRM2
pluginfolder = /home/pi/domoticz/plugins/BroadlinkRM2/
[Device]
mac = xxxx
host = 192.168.20.61
[LearnedCode]
3 = 2600a4019594133713371337131213121312131213121337133713371312131213121312131213121337131213121312131213121312133713121337133713371337133713371300060a9494133713371337131213121312131213121337133713371312131213121312131213121337131213121312131213121312123713121337133713371337133713371300060a9594133713371338121213121312131213121237133713371313121213121313121213121337131213121312131213121212133713121337133713371337133713371300060a9494133713371337131312121312131213121337133713371313121213121312131212121337131213121312131213121312123713121337133713371337133713371300060a9494133713371337131213131212131213121337133713371212131213121312131213121337131212121312131213121312133712131237133713371337133713371300060a94941337133713371312131213121312131213361337143613121312131213121312131113371312131213121312121213121337131213371337133614361337133812000d0500000000
you need to create this file :pvklink wrote: ↑Saturday 09 March 2019 14:56 Hi Zak45, can you help me too?
I got everything working except for the default remote switch...
I added my tv by learning, saving and generating etc. i have a separate switch for this now that works but i like
to use the on/off button or some off the remote buttons of the default remote switch to send these ir commands.
I dont want to have seperated switches for each button of a remote...
can you help me with one button? When i get the trick i found out te rest my self...
this is de ini file that is executed by the added tv onoff switch
Code: Select all
[DEFAULT] hardwareid = 26 pluginname = broadlink2 unit = 3 customname = tv aanuit pluginkey = BroadlinkRM2 pluginfolder = /home/pi/domoticz/plugins/BroadlinkRM2/ [Device] mac = xxxx host = 192.168.20.61 [LearnedCode] 3 = 2600a4019594133713371337131213121312131213121337133713371312131213121312131213121337131213121312131213121312133713121337133713371337133713371300060a9494133713371337131213121312131213121337133713371312131213121312131213121337131213121312131213121312123713121337133713371337133713371300060a9594133713371338121213121312131213121237133713371313121213121313121213121337131213121312131213121212133713121337133713371337133713371300060a9494133713371337131312121312131213121337133713371313121213121312131212121337131213121312131213121312123713121337133713371337133713371300060a9494133713371337131213131212131213121337133713371212131213121312131213121337131212121312131213121312133712131237133713371337133713371300060a94941337133713371312131213121312131213361337143613121312131213121312131113371312131213121312121213121337131213371337133614361337133812000d0500000000
Thanks Zak45 but is there any guide for that last ? "you can still use the Android application for learning and do the import after to create Domoticz switchs" ???zak45 wrote: ↑Saturday 09 March 2019 12:47- chmod +x to /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.shjudaca wrote: ↑Saturday 09 March 2019 11:05 Same problems here...installed everything correctly.... but when i try to import ...and start WebStart i get this in log
2019-03-09 10:59:17.351 Status: User: Admin initiated a switch command (439/Broadlink - Import/Set Level)
2019-03-09 10:59:17.493 Error: (Broadlink) 127
2019-03-09 10:59:17.494 Error: (Broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 1024 /home/pi/BroadlinkRM2
2019-03-09 10:59:17.494 Error: (Broadlink) None
2019-03-09 10:59:17.598 Error: (Broadlink) Not able to start Web server
Wen i try to learn a new button with the learn switch
2019-03-09 11:04:16.531 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 11:04:16.501 Status: User: Admin initiated a switch command (437/Broadlink - Command/Set Level)
2019-03-09 11:04:21.547 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 11:04:21.547 (Broadlink) 000000000000000000000000
2019-03-09 11:04:21.548 (Broadlink) Code stored in memory
But when i hit "Test" nothing happens.....
I can only make one button working...
- for the learn problem need some investigation but already reported by few others; you can still use the Android application for learning and do the import after to create Domoticz switchs.
yes & +x not necessary.pvklink wrote: ↑Sunday 10 March 2019 9:34 Ok @zak45, it works!
Do the numbers after the command= in the plugin_remote_26.ini have to correspond with the ini files and unit-id ?
so number 3 = is a broadlinkRM2-26-3.ini and in the ini is has a unitid = 3 ?
Another thing is that new ini file dont have the +x (execute) by default, is there a way that every new ini file has the right security ?
Whoo... How to do so? As all my devices are declared in the Android app!zak45 wrote: ↑Saturday 09 March 2019 12:47- chmod +x to /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.shjudaca wrote: ↑Saturday 09 March 2019 11:05 Same problems here...installed everything correctly.... but when i try to import ...and start WebStart i get this in log
2019-03-09 10:59:17.351 Status: User: Admin initiated a switch command (439/Broadlink - Import/Set Level)
2019-03-09 10:59:17.493 Error: (Broadlink) 127
2019-03-09 10:59:17.494 Error: (Broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 1024 /home/pi/BroadlinkRM2
2019-03-09 10:59:17.494 Error: (Broadlink) None
2019-03-09 10:59:17.598 Error: (Broadlink) Not able to start Web server
Wen i try to learn a new button with the learn switch
2019-03-09 11:04:16.531 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 11:04:16.501 Status: User: Admin initiated a switch command (437/Broadlink - Command/Set Level)
2019-03-09 11:04:21.547 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 11:04:21.547 (Broadlink) 000000000000000000000000
2019-03-09 11:04:21.548 (Broadlink) Code stored in memory
But when i hit "Test" nothing happens.....
I can only make one button working...
- for the learn problem need some investigation but already reported by few others; you can still use the Android application for learning and do the import after to create Domoticz switchs.
https://www.domoticz.com/wiki/Plugins/B ... figuration
Hummm... should work as for any other Domoticz switch.pvklink wrote: ↑Monday 11 March 2019 11:44 Is t possible to let the default broadlink remote switch send an rf/ir command when pushing the on button (television icon) ?
I tried it with the on action/start property of the device:
script://home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py /home/pi/domoticz/BroadlinkRM2ini/BroadlinkRM2-23-3.ini
also tried it from the commandline
python /home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py /home/pi/domoticz/BroadlinkRM2ini/BroadlinkRM2-23-3.ini
Users browsing this forum: Amazon [Bot] and 1 guest