AlexanderBabel / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
46 stars 11 forks source link

Unable to discover BroadLink RMmini3 #71

Open suhajda3 opened 4 years ago

suhajda3 commented 4 years ago

Hello,

I just wanted everyone know what I have been struggling for a day. I simply couldn't make my new RMmini3 to be discovered. Device discovery wouldn't find the device and even with the "hosts" config set up correctly the device hasn't been discovered.

As it turns out the problem is with the new BroadLink app. If you pair your RM3 with the new BroadLink app homebridge-broadlink-rm, python-broadlink won't discover it. You have to reset the device and set it up with the old e-Control app. After that everything will work as normal. : )

Hope this will help someone...

Zanonale commented 4 years ago

Having the same problem, the plugin dont autodetect the RM mini 3 and if i add the learn button manualy with the hosy key i get error: device not found.

ericdhkim commented 4 years ago

I'm running into the same issue. Someone on Reddit Homebridge suggested I try this fork as I was getting a similar error with a learnSwitchState: undefined message using the main broadlink rm plugin. The OP said it has to do with using the Broadlink app to configure the device originally and not e-Control. Haven't tested that myself to check as I need the Broadlink app to be able to connect my device to Google Assistant as I use that primarily in my house, even more than Apple Home. Hoping this can be patched possibly to be able to use the plugin even if you used Broadlink app to originally configure the device.

suhajda3 commented 4 years ago

I doubt that this can easily be patched. I assume when setting up the device with the new Broadlink app Broadlink disables the "standard" communication on the device that is why this plugin (and all open source plugins) doesn't work. The only way would be for Broadlink to reenable this communication or provide an API for their new service.

Why don't you use Homebridge to Google Smart Home for Google Assistant? This way you wouldn't be limited to the new Broadlink app.

ghost commented 4 years ago

Any news guys?

dvcrn commented 4 years ago

Upstream recently added support for a few more models in broadlinkjs. I made a PR to update the version - https://github.com/AlexanderBabel/homebridge-broadlink-rm/pull/79

Give that a go and see if it fixes anything

npm i -g git+ssh://git@github.com:dvcrn/homebridge-broadlink-rm.git

(I thought I have a RMmini3 but the plugin identified it as Broadlink RM3 Pro Plus after the version bump)

Changelog here

Spanishu commented 4 years ago

Hi, Would love to give it a try. Does that mean that I should uninstall the previous Version of the plug-in first?

dvcrn commented 4 years ago

Yeah! Or just fork yourself and update the js version 🙂

If you have permission problems, install as sudo with --unsafe-perm flag. Also the usual PSA to not run things you don't know as sudo 😛

Spanishu commented 4 years ago

Just gave it a run but stuck here The authenticity of host 'github.com (140.82.118.4)' can't be established.bccb1e RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. [..................] / rollbackFailedOptional: verb npm-session c202f9d41ebccb1e not very familiar with npm

Does this solve as well for the issue with the 5f36?

dvcrn commented 4 years ago

Ah yeah if you don't have git with ssh setup. Try https:

npm install -g git+https://git@github.com:dvcrn/homebridge-broadlink-rm.git
Spanishu commented 4 years ago

:( nope still `The authenticity of host 'github.com (140.82.118.4)' can't be established.ba23dc RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. [..................] / rollbackFailedOptional: verb npm-session 129d7cb6d0ba23dc npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/dvcrn/homebridge-broadlink-rm.git npm ERR! npm ERR! Host key verification failed. npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-13T08_44_30_521Z-debug.log `

Spanishu commented 4 years ago

Would have loved to test it, but I am not able to install via the process you have mentioned. Have done some research and not able to resolve. If here is any other proceedure I could use to try please let me know

Spanishu commented 4 years ago

Just for information the fix of @dvcrn does not solve for the 5f36 devices. There is a thread now open on the broadlink-rm plugin to fix this. the devices require a specific header which is not yet part of the broadlinkjs script.

Spanishu commented 4 years ago

take a look https://github.com/lprhodes/homebridge-broadlink-rm/issues/600