bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 198 forks source link

Support for Broadlink Rm2/pro #236

Closed merlin051 closed 6 years ago

merlin051 commented 7 years ago

Anyone know how to get the bridge to talk to a Broadlink IR/RF blaster?

merlin051 commented 7 years ago

I'm using the broadlink mqtt setup and couldn't be happier.

Simple mqtt client running and it just works, also windows friendly.

On 20 Mar 2017 10:59 p.m., "Matt8119" notifications@github.com wrote:

Having to install four different java files, On top of all the separate command line needed, seems a bit much just to control an ir/rf plug etc... I appreciate the input, but I'll stick with jeedom. Being, it's one program with only a separate plugin and the UI is just way more friendly vs all those command lines id need and jumping back and forth between Java files. I can just see something going wrong and not knowing how to remedy it, without to just start all over again....

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bwssytems/ha-bridge/issues/236#issuecomment-287924581, or mute the thread https://github.com/notifications/unsubscribe-auth/ACkXzax72PokMljoDCY3s_kSNNxVyRzkks5rnwTagaJpZM4KwOgk .

bwssytems commented 7 years ago

All, i am working on bringing this in with a java library i am contributing to, soon.....

ghost commented 7 years ago

@Matt8119 Hi, Sorry for the long reply, ive been super busy! Anyway, the method I have come up with is probably the simplist way to go at the moment. Yes I have mine up and running and it works flawlessly. I love it and its very handy. And it didnt cost much too. Think of jeedom being the android bridge for the other methods, then the commands from that go to ha bridge, but its all on the same pi. Anyway, when you say, but could you post a few examples of what your commands look like, do you mean the ha bridge ones or the jeedom code ones. Or the code that installed jeedom. Also, the method to make ha bridge start wouldnt work with me, I had to tweak the script thing a bit. Ill post the jeedom and ha bridge codes anyway, If you want different ones, just ask me jeedom ha bridge ha bridge multiple

If you just wanted to know about creating the ha bridge device, its very simple, all you do is paste the link you copied into the call like I did in the picture. Thats it. You dont have to select anything for the type. Anyway, thanks, Jev

N3ilG commented 7 years ago

@jevtheboss - Awesome, except I can't work out how to install ha bridge from the jeedom root. So i currently have a pi running jeedom and a pi running ha bridge. Can anyone help ? @bwssytems - your work is amazing = big thanks !! Regards - Neil

ghost commented 7 years ago

@N3ilG Okay sure. So basically, download putty and open it. Type in the ip of your pi and put in the user name root and the password Mjeedom96. Then, you have the terminal to your pi. Then, just run the same commands as you did to get ha bridge running on your other pi. For more help go here and use those commands.

farhanito commented 7 years ago

fyi, domoticz also has plugin for broadlink. http://www.domoticz.com/wiki/Plugins/BroadlinkRM2.html

and ha-bridge has great domoticz support.

ghost commented 7 years ago

@farhanito oh yeah, didn't see that. I discovered the jeedom way before the domoticz plugin was released. I tried domoticz first but yeah, seems like it works now. So if you want, yes you can use domoticz. It's a lot easier to install and its English. Jev

N3ilG commented 7 years ago

@jevtheboss - thanks for your help [again]. I think I installed it, but how do I access it - do I need to change a port ? Sorry I'm so dim !! Neil

N3ilG commented 7 years ago

@farhanito - is there an idiot's [me] guide to installing the Broadlink plug in for Domoticz ?

Regards - Neil

tuicemen commented 7 years ago

@bwssytems Any news you can share with us on the progress of the java library for this?

ghost commented 7 years ago

Hi @N3ilG Sorry for the late response. Anyway, yes you do need to change the port of ha bridge. Jeedom automatically installs to port 80 which is the default port and you don't need to type port 80, so you can access it at 192.168.x.xx. when the port is anything other than 80, you need to type it into the web address, so in the guide I pointed you to, it shows you how to run ha bridge on a different port somewhere. Change it to a port like 8080.Add that to your startup script and reboot. Now you should be able to access ha bridge from 192.168.x.x:8080. Hope this helps, Jev

bwssytems commented 7 years ago

Fixing bugs currently....

peadard commented 7 years ago

Not sure if anybody is watching this but Broadlink have released a new app IHC and it provides integration between the Amazon Echo and the Broadlink unit.

You have to enable the skill in the Alexa app and then you can discover the devices on the app.. https://www.youtube.com/watch?v=9zJajWNpgMA

tuicemen commented 7 years ago

I've run this but the skill only works for AV IR IHC will learn RF but the skill currently won't do them. TVs are the only things the skill works with properly but you can perform a work around so it finds other IR devices. to do this you have to tell IHC to add a TV then go through the Add process until you get to custom. Once done you can rename it DVD/SAT/Reciever.....

MyGreenBodhi commented 6 years ago

@bwssystem Great work on the bridge, any word on the progress for adding the broadlink to your bridge?

bwssytems commented 6 years ago

Nothing yet, still working on 5.0.0 issues

bwssytems commented 6 years ago

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.

tuicemen commented 6 years ago

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. The end user can place those in a on/off send. From what I understand a uid needs to be sent with the commands or the RM will ignore the call.

darth-hp commented 6 years ago

@bwssytems FYI these Broadlink devices use the QUIC protocol https://en.wikipedia.org/wiki/QUIC

quadhammer commented 6 years ago

"Not sure if anybody is watching this but Broadlink have released a new app IHC and it provides integration between the Amazon Echo and the Broadlink unit."

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!

bwssytems commented 6 years ago

So, OpenHAB supports Broadlink/RM2 and I have started the OpenHAB implementation. Since this is device level, I will leave that up to OpenHAB.

tuicemen commented 6 years ago

So we'll only see this if we use OpenHAB?

bwssytems commented 6 years ago

Yes. I'm trying to have the bridge be a bridge between it's Hue API and other Home Automation systems.

quadhammer commented 6 years ago

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.

tuicemen commented 6 years ago

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.

bwssytems commented 6 years ago

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.

tuicemen commented 6 years ago

@bwssytems

I'll keep this on the list and will look at putting this in.

Thanks for that! The way I see it the Broadlink is no different then the Harmony, Vera, or Hue hubs other Software systems have support for those and most likely pulled the code for HA-Bridge.

You done a great job on HA-Bridge and I don't think you should be improving someone else's work! Adding support for a software is not what you should be doing!(sorry just my opinion) those softwares should be adding support for the HA-Bridge. It isn't hard to add support for the HA-Bridge to a software if the developer is serious enough. I and a few others have done it. HA-Bridge will just get bloated with code that over 60% of users don't need or use if you keep adding support for other programs. I'm not sure why a user would stick with HA-Bridge if another system had the options they wanted. Sorry If it sounds like I'm coming down hard on you and all your hard work that's not my intention.

darth-hp commented 6 years ago

I had a look for the QUIC protocol and found this for Java: https://github.com/ssuman/Quic-Protocol https://github.com/TheoCabannes/Implementation-protocol-Quick

bwssytems commented 6 years ago

There is a complete broadlink package for java already. https://github.com/mob41/broadlink-java-api

bwssytems commented 6 years ago

This will be in v5.2.0. The next release candidate of 5.2.0RC6 will include it for testing.

tuicemen commented 6 years ago

Awesome!! You just made my day, week, month, & year!

merlin051 commented 6 years ago

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.

tuicemen commented 6 years ago

@bwssytems when will RC6 be available? I can't wait to test!

bwssytems commented 6 years ago

New Jar is out in thread #863

tuicemen commented 6 years ago

OK Have the new jar but unsure how the Broadlink is supported. Don't tell me I need another server app :(

alzzy commented 6 years ago

Tuicemen any progress wrt testing this jar?

tuicemen commented 6 years ago

I've not been able to do to much as I've been busy with other things. Since I've now about got them cleaned up I 'll spend more time on this. I have to look at port forwarding options for the Broadlink.

bwssytems commented 6 years ago

@quadhammer Have you tried the RC test jar yet? Want the vocal members of this request to test the implementation.

tuicemen commented 6 years ago

Everyone who posted to this thread should be testing the RC build. Currently it looks like only two of us are interested in its implementation. :(

If that's the case bwssystems might as well stop trying to implement it.

peadard commented 6 years ago

Ill have a look at testing it tonight after work

quadhammer commented 6 years ago

@bwssytems Yes, I've tested it with no luck. I'll respond on https://github.com/bwssytems/ha-bridge/issues/863