Using BROADLINK RM2 on DOMOTICZ

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

Moderator: leecollings

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 »

Hi dijkdj ,

First of all, you must know, that the RM2, is able to lurn IR, 433mhz Radio, 315 Mhz radio codes
So our application have been created to use that facilities on all the LINUX and WINDOWS systems

Your question, is quiet different you want to translate IR to radio ( i don't know why )

Of course it's posible, under certains conditions !

But regarding that this usage can be involved in dangerous use, i'll not give any more informations for that

The description of our application must be limited to home automation usage

Bests regards
dijkdj
Posts: 63
Joined: Saturday 07 March 2015 22:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by dijkdj »

What I want is nothing dangerous.

I have a few old IR remotes and it would be great to use them to send commands to Domoticz, for example to activatie a screne or a group

My domoticz setup has and RFXCom so I van image sending commands in 2 ways:

IR->Broadlink RMPRO->RF->RFXCom->Domoticz
IR->Broadlink RMPRO->HTTP/JSON->Domoticz

Both would be great for me.

What I did not think of when I bought the RM Pro is that is meant to send IR/RF signals and recieving is primary used for learning new codes. This might mean that its not usable to be constant in recieving mode.

So yeah, I'm using it for homeautomation, and I want to know if I can use the RM Pro as a reciever, or that this app is only usefull for sending IR/RF Commands.
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 »

Hi dijkdj ,

Ididn' want to say that your project is dangerous, but to say that the general idea could be dangerous !

So, about RM2 , no, it's absolutly impossible to use the RM2 as an IR detecteur, but if you have a PC in your home automation cluster which is alway on, it's esay to do using the windows simple home automation software, like GIRDER with the Modul USB-IURT

USB-IURT will detect your IR sending code, and you can then trig an API command on DOMOTICZ or else, or resend a converted code with USB-IURT or RM2

Don't forget that there willbe a lot of STICK windows 10 for less that 100 $ in the next months, and that that wil change all the home automation word , very quicky, about the price of a RASPBERRY PI !, and for the same cosumption !

Bests regards

Note: girder for linux doesn't works on LINUX
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by Raspberry Piet »

forumfab wrote:Hi Raspberry Piet ,

Yes, just think to add

Don't forget that if you use an ANDROID BOX TV , that can be "ROOT", you will be able to install LINUX on it using LINUX DEPLOY application APK ( on google Market)

That means that you will have a supplementary LINUX box where you can install a full of scripts, and other thinks

Bests regards
Ok, thanks. Linux on android is something what i have not thought of. Could be interesting for sure.

Today i got this message about firmware update for the RM2.
Don't know if it will break communication with RM BRIDGE, so i won't update it.
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 »

Hi Raspberry Piet,

This upgrade is just usefull to use with with the Cloud application ( e-control)

It's no usefull to use with RM BRIDGE, and RM COMMANDER BUILDER TOOLS

I don' know yet if it will have an impact on RM BRIDGE

I don't use myself the e-control application, regarding the fact that i control all my unit throught DOMOTICZ

I am very carrefull with the Cloud applications, regarding security purposes

With RM BRIDGE, and RM COMMANDER BUILDER TOOLS, we don't use the Cloud

Bests regards
solucionesmipc
Posts: 2
Joined: Friday 03 July 2015 6:17
Target OS: Linux
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by solucionesmipc »

Hi:

you should try to do with these devices http://www.geeklink.com.cn/english/yk.html http://www.geeklink.com.cn/products/newen.html

these devices supports cheap battery extensions to have multiroom IR RF automation

Greetings

Luis
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 »

Hi all Domoticz user

We did add a web builder application that will let you create, send, manage codes for RM BROADLINK with just Normal URL API

http://leffab.wix.com/domo-assist#!web-builder/c73a

http://leffab.wix.com/domo-assist Then button "web builder application"

Enjoy !

Bests regards
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by Raspberry Piet »

forumfab wrote:Hi Raspberry Piet,

This upgrade is just usefull to use with with the Cloud application ( e-control)

It's no usefull to use with RM BRIDGE, and RM COMMANDER BUILDER TOOLS

I don' know yet if it will have an impact on RM BRIDGE

I don't use myself the e-control application, regarding the fact that i control all my unit throught DOMOTICZ

I am very carrefull with the Cloud applications, regarding security purposes

With RM BRIDGE, and RM COMMANDER BUILDER TOOLS, we don't use the Cloud

Bests regards
forumfab,

Regarding security:
My RM PRO is accessible from outside WAN while i never opened ports in my router.
This is user friendly for users of the e-control app but i don't like it.
Have to investigate how to block this by my router.

I just checked the web builder application, i can't get it working. When i fill in the ip address and port it returns: ERROR: HTTP/404
(With RM COMMANDER BUILDER TOOLS it still does work)
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by ThinkPad »

What about sniffing the traffic from this device with Wireshark?

The solution with a Android device being permanently in your network is a nice workaround for now, but shouldn't it be possible to intercept the traffic being send to the RM ?
I am not active on this forum anymore.
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 »

Raspberry Piet wrote:
forumfab wrote:Hi Raspberry Piet,

This upgrade is just usefull to use with with the Cloud application ( e-control)

It's no usefull to use with RM BRIDGE, and RM COMMANDER BUILDER TOOLS

I don' know yet if it will have an impact on RM BRIDGE

I don't use myself the e-control application, regarding the fact that i control all my unit throught DOMOTICZ

I am very carrefull with the Cloud applications, regarding security purposes

With RM BRIDGE, and RM COMMANDER BUILDER TOOLS, we don't use the Cloud

Bests regards
forumfab,

Regarding security:
My RM PRO is accessible from outside WAN while i never opened ports in my router.
This is user friendly for users of the e-control app but i don't like it.
Have to investigate how to block this by my router.

I just checked the web builder application, i can't get it working. When i fill in the ip address and port it returns: ERROR: HTTP/404
(With RM COMMANDER BUILDER TOOLS it still does work)

Hi Raspberry Piet,

Did you remove the RM BRIDGE 1.0.0 and install the version 1.2.0 witch is on the google market

If you want to use the WEB BUILDER APPLICATION, you need to install the version 1.2.0

About security , with the version 1.0.0 and the RM COMMANDER BUILDER TOOLS, nobody can access to your system, in anyway , with the WEB BUILDER APPLICATION, you're dependant of the internet, and all he classic risk and problem of internet and web application , the RM BRIDGE is not involved in this risk !

For my own use i am using the RM COMMANDER BUILDER TOOLS, and of course, with this fisrt genenation i have to build the code myself and transfert them on LINUX home automation application , but it's not difficult, and not very long

With the WEB BUILDER APPLICATION ( second generation tools) , nothing to transfert, the code are inside the ANDROID BOX TV, or the phone ), but with the risk

