-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Broadlink Rm2/pro #236
Comments
Great, have you got this working fine? |
No, sorry to say I just Googled: "Broadlink IR/RF blaster API" and it seemed descent after quickly reading. It allows HTTP calls, which is what you are after. |
Yeah I've already read that article, got to the point when I needed an a droid device as a other bridge and stopped reading. |
Yeah, even this github project requires an Android intermediary device: https://github.com/beckyricha/Broadlink-RM-SmartThings-Alexa Sorry for the joykill! |
I might have to write something to do this! |
If you can read Chinese (or translate) here is the SDK: https://drive.google.com/file/d/0B65vYtefY0h2aE1LdWF5RG9sX00/view |
My Chinese is a little rusty. |
I spun up an android vm as I don't own an android and ran the bridge in that. The I used rm commander tools to generate the code. My home automation system then runs a batch file that contains the code. So far it works pretty well |
Working via Android intermediary device and python broadlink also |
anyway to convert https://github.com/mjg59/python-broadlink to java ? |
+1 for a 'native bridge' -- the android tasker plugin doesn't work here anyway.... The broadlink is otherwise pretty nice, and very cheap; handles 433Mhz devices too which is quite cool. |
@tyjtyj That is the basis of what I am looking into to be able to control a Broad link. The only thing is, what to control and how. It is an IR/RF/SmartPlug/SmartPowerStrip controller. |
Add me to the list of users looking for this! I've used the RM bridge management Page to learn IR device codes |
There are some python scripts kicking about but I haven't had the time to review them all yet. This should be possible. It seems overkill to need an android running tasker for this to work. |
currently I am using broadlink-mqtt (https://github.com/eschava/broadlink-mqtt), another excellent project based on the python-broadlink. |
Farhanito, Can you give us any more detailed information on this? I've never used mqtt before. Do I need something running a mqtt broker? Alexa > Habridge > Mqtt broker > Broadlink ? |
hi @merlin051, yes, I'm running an mqtt broker (mosquitto) on the same machine (RaspberryPi) as HA-Bridge. after that you can tell Alexa to publish commands to that topic via HA-Bridge |
I think I'm missing something, and i think I've misunderstood what MQTT(Mosquitto) does. I've got mosquitto installed and running as a service on my windows box( same machine running HA Bridge) I was expecting some sort of interface where i can map devices/commands? I've got python installed, i use it for my Orvibo s20 control scripts, not sure how I can feed the broadlink script you pointed out into my environment? any guidance much appreciated. |
Not sure if the new version of the HA-Bridge helped but I can now send the links for IR signals to the RM Bridge ( https://play.google.com/store/apps/details?id=de.fun2code.android.rmbridge) |
@tuicemen i really want to try and avoid setting up an adroid bridge to act as a middleman in an already complicated setup. |
@merlin051 As would I, but setting up another server using MQTT(Mosquitto) is even more complicated I feel. |
@merlin051 here's my broadlink-mqtt config:
after that, you can try publishing an mqtt message for example
this will make your rm goes into learning mode, ready to copy your remote button.
to execute the command, publish this message
good luck, |
@farhanito thank you for your help. I now have everything up and running. although I couldn't get the MQTT native stuff to work in HA Bridge. so I've just used a custom execution and [mosquitto_pub.exe] like this as a command: C:\Program Files (x86)\mosquitto\mosquitto_pub.exe -t rm/soundbar/HDMI2 -m auto any chance you can screenshot one of your devices config pages for me? |
@farhanito sounds like you have mastered it! a screenshot of your settings would be great! i've been racking my brain how to integrate my RM PRO also. i'm using FIBARO HC2 and everyone i have communicated with, said id have to install home assistant as "another" bridge just get this thing communicating with my two google home's... |
@farhanito are you talking about this python module "eclipse/paho.mqtt.python" or this one "eclipse/paho.mqtt.java"? |
@Matt8119 since I installed it using pip it's got to be paho.mqtt.pyhton I think. |
@bwssystem |
Nothing yet, still working on 5.0.0 issues |
So, I am still having a moment here on whether this fits in this space. The ha-bridge wants to be able to find and call concrete things. In the RM2/3 world, you have to build these through learning and saving the ir packets. The ha-bridge is not a device level controller as many home auto systems already support device level. |
I don't think the Bridge needs to learn and save there are any number of programs one can use to find the IR or RF packets. |
@bwssytems FYI these Broadlink devices use the QUIC protocol https://en.wikipedia.org/wiki/QUIC |
As has been mentioned, this only works for InfraRed devices, so if the HA bridge could handle it with RF, that would be awesome. Cheers! |
So, OpenHAB supports Broadlink/RM2 and I have started the OpenHAB implementation. Since this is device level, I will leave that up to OpenHAB. |
So we'll only see this if we use OpenHAB? |
Yes. I'm trying to have the bridge be a bridge between it's Hue API and other Home Automation systems. |
Other automation systems meaning OpenHAB, or nothing else? That's disappointing. I guess it's time to look at the RM bridge, because after trying OpenHAB, I don't think it's anywhere near polished enough to consider switching to. Just my opinion, of course, and thanks for your work. |
OpenHAB as I understand it has its own hue interface so I'm not sure why OpenHAB users would need special HA-Bridge interfacing. Add me to the disappointed list. I don't think most users were expecting the Bridge to learn and save IR and or RF codes we ( I ) just wanted to be able to send codes already found to the Broadlink directly with out requiring another server. |
The unfortunate thing is there are a dozen different types of devices that everyone one wants and the work is already done in other systems. Just trying to get the most bang for the buck in additions. I'll keep this on the list and will look at putting this in. |
Thanks for that! You done a great job on HA-Bridge and I don't think you should be improving someone else's work! |
I had a look for the QUIC protocol and found this for Java: |
There is a complete broadlink package for java already. https://github.com/mob41/broadlink-java-api |
This will be in v5.2.0. The next release candidate of 5.2.0RC6 will include it for testing. |
Awesome!! You just made my day, week, month, & year! |
I've switched to using hass.io and emulated_hue which still works with my Echos. I've got a friend with Google home and local hue traffic is now disabled, it's all cloud based. |
@bwssytems when will RC6 be available? |
New Jar is out in thread #863 |
OK Have the new jar but unsure how the Broadlink is supported. |
Tuicemen any progress wrt testing this jar? |
I've not been able to do to much as I've been busy with other things. |
@quadhammer Have you tried the RC test jar yet? Want the vocal members of this request to test the implementation. |
Everyone who posted to this thread should be testing the RC build. If that's the case bwssystems might as well stop trying to implement it. |
Ill have a look at testing it tonight after work |
@bwssytems Yes, I've tested it with no luck. I'll respond on #863 |
Anyone know how to get the bridge to talk to a Broadlink IR/RF blaster?
The text was updated successfully, but these errors were encountered: