Using BROADLINK RM2 on DOMOTICZ
Moderator: leecollings
Re: Using BROADLINK RM2 on DOMOTICZ
I just set up the python version. It works, but it's pretty slow. Hope for a faster solution in the future.
Any chance for ac control (temp, mode, fan speed etc - without learning all commands individually)?
Any chance for ac control (temp, mode, fan speed etc - without learning all commands individually)?
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: Using BROADLINK RM2 on DOMOTICZ
Have you commenthpapagaj wrote:I just set up the python version. It works, but it's pretty slow. Hope for a faster solution in the future.
Any chance for ac control (temp, mode, fan speed etc - without learning all commands individually)?
Print and time line on play.py ?
On mine this is fast as a click !
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 2
- Joined: Tuesday 10 January 2017 23:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
For example on this URL http://files.remotecentral.com/download ... 6.zip.html there is Fujitsu heatpump codes that should be possible to implement manually somehow. 

Re: RE: Re: Using BROADLINK RM2 on DOMOTICZ
As it was described on the forum, play.py must be reconnect every time when you call the script. This method adds a 2-3 sec delay to the script.deennoo wrote:Have you commenthpapagaj wrote:I just set up the python version. It works, but it's pretty slow. Hope for a faster solution in the future.
Any chance for ac control (temp, mode, fan speed etc - without learning all commands individually)?
Print and time line on play.py ?
On mine this is fast as a click !
-
- Posts: 6
- Joined: Tuesday 07 June 2016 4:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi,
I am a newbie with domoticz. I created learn.py and playcode.py as per Noddy119 instruction and everything worked well in the command line. However, when I put in domoticz action like:
script:///home/domoticz/scripts/python/playcode.py /home/domoticz/scripts/python/tvOff.txt
it just did not work at all. When I CUT and PASTE this in the ssh command line it just works:
/home/domoticz/scripts/python/playcode.py /home/domoticz/scripts/python/tvOff.txt
any idea why?
I am a newbie with domoticz. I created learn.py and playcode.py as per Noddy119 instruction and everything worked well in the command line. However, when I put in domoticz action like:
script:///home/domoticz/scripts/python/playcode.py /home/domoticz/scripts/python/tvOff.txt
it just did not work at all. When I CUT and PASTE this in the ssh command line it just works:
/home/domoticz/scripts/python/playcode.py /home/domoticz/scripts/python/tvOff.txt
any idea why?
-
- Posts: 12
- Joined: Monday 23 January 2017 20:21
- Target OS: NAS (Synology & others)
- Domoticz version: V4.10717
- Location: Curitiba - PR - BR
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hello. Set execution attribute (+X) in your *.py files.MikeNg wrote:Hi,
I am a newbie with domoticz. I created learn.py and playcode.py as per Noddy119 instruction and everything worked well in the command line. However, when I put in domoticz action like:
script:///home/domoticz/scripts/python/playcode.py /home/domoticz/scripts/python/tvOff.txt
it just did not work at all. When I CUT and PASTE this in the ssh command line it just works:
/home/domoticz/scripts/python/playcode.py /home/domoticz/scripts/python/tvOff.txt
any idea why?
-
- Posts: 82
- Joined: Monday 01 December 2014 13:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: London, UK
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Looks very interesting. Has anyone tried this out yet? Just wondering if the Broadlink times-out at all with this approach?siklosi wrote:djassa1 wrote:I still don't have Broadlink RM2/RM3 (RM3 also works from python?) but I had some script that I used before and slightly modified it for this. Basically using socks you create server that listens on some port and then with client send command on that port. So in this case you start server.py that initializes connection to broadlink device, starts socket and listens for filename. As soon as it gets filename it send command to broadlink (connection already opened.) I have not tested script (except for the socks part) but it should work. On the other hand client.py sends filename path to server (python client.py /home/pi/....)
I don't have a Broadlink yet, but having found this thread I'm about to order one. I didn't want all the hassle of having a separate Android device running just for this, but the Python scripts running on my Domoticz RPi would do just great.I can spend £56 and get a broadlink and 5 switches for much less than the cost of an rfxcom alone...
-
- Posts: 6
- Joined: Sunday 19 February 2017 19:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
I got the RM3 mini working using this method: http://domo-attitude.fr/broadlink-rm-promini-domoticz/
It works without an Android device!
Because I also have an RF remote I was wondering is this also works for the RM2 (& RM3) pro.
Can anybody confirm this? I couldn't find the differences between the RM2 pro and the RM3 pro (new version), which should I order?
It works without an Android device!
Because I also have an RF remote I was wondering is this also works for the RM2 (& RM3) pro.
Can anybody confirm this? I couldn't find the differences between the RM2 pro and the RM3 pro (new version), which should I order?
-
- Posts: 82
- Joined: Monday 01 December 2014 13:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: London, UK
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
I've got the scripts all up and running on my Domoticz Pi now and controlling the switches just perfectly. Took a little trial and error to get it working properly and I had to update the firmware on the broadlink, but I now have 5 RF switches all linked to virtual domoticz switches 

-
- Posts: 142
- Joined: Tuesday 24 January 2017 23:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Australia
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
i seem to have the same thing going here i used the link here
http://domo-attitude.fr/broadlink-rm-promini-domoticz/
no phone no python, just put in the IP and mark it as RM2
and my mini 3 works perfectly....have setup two run codes for my reverse cycle air con, and now just have to put the blocky in place to run it
great setup,
my only trick now is to work around how to know if its already on, as for my AC if you send the same command twice it will toggle power
but thats a different topic
http://domo-attitude.fr/broadlink-rm-promini-domoticz/
no phone no python, just put in the IP and mark it as RM2
and my mini 3 works perfectly....have setup two run codes for my reverse cycle air con, and now just have to put the blocky in place to run it
great setup,
my only trick now is to work around how to know if its already on, as for my AC if you send the same command twice it will toggle power
but thats a different topic
V 2020.2 RPI 3
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
RFlink 334 mhz
mysensors
broadlink
Mirabella Genio Globes
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: Using BROADLINK RM2 on DOMOTICZ
RF is OK tooRacierox wrote:I got the RM3 mini working using this method: http://domo-attitude.fr/broadlink-rm-promini-domoticz/
It works without an Android device!
Because I also have an RF remote I was wondering is this also works for the RM2 (& RM3) pro.
Can anybody confirm this? I couldn't find the differences between the RM2 pro and the RM3 pro (new version), which should I order?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
just FYI, python plugin version will be available for testing in the next week(s) for people interested.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: Using BROADLINK RM2 on DOMOTICZ
Great how to apply on tester ?zak45 wrote:just FYI, python plugin version will be available for testing in the next week(s) for people interested.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
just in process to finalize Samsung TV python plugin and I will focus after on the Wiki for Broadlink RM2, all should be there.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: Using BROADLINK RM2 on DOMOTICZ
Cool as your on the first to made plugin can you comment your code ?zak45 wrote:just in process to finalize Samsung TV python plugin and I will focus after on the Wiki for Broadlink RM2, all should be there.
This way futur makes will can understand, and replicate.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 6
- Joined: Tuesday 07 June 2016 4:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
I got an issue with the playcode.py script running from on/off action of a domoticz switch. Checked in the log it say error executing script returned 256. Running the script from SSH comand line it works perfectly. Anyone could help? Many thanks!
I put in domoticz action like:
script:///home/domoticz/scripts/playcode.py /home/domoticz/scripts/tvOff.txt
it just did not work at all and the domoticz log shows error returned 256. When I CUT and PASTE this in the ssh command line it just works:
/home/domoticz/scripts/playcode.py /home/domoticz/scripts/tvOff.txt
I put in domoticz action like:
script:///home/domoticz/scripts/playcode.py /home/domoticz/scripts/tvOff.txt
it just did not work at all and the domoticz log shows error returned 256. When I CUT and PASTE this in the ssh command line it just works:
/home/domoticz/scripts/playcode.py /home/domoticz/scripts/tvOff.txt
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Have you set rights to your script and txt files ?/chmod....
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Re: Using BROADLINK RM2 on DOMOTICZ
This python scripts are great! Got it working with my vacuum cleaner and television.
However there is one device, a heater, that is not recognized when learning, I think because the command is too simple or too short. I had this already with the official broadcom app. I eventually made an ESP01 mini webserver with an Infrared led to control it. But I would like to replace that with the Broadcom instead.
I tried to figure out what kind of protocol or IR command the Broadcom uses in the txt files generated. But I'm not sure how to convert.
My IR commands that i program with my ESP01 (arduino like IR led controller) are as following :
So basically the command runs on 38 kHz and goes on and off with that rate (on and off in 26 milliseconds) for 15780 milliseconds to turn on the device and 8040 milliseconds to turn it off. Can anyone help me to create a Broadcom command txt file out of this?
However there is one device, a heater, that is not recognized when learning, I think because the command is too simple or too short. I had this already with the official broadcom app. I eventually made an ESP01 mini webserver with an Infrared led to control it. But I would like to replace that with the Broadcom instead.
I tried to figure out what kind of protocol or IR command the Broadcom uses in the txt files generated. But I'm not sure how to convert.
My IR commands that i program with my ESP01 (arduino like IR led controller) are as following :
Code: Select all
pulseIR(15780) = on
pulseIR(8040) = off
static void pulseIR(long microsecs) {
// we'll count down from the number of microseconds we are told to wait
cli(); // this turns off any background interrupts
while (microsecs > 0) {
// 38 kHz is about 13 microseconds high and 13 microseconds low
digitalWrite(IRledPin, HIGH); // this takes about 3 microseconds to happen
delayMicroseconds(10); // hang out for 10 microseconds, you can also change this to 9 if its not working
digitalWrite(IRledPin, LOW); // this also takes about 3 microseconds
delayMicroseconds(10); // hang out for 10 microseconds, you can also change this to 9 if its not working
// so 26 microseconds altogether
microsecs -= 26;
}
sei(); // this turns them back on
}
-
- Posts: 5
- Joined: Wednesday 12 April 2017 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi , i've got the dame error
Would you give some answear?
pi@raspberrypi:~$ python learn.py
File "learn.py", line 3
import broadlink
^
IndentationError: unexpected inden
t
pi@raspberrypi:~$
Would you give some answear?
pi@raspberrypi:~$ python learn.py
File "learn.py", line 3
import broadlink
^
IndentationError: unexpected inden
t
pi@raspberrypi:~$
-
- Posts: 5
- Joined: Wednesday 12 April 2017 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Got the same error keptenkurk ,could you help me please?
Who is online
Users browsing this forum: Amazon [Bot] and 1 guest