IT's under your own choice , and we can't do anything for that ( and any body can do anythink for that, the web is become a full risk organisation )

If, it's not a problem for you to transfert the code inside your LINUX application instead of using direct URL API, keep RM COMMANDER BUILDER TOOLS !

Bests regards
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 »

ThinkPad wrote:What about sniffing the traffic from this device with Wireshark?

The solution with a Android device being permanently in your network is a nice workaround for now, but shouldn't it be possible to intercept the traffic being send to the RM ?

Hi ThinkPad,

There is no traffic between the WEB BUILDER APPLICATION and the RM BRIDGE in the general term , the is just sending command that are discribed on the google market

It's not usefull to install sophisticate software, to listen "the exchange", just read the documentation ( for version 1.2.0), the version 1.0.0 is not open at all !

But the documentation is there to inderstood how the sytem is working, but don't forget that those tools are protected by licences , and that it's absolutly forbiden to extract, copy, use part, of codes inside other applications without the agreement of the authers and BROADLINK ( for the SDK)

Thanks in advance to read the licences!

Bests regards
dijkdj
Posts: 63
Joined: Saturday 07 March 2015 22:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by dijkdj »

Hi Forumfab. Real nice work you did there. I know that the RM PRO is meant for sending and learning, but I am really interested in recieving.

Would is be possible to be in learn mode al the time and just forward the RAW data to an app that can decode it? This way IR sensors/Weather sensor etc would be possible to read out. This would be really added value.
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 »

dijkdj wrote:Hi Forumfab. Real nice work you did there. I know that the RM PRO is meant for sending and learning, but I am really interested in recieving.

Would is be possible to be in learn mode al the time and just forward the RAW data to an app that can decode it? This way IR sensors/Weather sensor etc would be possible to read out. This would be really added value.
Hi dijkdj,

Sorry but i don't undersatand what you want to do ?

Do you want to trig a function from an IR command ?
What is the goal of your demand

Can you explain what you try to get

The RM2 is not an USB IURT it's just a recorder and sender of code IR or Radio , you can't trig anything with it
On which os are you working , windows, Linux, or else ?

Bests regards
dijkdj
Posts: 63
Joined: Saturday 07 March 2015 22:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by dijkdj »

Working with Android and Raspberry Pi (raspian).

Would indeed like a IURT functionality to control Domoticz with a remote. As well I would like to use it as an RF reciever for weather sensors and PIRs.

So as it records, can it share the data with an app that would do the triggering? To if it recieves weather info, could another Android app analyze the recording data and transfer it to domoticz? Maybe I just don't understand how it works, But in my mind, if it can listen for a while (recording), it can also listen for a long time.(recieving)
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 »

dijkdj wrote:Working with Android and Raspberry Pi (raspian).

Would indeed like a IURT functionality to control Domoticz with a remote. As well I would like to use it as an RF reciever for weather sensors and PIRs.

So as it records, can it share the data with an app that would do the triggering? To if it recieves weather info, could another Android app analyze the recording data and transfer it to domoticz? Maybe I just don't understand how it works, But in my mind, if it can listen for a while (recording), it can also listen for a long time.(recieving)
Hi dijkdj,

Sorry, but the RM2 doesn't works like that, in fact the RM2, doesn't recognise the code that will be record during the recording phase, it's just record the raw code, and then, you can send the same code, it's just working like a voice recorder !
Ans as you know, a voice recorder don't understand what your are saying during the recording time ...!

There is a software witch is able to do that, it's GIRDER

http://www.promixis.com/

GIRDER is able to recognise IR codes, and transform them, in command, like URL API, or else

The problem, is that this software is very slow on a RASPBERRY PI under linux
It's fully working on windows
I am using it on a windows XP old machine that is always alive for this case of job
I am using an old GIRDER 3.3 with an USB IURT modul

http://www.usbuirt.com/

But there is no driver for USB IURT under linux , you can use an other modul infrared

http://www.promixis.com/pir-1.php

I don't know anything about your budget , but it's the best way do realise your project

Don't forget that you can find little windows 10 HDMI computer for less than 100 $, and some little low consumption windows 8 for the same price on ebay that will accept to run GIRDER

Don't forget that windows 10 will have a great futur in home automation application in the next month regarding the price of those low cosumption hardware pc

Forget your project with BROADLINK RM2, it's impossible , idem with any ANDROID solution , the USB port are very difficult to use, and ther is few drivers , for IR modules !

Idem for linux , the raspberry Pi is to slow for that, and there no drivers
More, in my point of view LIRC is a bad solution , the reaction is different on each configuration and no stable in the time !

Bests regards
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by Raspberry Piet »

ThinkPad wrote:What about sniffing the traffic from this device with Wireshark?
Thanks for suggestion. Have to find out how to setup wireshark. (Pc is connected with NIC to my router)
I think it might also be possible to let my Tomato router sniff the network traffic, maybe that will be easier.

forumfab wrote:Did you remove the RM BRIDGE 1.0.0 and install the version 1.2.0 witch is on the google market
Ah, no i didn't.
forumfab wrote:About security , with the version 1.0.0 and the RM COMMANDER BUILDER TOOLS, nobody can access to your system, in anyway
Yes, i trust the RM BRIDGE/RM COMMANDER BUILDER TOOLS, but what i meant is that by default the RM-PRO seems to make connection from outside possible, this is something i don't trust.

I read i have to find a way to downgrade the firmware of my RM PRO then access from outside is not possible.
https://blog.yibi.org/2015/04/15/firmwa ... ink-rm-pro
forumfab wrote:More, in my point of view LIRC is a bad solution , the reaction is different on each configuration and no stable in the time !
My LIRC setup is stable for sure, although it doesn't work with all my remotes. (9 from 10 work)
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by ThinkPad »

Raspberry Piet wrote:
ThinkPad wrote:What about sniffing the traffic from this device with Wireshark?
Thanks for suggestion. Have to find out how to setup wireshark. (Pc is connected with NIC to my router)
I think it might also be possible to let my Tomato router sniff the network traffic, maybe that will be easier.
[...]
I did it by using my laptop. Wireless connected to my own network. To the Ethernet port i connected an old router which i let the device (a D-Link smartplug in that situation) connect to.
Setting up an ad-hoc network in Windows for the smartplug to join didn't work. The ad-hoc network Windows creates isn't visible for every device, because of some weird implementation of this in Windows.

When setup you can use filters in Wireshark (filter on the IP of the Broadlink), otherwise you will see also the traffic of your PC itself.

But don't get your hopes up, when i was sniffing the smartplug the communication was first readable but after a few requests got encrypted with TLS. Chances are that the Broadlink is also encrypting the traffic 'back home'. But if you don't sniff it, you don't know :D

Topic moved to 'Compatibility' subforum btw.
I am not active on this forum anymore.
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by ThinkPad »

If you are handy you could also build something like this: http://colinbookman.com/arduino_ir_blaster/
Maybe that sketch can be modified so you can just call URL's like: http://iparduino?cmd=poweron

See also similar projects: https://www.google.nl/search?q=arduino+ ... r+ethernet
I am not active on this forum anymore.
torinnguyen
Posts: 1
Joined: Thursday 23 July 2015 3:16
Target OS: OS X
Domoticz version:
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by torinnguyen »

I have successfully built a Tasker plugin that works directly with Broadlink RM2.
It doesn't even have to go through Broadlink eControl app.
It will also import all your Broadlink app data once during the first time setup so you don't have to re-learn all your IR/RF codes all over again.

Here's a video demo https://www.youtube.com/watch?v=Wj9GFhuhelM

It is available now on Google Play Store http://bit.ly/rm_tasker
7-days trial version is also available
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Using BROADLINK RM2 on DOMOTICZ

Post by Raspberry Piet »

torinnguyen wrote:I have successfully built a Tasker plugin that works directly with Broadlink RM2.
It doesn't even have to go through Broadlink eControl app.
It will also import all your Broadlink app data once during the first time setup so you don't have to re-learn all your IR/RF codes all over again.

Here's a video demo https://www.youtube.com/watch?v=Wj9GFhuhelM

It is available now on Google Play Store http://bit.ly/rm_tasker
7-days trial version is also available
Thank you for posting, this RM Tasker plugin looks promising, easy to use also.
I'm a big fan of Tasker, so this is a nice addition to use altough it is not directly related for use within Domoticz.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest