lprhodes / homebridge-broadlink-rm

Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
571 stars 284 forks source link

Buttons are there now - but no code is learning - RM3 Pro + (plus) #222

Open NoTrace-Kai opened 6 years ago

NoTrace-Kai commented 6 years ago

Hi there ...

First my RM3 Pro + won't be recognize by the plugin, after editing the index.js file it works. https://github.com/lprhodes/homebridge-broadlink-rm/issues/208

But now i can't get any key learned with the broadlink RM3 Pro + ... perhaps someone can help?

[2017-12-17 23:00:32] [Broadlink RM] Scan RF (scanning) [2017-12-17 23:00:32] [Broadlink RM] [Hold down the button that sends the RF frequency] [2017-12-17 23:00:35] [Broadlink RM] Scan RF (found frequency - 1 of 2) [2017-12-17 23:00:35] [Broadlink RM] [Keep holding that button!] [2017-12-17 23:00:53] [Broadlink RM] Scan RF (stopped - 20s timeout) [2017-12-17 23:00:54] [Broadlink RM] Scan RF (stopped)

Now i tried to learn a IR Code ... and also that is not working till now ... perhaps this can find the "problem"

[2017-12-17 23:43:23] [Broadlink RM] Learn Code (ready) [2017-12-17 23:43:33] [Broadlink RM] Learn Code (stopped - 10s timeout) [2017-12-17 23:43:33] [Broadlink RM] Learn Code (stopped) [2017-12-17 23:43:41] [Broadlink RM] Learn Code (ready) [2017-12-17 23:43:51] [Broadlink RM] Learn Code (stopped - 10s timeout) [2017-12-17 23:43:51] [Broadlink RM] Learn Code (stopped)

With the iPhone App I can get the Codes, but not over Apple Home/Homebridge.

Thanks for help ... CU Kai !

maydaymiao commented 6 years ago

I got it work finally,

  1. Click scan frequecy icon in home app. In the log, it will say [Hold down the button that sends the RF frequency]
  2. Press the button on your remote for a while, and the log will say [Scan RF (found frequency - 1 of 2)]
  3. Release the button from remote and click learn icon in home app
  4. Click the button from remote shortly
  5. You will see the HEX code from log
  6. Copy and paste the HEX code to http://tomeko.net/online_tools/hex_to_base64.php?lang=en1, and hit convert. Copy paste the base64 string to wherever you want (in my case, hassio config file)
NoTrace-Kai commented 6 years ago

Hey maydaymiao ...

It works ... thanks a lot ;) But with Homebridge I don't have to convert the HEX-Code, I just have to copy it to my config file ...

Great ;)

santiagos5 commented 6 years ago

hi, it doesn't work for me (rm pro+).. I have "learn" and "scan frequency" buttons and work for IR but not with RF. with iOS app works great RF. this is the log [28/1/2018, 10:21:49] [Broadlink RM] Scan RF (scanning) [28/1/2018, 10:21:49] [Broadlink RM] [Hold down the button that sends the RF frequency] [28/1/2018, 10:21:57] [Broadlink RM] Scan RF (found frequency - 1 of 2) [28/1/2018, 10:21:57] [Broadlink RM] [Keep holding that button!] //(at this point I release the button from remote and click learn icon in home app (scan frequency icon is still on) [28/1/2018, 10:22:01] [Broadlink RM] Learn Code (ready) //(at this point I click the button from remote, but no hex code appear) [28/1/2018, 10:22:10] [Broadlink RM] Scan RF (stopped - 20s timeout) [28/1/2018, 10:22:11] [Broadlink RM] Scan RF (stopped) [28/1/2018, 10:22:11] [Broadlink RM] Learn Code (stopped - 10s timeout) [28/1/2018, 10:22:11] [Broadlink RM] Learn Code (stopped)

any solution or alternatives?

OddPrim3 commented 6 years ago

@santiagos5 I ran into the same problem with my rm3 pro +
For some reason, I had to be exceptionally close to the unit with the remote in order to get the code. But after many failed attempts from sitting maybe 5 feet away. I put the remote within a foot of the device and did it again, and it produced the hex code.

santiagos5 commented 6 years ago

nothing.. it doesn't work..

santiagos5 commented 6 years ago

It works now!

OddPrim3 commented 6 years ago

@santiagos5 Did you get this to work with any consistency? I've only been able to get it to work one time. I consistently get the Found Frequency - 1 or 2. But I cant ever get it to learn a code. I tried with the way I thought i had it the first time and it didnt work. Tried with the way you had, and it doesnt work there either.

santiagos5 commented 6 years ago

Works great for me, after found frequency, quickly turn off scan frequency and turn on Learn code, then press botton on the remote within 10-30 cm. I tried two times and it works without problem..

matosbsb commented 6 years ago

Hi there,

I always get a different HEX code... any ideas?

santiagos5 commented 6 years ago

Rolling code can’t be used..

HajLender commented 6 years ago

Hello, in the console during the learning process gives me this HEX code:

b200ee01190b0d17180b190b0d170c17190b190b0d170c170d17190b190b0c17190b0d17180c180b190b0c170d170d170d170d160d170d170d17180b0d170d170d17180c0c170d170d171800014b9e31190b0d170c180c17190b0d17180b190b0d170c18180b190b0d170d170c17190b180c0c17190b0d17180b190b190b0c180c170d170d170d170c170d170d17180b0d170d170d17180b0d170d170d17190001629f31180b0d170d170d17190a0d17190b180b0d170d17190b190b0c170d170d17180b190b0d17180b0d17190b190b180b0d170d170d170d160d170d170d170c17190b0d170d170d16190b190b180c180b0d0001569f31180c0c170d170d17180b0d17190b180c0c170d17190b180c0c170d170d16190b190b0d17180c0c17190b180c180b0d170d170c170d170d170d170d160d17190b0d170d160d17190b180c180b190b0d0001569f31190b0c170d170d17190b0c18180b190b0c170d17190b190a0e160d170d17190b180b0d17190a0e16190b190b180c0c170d170d170d170d160d170d170d16190b0d170d170d16190b190b190a190b0d0001569f31180c0c170d170d17180b0d17190b180c0d160d17190b180c0c170d170d17180b190b0d17190b0c17190b190b180b0d170d170d170c170d170d170d170c18180b0d170d160d17190b190b180b190b0d0005dc00000000000000000000

This link http://tomeko.net/online_tools/hex_to_base64.php?lang=en1 , gives me this result:

sgDuARkLDRcYCxkLDRcMFxkLGQsNFwwXDRcZCxkLDBcZCw0XGAwYCxkLDBcNFw0XDRcNFg0XDRcNFxgLDRcNFw0XGAwMFw0XDRcYAAFLnjEZCw0XDBgMFxkLDRcYCxkLDRcMGBgLGQsNFw0XDBcZCxgMDBcZCw0XGAsZCxkLDBgMFw0XDRcNFwwXDRcNFxgLDRcNFw0XGAsNFw0XDRcZAAFinzEYCw0XDRcNFxkKDRcZCxgLDRcNFxkLGQsMFw0XDRcYCxkLDRcYCw0XGQsZCxgLDRcNFw0XDRYNFw0XDRcMFxkLDRcNFw0WGQsZCxgMGAsNAAFWnzEYDAwXDRcNFxgLDRcZCxgMDBcNFxkLGAwMFw0XDRYZCxkLDRcYDAwXGQsYDBgLDRcNFwwXDRcNFw0XDRYNFxkLDRcNFg0XGQsYDBgLGQsNAAFWnzEZCwwXDRcNFxkLDBgYCxkLDBcNFxkLGQoOFg0XDRcZCxgLDRcZCg4WGQsZCxgMDBcNFw0XDRcNFg0XDRcNFhkLDRcNFw0WGQsZCxkKGQsNAAFWnzEYDAwXDRcNFxgLDRcZCxgMDRYNFxkLGAwMFw0XDRcYCxkLDRcZCwwXGQsZCxgLDRcNFw0XDBcNFw0XDRcMGBgLDRcNFg0XGQsZCxgLGQsNAAXcAAAAAAAAAAAAAA

the plugin does not recognize this code. Can anybody help me what I am doing wrong?

Thank you in advance

Maxwell70 commented 6 years ago

Hi! My device is RM Pro+ with S/N: RM33220xxxxx I can't scan the RF code. After pressing the button "Scan Frequency" in the terminal appears the inscription: "Scan RF (RF learning not supported for device at undefined)" Please help!

santiagos5 commented 6 years ago

Have you add following Line? }else if(devtype == 0x279d){ // RM3 Pro Plus dev = new device(host,mac); dev.rm(true); return dev; }

santiagos5 commented 6 years ago

208

Maxwell70 commented 6 years ago

@santiagos5 There are these lines.

santiagos5 commented 6 years ago

Have you the latest release of homebridge broadlink? V. 2.7.4

Maxwell70 commented 6 years ago

@santiagos5 Yes, 2.7.4

lprhodes commented 6 years ago

Hi @Maxwell70

Can you please find the following line in node_modules/broadlinkjs-rm/index.js

Broadlink.prototype.genDevice = function (devtype, host, Mac){

Underneath that add console.log('DEV TYPE:', devtype)

Then run homebridge and send me the code that appears afterDEV TYPE: in the logs.

Maxwell70 commented 6 years ago

@lprhodes Hi! The problem is solved. I got the code. Thank You!!!

But there was another problem: I use a garage door. In Homekit the icon is inverted: when I open the code is sent to the closing, when I close the code is sent to the opening!

lprhodes commented 6 years ago

@Maxwell70 What was the code?

Can you post other problems as new issues please.

Maxwell70 commented 6 years ago

@lprhodes A lot of numbers and letters

lprhodes commented 6 years ago

Hey,

I've updated the learning method on the RM3 Pro Plus (both models) in 3.5.0.

Can you please update and let me know if the Scan RF button now works (without the need for a work-around)

John88a commented 6 years ago

Hi i have a Broadlink RM2 Pro Plus v2 (2787), its discovered correctly when i start homebridge, but when i press the learn button in the home app i see the message "Learn Code (ready)" in the homebridge in terminal, but the learn yellow light on the RM Pro doesn't light up, and no frequency can be scanned from my remote... What can be causing this? using Broadlink RM Plugin version 3.5.5

Thank you

Uraforclain commented 6 years ago

@lprhodes i have the same problem as Maxwell! https://github.com/lprhodes/homebridge-broadlink-rm/issues/407

Referor commented 5 years ago

Another way, but you still need 2 IOS devices and RM Pro plus (this way work for TC2) for me:

  1. First IOS device(to control e-control app). In your e-control application you need to have already educated TC2 remote / TC1 remote.
  2. Second IOS device with homekit and homebridge with scan_frequency function (to control your homebridge) / Mac (OS Mojave beta have home kit application) Algorithm: 1) You need to start "Scan_frequency" in your homebridge with second device 2) You need to push the preferred button at your first device several times And you can add buttons step-by-step to your homebridge. I think we can use this algorithm because RM Pro can scan frequency and send frequency in same time. We start scanning process and then we send some RF frequency in this one RM Pro plus device
QHose commented 5 years ago

Hi! My device is RM Pro+ with S/N: RM33220xxxxx I can't scan the RF code. After pressing the button "Scan Frequency" in the terminal appears the inscription: "Scan RF (RF learning not supported for device at undefined)" Please help!

your ip or mac is wrong in the config

lprhodes commented 4 years ago

There's a lot of different issues in here (most have already been fixed) but the initial issue regarding learning and not reaching Step 2 is hopefully resolved now. If you could please try out release 3.6.17