lprhodes / homebridge-broadlink-rm

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

problem with RF Scan Frequency #696

Open czarnyolek opened 4 years ago

czarnyolek commented 4 years ago

Hello

Since Friday I fight with this :)

I use Broadlink RM4 pro - I bought it to work with 433 MHZ roller blinds When I use Broadlink App - he copy my pilots and normally works with our windows

After install this plugin, when turn on RF Scan Frequency, the red LED is on, in console I see Scan RF (scanning), but nothing result. I also tried to enable debug: true, no results

I tried in Hoobs and Homebridge.

only RF does not work, Learn normally woking and scanning IR pilots (TV, air conditioning, etc)

Thank you for help

bpelech commented 4 years ago

Same here. I’m on RM3 Pro Plus (279d) and I tried many things.

I found the manual to learn the RF code only inside the issues threads. I miss this information in the readme. How to learn the code (it actually worked for me once, but I saved long pressed command, which just change the brightness of the lights and not on/off):

  1. Open the log in the homebridge ui
  2. Press learn RF button in the homekit
  3. Press and hold the button on the RF remote. I believe this part is to determine the frequency by the broadlink device, since it can operates in more than one frequency range (at least some of them might).
  4. Once the broadlink device found the frequency, you’ll see the “Scan RF (found frequency - 1 of 2)” message in the log. You can now release the remote control button.
  5. Now press the “learn ir” button in the homekit
  6. Press the button on a rf remote control you want to learn
  7. You should get the hex code in the log

This worked for me once (several plugin versions before), but as I mentioned - I saved long pressed rf signal. Now when I want to repeat these steps to learn just on/off signal, I can’t make it work.

czarnyolek commented 4 years ago

Hello I saw this method - but point 4 does not work. I not see: found frequency - 1 of 2

also I saw if old plugin 3.6.22 or 3.6.16 worked good, but not with me :)

anyway, Thank you for your answer

ben-callaway commented 4 years ago

https://github.com/kiwi-cam/homebridge-broadlink-rm/issues/45

renovatio118 commented 3 years ago

Same problem for me. I'm trying to get my RF HEX codes but after pressing the button to scan RF frequency i hold the button on the remote and i always get Timeout error. Any fix for this?

renovatio118 commented 3 years ago

Just found a solution to pull off HEX codes from Broadlink App on an iPhone assuming you've already setup devices with RF codes in official Broadlink App for iOS.

  1. Install on iPhone "Intelligent Home Center (IHC)" App by BroadLink Co., Ltd
  2. Sign in the App using your Broadlink App signing in method. This will load all the devices you've already added but they won't work if you click the buttons (That was my case but it doesn't matter. We only need to get the devices appear in the App.)
  3. Backup iPhone using iTunes
  4. Open the backup folder using iBackupViewer (Free version is ok in our case / Download Link: https://www.filecroco.com/download-ibackup-viewer/)
  5. Click on the icon "Raw Files"
  6. In the navigation pane on the left, locate the app name “cn.com.broadlink.europe.ihc” and click on it.
  7. In the navigation pane on the right, search for “econtrol” at the top and export locally the file “Documents/econtrol.db”
  8. Open that with any sql lite IDE. I used DB Browser for SQLite (Download Link: https://sqlitebrowser.org/dl/)
  9. Click on the tab "Browse Data" and select Table "buttonCodeTable" from the drop down menu. It should have one line for each code you've setup. The code column have the HEX strings. All your IR commands begin with "260" so ignore them. Find the lines that begin with different numbers. That's your RF codes.

Hope this will help others as well.

PointingP commented 3 years ago

I got the codes (well some of them at least) by following renovatio118's advice. How would one know which code is which? I guess it's possible to test, but that would be quite labour intensive trying out each code as a switch and try to figure out what happens (which fan speed was activated etc)

FlorinFrance commented 3 years ago

Just found a solution to pull off HEX codes from Broadlink App on an iPhone assuming you've already setup devices with RF codes in official Broadlink App for iOS.

  1. Install on iPhone "Intelligent Home Center (IHC)" App by BroadLink Co., Ltd
  2. Sign in the App using your Broadlink App signing in method. This will load all the devices you've already added but they won't work if you click the buttons (That was my case but it doesn't matter. We only need to get the devices appear in the App.)
  3. Backup iPhone using iTunes
  4. Open the backup folder using iBackupViewer (Free version is ok in our case / Download Link: https://www.filecroco.com/download-ibackup-viewer/)
  5. Click on the icon "Raw Files"
  6. In the navigation pane on the left, locate the app name “cn.com.broadlink.europe.ihc” and click on it.
  7. In the navigation pane on the right, search for “econtrol” at the top and export locally the file “Documents/econtrol.db”
  8. Open that with any sql lite IDE. I used DB Browser for SQLite (Download Link: https://sqlitebrowser.org/dl/)
  9. Click on the tab "Browse Data" and select Table "buttonCodeTable" from the drop down menu. It should have one line for each code you've setup. The code column have the HEX strings. All your IR commands begin with "260" so ignore them. Find the lines that begin with different numbers. That's your RF codes.

Hope this will help others as well.

thx man !!! it works !!

roninniagara commented 3 years ago

Just found a solution to pull off HEX codes from Broadlink App on an iPhone assuming you've already setup devices with RF codes in official Broadlink App for iOS.

1. Install on iPhone "Intelligent Home Center (IHC)" App by BroadLink Co., Ltd

2. Sign in the App using your Broadlink App signing in method. This will load all the devices you've already added but they won't work if you click the buttons (That was my case but it doesn't matter. We only need to get the devices appear in the App.)

3. Backup iPhone using iTunes

4. Open the backup folder using iBackupViewer (Free version is ok in our case / Download Link: https://www.filecroco.com/download-ibackup-viewer/)

5. Click on the icon "Raw Files"

6. In the navigation pane on the left, locate the app name “cn.com.broadlink.europe.ihc” and click on it.

7. In the navigation pane on the right, search for “econtrol” at the top and export locally the file “Documents/econtrol.db”

8. Open that with any sql lite IDE. I used DB Browser for SQLite (Download Link: https://sqlitebrowser.org/dl/)

9. Click on the tab "Browse Data" and select Table "buttonCodeTable" from the drop down menu. It should have one line for each code you've setup. The code column have the HEX strings. All your IR commands begin with "260" so ignore them. Find the lines that begin with different numbers. That's your RF codes.

Hope this will help others as well.

This worked for me - after hours of fighting trying to get scans to work..... HUGE thanks!

Moltey commented 1 year ago

Just found a solution to pull off HEX codes from Broadlink App on an iPhone assuming you've already setup devices with RF codes in official Broadlink App for iOS.

1. Install on iPhone "Intelligent Home Center (IHC)" App by BroadLink Co., Ltd

2. Sign in the App using your Broadlink App signing in method. This will load all the devices you've already added but they won't work if you click the buttons (That was my case but it doesn't matter. We only need to get the devices appear in the App.)

3. Backup iPhone using iTunes

4. Open the backup folder using iBackupViewer (Free version is ok in our case / Download Link: https://www.filecroco.com/download-ibackup-viewer/)

5. Click on the icon "Raw Files"

6. In the navigation pane on the left, locate the app name “cn.com.broadlink.europe.ihc” and click on it.

7. In the navigation pane on the right, search for “econtrol” at the top and export locally the file “Documents/econtrol.db”

8. Open that with any sql lite IDE. I used DB Browser for SQLite (Download Link: https://sqlitebrowser.org/dl/)

9. Click on the tab "Browse Data" and select Table "buttonCodeTable" from the drop down menu. It should have one line for each code you've setup. The code column have the HEX strings. All your IR commands begin with "260" so ignore them. Find the lines that begin with different numbers. That's your RF codes.

Hope this will help others as well.

Since node-red won't any new RF codes, I tried to utilize your method on an Android device.

On Android, the file "databases/econtrol3.db" seems to be encrypted - my DB Browser is asking for a SQLCipher password / passphrase. Does anybody have an idea where to find it (except in the source code of the app ;) )?