Using BROADLINK RM2 on DOMOTICZ
Moderator: leecollings
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi all,
The RM PRO is a new version of the RM2 and RM2 PRO
That why the old SDK from BROADLINK, isn't compatible with The RM PRO (new version)
There is now a new RM BRIDGE that is fully compatible with the RM PRO and both RM 2 and RM2 PRO ( witch is not and RM PRO)
here is the link to download the new version 1.2.1
http://rm-bridge.fun2code.de/
This new version 1.2.1 must be use with "manage code application which is at the same link adress
Take care of one think, if you are using the version 1.2.0 with the old product RM2 and RM2 PRO, you must save yours codes before instaling the new version 1.2.1 and using the new "manage code" application
After installation reload the codes that you did save before !
Don't use the old "manage code " application with the version 1.2.1 , the old application is attach to the version 1.2.0
Ok for the RM COMMANDER application i did not modify it, so you'll not be able to use it with the RM PRO
Remind that our applications RM BRIDGE and RM COMMANDER have been created with the full BROADLINK agreement
Don't forget to that the application that have been mention by Zycker is using the BROADLINK SDK (wich is not free, not open, not on GNU ) that mean that they are using the CLOUD support
Our application are fully independant of the CLOUD
No-sophisticate API command with the RM BRIDGE, just one command to send the code , and just the use of the "manage code" application on line or of line to create, modify, save, import, the codes !
The RM BRIDGE is fully Free
The RM COMMANDER is an other tools, it have been created to be use on Windows and Linux Of line, in full security
Bests regards
Bests regards
The RM PRO is a new version of the RM2 and RM2 PRO
That why the old SDK from BROADLINK, isn't compatible with The RM PRO (new version)
There is now a new RM BRIDGE that is fully compatible with the RM PRO and both RM 2 and RM2 PRO ( witch is not and RM PRO)
here is the link to download the new version 1.2.1
http://rm-bridge.fun2code.de/
This new version 1.2.1 must be use with "manage code application which is at the same link adress
Take care of one think, if you are using the version 1.2.0 with the old product RM2 and RM2 PRO, you must save yours codes before instaling the new version 1.2.1 and using the new "manage code" application
After installation reload the codes that you did save before !
Don't use the old "manage code " application with the version 1.2.1 , the old application is attach to the version 1.2.0
Ok for the RM COMMANDER application i did not modify it, so you'll not be able to use it with the RM PRO
Remind that our applications RM BRIDGE and RM COMMANDER have been created with the full BROADLINK agreement
Don't forget to that the application that have been mention by Zycker is using the BROADLINK SDK (wich is not free, not open, not on GNU ) that mean that they are using the CLOUD support
Our application are fully independant of the CLOUD
No-sophisticate API command with the RM BRIDGE, just one command to send the code , and just the use of the "manage code" application on line or of line to create, modify, save, import, the codes !
The RM BRIDGE is fully Free
The RM COMMANDER is an other tools, it have been created to be use on Windows and Linux Of line, in full security
Bests regards
Bests regards
-
- 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
Hi all
I just got an RM PRO and reading this thread.
I installed the RM Bridge app on an android device and got codes working.
What I was trying to understand is if it's needed and mandatory that an android device is always on and with wifi always connected to do this working.
I have Domoticz on a Raspberry and I didn't understood if it can works using RPi as a Bridge.
Thanks
I just got an RM PRO and reading this thread.
I installed the RM Bridge app on an android device and got codes working.
What I was trying to understand is if it's needed and mandatory that an android device is always on and with wifi always connected to do this working.
I have Domoticz on a Raspberry and I didn't understood if it can works using RPi as a Bridge.
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
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi woody4165,woody4165 wrote:Hi all
I just got an RM PRO and reading this thread.
I installed the RM Bridge app on an android device and got codes working.
What I was trying to understand is if it's needed and mandatory that an android device is always on and with wifi always connected to do this working.
I have Domoticz on a Raspberry and I didn't understood if it can works using RPi as a Bridge.
Thanks
You need to have an android device on all the time !
The RM BRIDGE is install on the Android, and there is no other way to access to the BROADLINK RM
That why in my point of view the best solution is to install the RM BRIDGE on an ANDROID TV BOX ( you can get one for 50 us dollars )
By the way with an ANDROID TV BOX, you could install PAW SERVER,
With PAW SERVER it will be possible to let your domoticz speaking with simple URL command
Bests regards
-
- 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
Thanks
so I'll wait for an android tv device...
in the mean time i'll play with a tablet.
The paw server is additional to the rm bridge, right?
Where can I find a list of url command that I can use and the functionality?
Thanks
so I'll wait for an android tv device...
in the mean time i'll play with a tablet.
The paw server is additional to the rm bridge, right?
Where can I find a list of url command that I can use and the functionality?
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
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi woody4165,woody4165 wrote:Thanks
so I'll wait for an android tv device...
in the mean time i'll play with a tablet.
The paw server is additional to the rm bridge, right?
Where can I find a list of url command that I can use and the functionality?
Thanks
PAW SERVER is an other application witch have no direct relation with RM BRIDGE
The only relation link, is with the developper Jochen RUEHL ..
I did works with Jochen RUEHL for the BROADLINK TOOLS applications in fact
Here is the link on the market
https://play.google.com/store/apps/deta ... rver&hl=fr
When you will be ready with you Android TV BOX, i'll help you with the speaking solution on PAW SERVER, if you want
Bests regards
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi woody4165,
Regarding the fact that PAW SERVER can be use without RM BRIDGE, here is a first explonation that i did quickly write to give you a simple idea how it works
Bests regards
http://leffab.wix.com/domo-assist#!paw-server/luvt0
Regarding the fact that PAW SERVER can be use without RM BRIDGE, here is a first explonation that i did quickly write to give you a simple idea how it works
Bests regards
http://leffab.wix.com/domo-assist#!paw-server/luvt0
-
- 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
Finally I got it work!
I saw that on the e-Control app I can see the temperature measured by the RM2.
Is there a way to get it ?
Thanks
I saw that on the e-Control app I can see the temperature measured by the RM2.
Is there a way to get it ?
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
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi woody4165,woody4165 wrote:Finally I got it work!
I saw that on the e-Control app I can see the temperature measured by the RM2.
Is there a way to get it ?
Thanks
Did you installed the RM BRIDGE on an ANDROID TV BOX or on A Phone ?
Did you test the PAW SERVER application ?
So the answer about the temperature measured by the RM2
Of course it's possible but it's difficult with just the RM BRIDGE, i'll try to found a solution for you with a script , but it will take a while .
In all the case you will need to have an access in LINUX side so, with a consol like PUTTY
Do you know how to use PUTTY ?
Bests regards
-
- 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
Thanks forumfab
I have it on an Android TV box and I have not installed the paw server at this moment.
Yes I know how to use terminal and linux.
Is it needed the paw server for this?
I have it on an Android TV box and I have not installed the paw server at this moment.
Yes I know how to use terminal and linux.
Is it needed the paw server for this?
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
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi woody4165,woody4165 wrote:Thanks forumfab
I have it on an Android TV box and I have not installed the paw server at this moment.
Yes I know how to use terminal and linux.
Is it needed the paw server for this?
Not at all Woody, i'll just have to prepare a little script and explain how to use it.
Let me one or to weeks, i don't have a lot of time at the moment, that's all
Bests regards
-
- 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
Thanks! I'll wait... [WINKING FACE]
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
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi woody4165,woody4165 wrote:Thanks! I'll wait... [WINKING FACE]
Here is the explanation with the topic
http://leffab.wix.com/domo-assist#!get- ... -rm2/k4dz6
Bests regards
Please Let's me know the result for you
-
- 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
Thanks.
Worked in a few minutes, and since I have two RM2, just made two .txt files and one .sh and it's working fantastically.
The only things, but is not related to the script, is that the temp measured by the RM2 is not so real.
I have temp sensor (Netatmo and DG800) just aside the RM2 and one is measuring 1°C degree more, the other 4°C more.
They are both upgraded to v20022 that the e-Control app give me as latest fw.
But your script is simple and works well.
Thanks again.
Worked in a few minutes, and since I have two RM2, just made two .txt files and one .sh and it's working fantastically.
The only things, but is not related to the script, is that the temp measured by the RM2 is not so real.
I have temp sensor (Netatmo and DG800) just aside the RM2 and one is measuring 1°C degree more, the other 4°C more.
They are both upgraded to v20022 that the e-Control app give me as latest fw.
But your script is simple and works well.
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
-
- 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
Now I've tried with crontab but it doesn't seem to work for me.
I thought was the "@refresh.txt" without path since was running and added the complete path like "@/home/pi/domoticz/scripts/refresh.txt".
Working manually, but not via crontab
This is the crontab row
I don't get anything in /var/log/cron.log even if I have modified the /etc/default/cron adding EXTRA_OPTS="-L 15"
The only thing I get as log is in the /var/log/syslog probably related to this
but I'm not sure
Any idea where I'm doing wrong?
I thought was the "@refresh.txt" without path since was running and added the complete path like "@/home/pi/domoticz/scripts/refresh.txt".
Working manually, but not via crontab
This is the crontab row
Code: Select all
1 * * * * /home/pi/domoticz/scripts/returntemp.sh
The only thing I get as log is in the /var/log/syslog probably related to this
Code: Select all
May 13 19:40:32 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Fri May 13 19:42:02 2016 [try http://www.rsyslog.com/e/2007 ]
Any idea where I'm doing wrong?
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
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
Hi woody4165,woody4165 wrote:Now I've tried with crontab but it doesn't seem to work for me.
I thought was the "@refresh.txt" without path since was running and added the complete path like "@/home/pi/domoticz/scripts/refresh.txt".
Working manually, but not via crontab
This is the crontab rowI don't get anything in /var/log/cron.log even if I have modified the /etc/default/cron adding EXTRA_OPTS="-L 15"Code: Select all
1 * * * * /home/pi/domoticz/scripts/returntemp.sh
The only thing I get as log is in the /var/log/syslog probably related to this
but I'm not sureCode: Select all
May 13 19:40:32 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Fri May 13 19:42:02 2016 [try http://www.rsyslog.com/e/2007 ]
Any idea where I'm doing wrong?
there is no relation between the script and the fact that you could'nt run it with CRON command
If the scripts is working manually, that means that the script is correct
When you said that it's working manually , i suppose that you mean fully working, with the changment inside the virtual thermosat ?
About the CRON problem, it's a know problem with DOMOTICZ, and i didn't try it myself
Don't forget that there is no RTC in a raspberry PI
I think that it's should be better to place a request on une domoticz forum, in the front page, or in the bug page !
I'll try myself, but i did never user the CRON command on domoticz before ...
Bests regards
Could you confirm that the script is fully working before
-
- 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
The script seems to work fine manually.
I have several shell script in crontab and all are working fine.
So I need to understand where is the issue.
Thanks again
I have several shell script in crontab and all are working fine.
So I need to understand where is the issue.
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
-
- 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
Now also the crontab it's working
changed the
to
and did a chmod a+x to all the files involved, .sh and .txt
And work fine every minute updating the Domoticz idx of both RM2
changed the
Code: Select all
1 * * * * /home/pi/domoticz/scripts/returntemp.sh
Code: Select all
* * * * * /home/pi/domoticz/scripts/returntemp.sh
And work fine every minute updating the Domoticz idx of both RM2
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
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
hi woody4165,woody4165 wrote:Now also the crontab it's working
changed thetoCode: Select all
1 * * * * /home/pi/domoticz/scripts/returntemp.sh
and did a chmod a+x to all the files involved, .sh and .txtCode: Select all
* * * * * /home/pi/domoticz/scripts/returntemp.sh
And work fine every minute updating the Domoticz idx of both RM2
Ok, great then.
That a frequent problem in linux to forget the chmod for all the files
So everything is ok know ?
Bests regards
-
- 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
Yes
I'm having problem with one of the two RM2, getting most of the time 0 as temp and this error.
I'm getting also on manual launch and this is the first of the two RM2 in the .sh
But most probably it's a problem of the RM2,I will try to reset and test it again tomorrow
I'm having problem with one of the two RM2, getting most of the time 0 as temp and this error.
Code: Select all
"code":-103,"msg":"Refresh rm2 status failed"
But most probably it's a problem of the RM2,I will try to reset and test it again tomorrow
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
-
- Posts: 68
- Joined: Monday 25 August 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Using BROADLINK RM2 on DOMOTICZ
ok, i'll did write a second script that transform the bash command to an sh command
This script is call starttemp.sh ( it take place it in the same folder )
it's the two following line
cd /home/pi/domoticz/scripts/
bash returntemp.sh
then i did insert the CRON following command in the crontab, with this command
sudo crontab -e
*/1 * * * * sh /home/pi/domoticz/scripts/starttemp.sh
And for me the script is working each minute
*/3 * * * * sh /home/pi/domoticz/scripts/starttemp.sh
for each 3 minutes
don't forget to restart the CRON service after modification with the following command service cron restart
And don't forget the chmod for this second starttemp script
Bests regards
This script is call starttemp.sh ( it take place it in the same folder )
it's the two following line
cd /home/pi/domoticz/scripts/
bash returntemp.sh
then i did insert the CRON following command in the crontab, with this command
sudo crontab -e
*/1 * * * * sh /home/pi/domoticz/scripts/starttemp.sh
And for me the script is working each minute
*/3 * * * * sh /home/pi/domoticz/scripts/starttemp.sh
for each 3 minutes
don't forget to restart the CRON service after modification with the following command service cron restart
And don't forget the chmod for this second starttemp script
Bests regards
Who is online
Users browsing this forum: No registered users and 1 guest