Using BROADLINK RM2 on DOMOTICZ

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by woody4165 »

I have now created two .sh files one per RM2 and I still get the issue on the same one.
I will try to reset it and reconnect and let you know.
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
forumfab
Posts: 68
Joined: Monday 25 August 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by forumfab »

woody4165 wrote:I have now created two .sh files one per RM2 and I still get the issue on the same one.
I will try to reset it and reconnect and let you know.
Hi woody4165,

Are your two RM2 the same, i mean, the same generation of RM2
Did you buy them at the same time

Then did you realise two refresh.txt ( one for each RM2), two returntemp.sh ( one for each RM2), and two starttemp.sh (one for each RM2)

About the reason why i did buil the starttemp.sh , it's because there is some problems of PATH with DOMOTICZ, and that the returntemp.sh is a BASH script an not a sh script

But if the script "pack" is workink with one RM2, the second script "pack" must work with the second one RM2

You may be also control the script "pack" that does'nt works ( RM2 which is not working), may be rebuil the script pack for this one with nano editor.

It very easy to forget a caracter inside the script with nano editor

Could you confirm that both script "pack" are working manually ? ( take care of the return information inside de PUTTY console )

Bests regards
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by woody4165 »

Yes, I bought together.
Now I solved the strange temperature from one of them that was not correctly updated.
But still gets a lot of error while reading.
I haven't yet reset it, I will do asap

I have all these files now

Code: Select all

startTempLet.sh  TempBroadLetto.sh  TempBroadLetto.txt  
startTempSal.sh  TempBroadSalone.sh  TempBroadSalone.txt
I have checked the "pack" of the one not working well and they are identical, with all the changes needed.
I also changed in both scripts the "> file.txt" having different files for each script

Thanks
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by woody4165 »

It seems that the reading issue was related to the Wifi extender where was connected the RM2, now I have changed and I get correct values without any erro in between.

Thanks again!
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
forumfab
Posts: 68
Joined: Monday 25 August 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by forumfab »

woody4165 wrote:It seems that the reading issue was related to the Wifi extender where was connected the RM2, now I have changed and I get correct values without any erro in between.

Thanks again!
Hi woody4165,

Great, i am glad, if everything is know ok for you

Bests regards
jarwis
Posts: 10
Joined: Wednesday 11 November 2015 13:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Finland
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by jarwis »

Hi,

Has anyone tried to use Broadlink RM mini 3 (also known as Black Bean) on Domoticz? I've tested that both RM Bridge and Broadlink RM Tasker Trial do not support it.
Last edited by jarwis on Wednesday 08 June 2016 13:16, edited 1 time in total.
forumfab
Posts: 68
Joined: Monday 25 August 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by forumfab »

Has anyone tried to use Broadlink RM mini 3 (also knows as Black Bean) on Domoticz? I've tested that both RM Bridge and Broadlink RM Tasker Trial do not support it

Hi jarwis ,

This unit couldn't be support for the moment in any maners , just with the broadlink Cloud application.

This unit haven't been integrated inside the BROADLINK SDK for the moment, like the S1 witch is'nt intégrated too in the SDK

The SDK, is allways the base for all the tools, like RM BRIDGE, or TASKER pluging, or else ...

Bests regards
zbuh
Posts: 1
Joined: Thursday 09 June 2016 19:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by zbuh »

any news on RM 3 mini ?
forumfab
Posts: 68
Joined: Monday 25 August 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by forumfab »

zbuh wrote:any news on RM 3 mini ?
Hi,

As indicated previously there is any project anywhere to integrated the RM 3 in the BROADLINK SDK, or in the RM BRIDGE.

In my own point of view, there is no real interest for this product regarding the price VS RM2 PRO price, and adding the fact that the RM 3, is limited to the IR function

Bests regards
User avatar
thecosmicgate
Posts: 188
Joined: Monday 06 April 2015 14:37
Target OS: Linux
Domoticz version: newest
Location: The Netherlands / Hoeven
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by thecosmicgate »

This RM3 mini could/ should be a nice replacement (much cheaper) for the logitech hub ! It's "on sale" on gearbest.com now €8,83
It's nice to be important, but it's more important to be nice
Scooter ;)
theoorl45
Posts: 3
Joined: Saturday 06 August 2016 14:45
Target OS: Linux
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by theoorl45 »

Hi,

Sorry for disturbing but I need help...

I'm a new user of RM2 (I bought it 2 days ago)....
I follow all the tutorials from the web (mainly http://leffab.wixsite.com/domo-assist), using RM bridge (thanks for this app !!) to send the commands to the device and the online tool to learn codes...

But, it doesn't learn any code.
http://rm-bridge.fun2code.de/rm_manage/ ... rning.html
I always get the "error learning code : <MAC> not rm2"...

Is this website not up-to-date with the lastest version of rm2 ?

It's seems that rm tasker app, with the HTTP bridge activated works well, but it's a beta functionality and I'd prefer the RM bridge.

What can I do to make my learning codes work ? How can I learn my IF and RF codes ?
Your help will be precious...

PS : I tried yesterday the Rm command builder tools with no success. Reading this topic today, it's seems itis not up-to-date with the latest firmware... So I gave up and focus with the online tool.
PSbis : I'm french, sorry for my broken english.
forumfab
Posts: 68
Joined: Monday 25 August 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by forumfab »

theoorl45 wrote:Hi,

Sorry for disturbing but I need help...

I'm a new user of RM2 (I bought it 2 days ago)....
I follow all the tutorials from the web (mainly http://leffab.wixsite.com/domo-assist), using RM bridge (thanks for this app !!) to send the commands to the device and the online tool to learn codes...

But, it doesn't learn any code.
http://rm-bridge.fun2code.de/rm_manage/ ... rning.html
I always get the "error learning code : <MAC> not rm2"...

Is this website not up-to-date with the lastest version of rm2 ?

It's seems that rm tasker app, with the HTTP bridge activated works well, but it's a beta functionality and I'd prefer the RM bridge.

What can I do to make my learning codes work ? How can I learn my IF and RF codes ?
Your help will be precious...

PS : I tried yesterday the Rm command builder tools with no success. Reading this topic today, it's seems itis not up-to-date with the latest firmware... So I gave up and focus with the online tool.
PSbis : I'm french, sorry for my broken english.
Bonjour theoorl45,

Quel version de RM BRIDGE utilisez vous ?
Avez vous télécharger la dernière version de RM BRIDGE sur le google store ?

Ou l'avez vous télécharger à partir de ce site

http://rm-bridge.fun2code.de/

Le mieux est d'utiliser ce site et ensuite d'utiliser l'application en ligne de cette même adresse pour commencer à constituer votre base de donner de code Ir ou radio

Commencez de préférence avec des codes IR pour éviter les perturbation radio, si vous avez un système domotique charger en modules

Cordialement
theoorl45
Posts: 3
Joined: Saturday 06 August 2016 14:45
Target OS: Linux
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by theoorl45 »

Wouaou !!
Tu peux pas savoir à quel point je suis content là !

A ta demande, j'ai téléchargé l'APK sur le site plutôt que sur le store...
Et j'ai recommencé la procédure. Et là, tout fonctionne du premier coup. C'est même génialement facile !!!!

Mais ça a changé récemment ? ou c'est moi qui m'y prenait mal ? Je suis pourtant du genre à cliquer de partout et à bidouiller quand quelque chose me résiste (je suis moi-même développeur)... et je m'en suis arraché les cheveux....

Non parce que là, en plus d'être simple, c'est super intuitif : on a des URL parlantes qu'on peut appeler de n'importe où pour les codes IR et RF.... Franchement, gé-nial ! Lintégration avec d'autres applications est juste parfait. Moi qui était un peu descendu de mon euphorie quand j'ai vu la difficulté que c'était d'intégrer le RM avec ma box domotique, j'avoue que là, mon plaisir est remonté en flèche !

Merci beaucoup à toi! Je vais m'é-cla-ter !
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by gizmocuz »

Keep it in English please !
Quality outlives Quantity!
theoorl45
Posts: 3
Joined: Saturday 06 August 2016 14:45
Target OS: Linux
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by theoorl45 »

Sorry...

Forumfab asked me which "RM-bridge" version I use (google store or website) and recommended me to download the "rm-bridge" app directly from the website "http://rm-bridge.fun2code.de/". After that, he told me to give a try and to begin learning my IR codes before learning my RF codes, using the online website...

As a result, I made a new try and I thanked him a lot because all is okay now ! I downloaded the apk from the website, installed it and accessed the online application to begin learning my codes. All is fine, very easy and very fluent.
I wonder if something had changed since my previous tries because I had searched a lot before requesting within this forum. And nothing seemed to succeed...
Finally, I told him that the generated URLs, after learning codes, are very handy for integrating the RM broadlink with all automatic system :-)

So, all is okay for me : apps, website, and my integration (not domoticz in my case, I use jeedom...)

PS : Sorry again for my broken english. I don't speak english very often and I lost all my english knowledges...
kulan
Posts: 1
Joined: Friday 26 August 2016 14:29
Target OS: Windows
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by kulan »

Hello!

I have an Broadlink RM PRO-E which i have after reading this thread got to work with Domoticz. Using RMBridge 1.3.0 on Nvidia Shield TV.
Got som trouble with reading out the temperature via http it just says "Invalid request" when i try http://10.0.0.xx:7474/temperature , turning on and off switches with links after i learned codes working but not the temperature.

I have also tried the RM tasker broadlink plugin and with their bridge i can get termperature over http.

When i get it working so i can read temperature via RMbridge do you guys have i quick solution to put the value in to a virtual sensor in Domoticz? How to read out the temperature value from the response. Have googled some but not found a solution to read value from http link response yet.

Another question, will there be possible to read values from 433 mhz devices like doorbell buttons, magnetic contacts or temperature sensors via the broadlink into Domoticz? Or can i just send commands from Domoticz to broadlink? I understand the primary purpose of the broadlink is to just store the commands and repeat them after it has learnad the commands. If it not possible to read data or send commands from the Broadlink to domoticz i most buy an RFXtrx433E for that purposes instead but if the broadlink maybe can handle it would be nice with a less device.

Im new to both Domoticz, Broadlink, 433 mhz and z-wave. Just bought a house and building the home automation now. The reason i got the Broadlink in the first place was to control my Mitsubishi heater/AC.
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by remb0 »

I think it's possible to use the cheap rm3 mini, (i ordered one but not received yet:

http://rm-bridge.fun2code.de/
with the android app and the offline code we can get codes
http://fun2code-blog.blogspot.nl/2016/0 ... round.html

or: info I found on different pages (and when I receive the device i will test and make a tutorial....

Code: Select all


#info: https://community.openhab.org/t/broadlink-black-bean-rm-3-mini-ir-controller-help-with-understanding-their-udp-protocol/11453/23

cd /home/pi/domoticz/scripts/python/
git clone https://github.com/davorf/BlackBeanControl.git


sudo nano BlackBeanControl/BlackBeanControl.ini 

Wireshark
tpacketcapture





There is BlackBeanControl.ini file which consists of General and Commands section. General section should contain: 
- IPAddress: IP address of the RM 3 mini device
- Port: Port of the RM 3 mini device - usually 80
- DummyCommand: Hex dump of the UDP payload that will be sent before every other command - it should be already learned IR command that is not used, for example, IR command from an old, unused remote control. RM 3 mini does not want to trigger commands if they are sent over UDP more then once consecutively, so, this command is used to bypass this problem

Commands section should contain list of command names (only letters, without blanks) followed by column and a hex dump of the actual command. For example:

TVVolumeUp: [HEX DUMP]
ACTempUp: [HEX DUMP]

A syntax for calling a script is:

BlackBeanControl -c [-i IP Address] [-p Port]

Command name parameter is the name of command already stored in an .ini file
IP Address and Port are optional parameters - used in case there is a need for sending UDP payload to a multiple RM 3 minis in the same network. If value is not assigned to these parameters, values from an .ini file will be used.

I'm not very friendly with java, so I'm not able to make this into regular OpenHAB binding - if that is possible at all. If someone is willing to do that, I'll help as much as I can.
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by remb0 »

Who has it working already?
I dail in getting the hex stream from wireshark :(
aldodemi
Posts: 25
Joined: Tuesday 07 October 2014 17:43
Target OS: Linux
Domoticz version: 3.8275
Location: Genoa Italy
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by aldodemi »

Found another way to drive RM2 directly from Domoticz (I'm trying at least to do that :-)):

https://github.com/mjg59/python-broadlink

From python it works, now try to integrate in Domoticz.

I've created two different python command file:

- one to record code
- one to send code

As I have two device from Broadlink (RM2 and A1) I need to search for the correct one before learn code or send code via RM2.....
Last edited by aldodemi on Saturday 22 October 2016 23:28, edited 1 time in total.
Server Domoticz 3.7243 (usually the last beta) on Debian Linux (Jessie) - Hw homemade with Atom CPU/4 GB RAM
RFXCom and ZWave Stick (Aeon)
forumfab
Posts: 68
Joined: Monday 25 August 2014 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by forumfab »

aldodemi wrote:Found another way to drive RM2 directly from Domoticz (I'm trying at least to do that :-)):

https://github.com/mjg59/python-broadlink

From python it works, now try to integrate in Domoticz.

I've created two different python command file:

- one to record code
- one to send code

As I have two device from Broadlink (RM2 and A1) I need to search for the correct one before learn code or send code via RM2.....
Hi aldodemi,

Sorry, but your link doesn't works

Bests regards

Forumfab
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest