Skip to content
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

Can no longer record RF codes #272

Closed
booshtukka opened this issue Mar 22, 2021 · 26 comments
Closed

Can no longer record RF codes #272

booshtukka opened this issue Mar 22, 2021 · 26 comments
Labels
wontfix This will not be worked on

Comments

@booshtukka
Copy link

Using an RM Pro+

I used to be able to record RF codes, but now the device won't detect the frequency. From the logs:

[3/22/2021, 11:05:05 AM] [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
[3/22/2021, 11:05:13 AM] [Broadlink RM] [INFO] Scan RF (found frequency - 1 of 2)
[3/22/2021, 11:05:13 AM] [Broadlink RM] [ACTION] Keep holding that button!
[3/22/2021, 11:05:36 AM] [Broadlink RM] [INFO] Scan RF (stopped - 30s timeout)
[3/22/2021, 11:05:37 AM] [Broadlink RM] [INFO] Scan RF (stopped)

From my config:

   …
  {
        "platform": "BroadlinkRM",
        "name": "Broadlink RM",
        "hideScanFrequencyButton": false,
        "hideLearnButton": true,
        "hideWelcomeMessage": true,
        "hosts": [
            {
                "address": "192.168.5.242",
                "mac": "34:ea:34:42:f9:ec",
                "isRFSupported": true,
                "isRM4": false
            }
        ],
   …

Would appreciate any support! And thanks for maintaining this plugin. :)

@booshtukka
Copy link
Author

booshtukka commented Mar 22, 2021

Also noticed the detection format for the MAC address seems a bit weird?

[3/22/2021, 11:12:04 AM] [Broadlink RM] [INFO] Discovered Manual RM Pro Device (2223) at 192.168.5.242 (34::e:a::34::4:2::f9::e:c)

@booshtukka
Copy link
Author

FYI, I've tried this with 3 individual RM Pro+'s and same issue with all.

@eliteladen
Copy link

Same issue I believe, but I'm getting a bit further ahead (found frequency - 2 of 2). But then it won't show any RF codes and timeout.

@kiwi-cam
Copy link
Owner

Can you add "debug": true to your configuration and share the output when you're attempting to learn an RF code?

@booshtukka
Copy link
Author

Here you go:

[3/25/2021, 11:22:21 AM] [Broadlink RM] Learn getSwitchState: false
[3/25/2021, 11:22:21 AM] [Broadlink RM] Scan Frequency getSwitchState: false
[3/25/2021, 11:22:24 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 19
[3/25/2021, 11:22:24 AM] [Broadlink RM] [INFO] Scan RF (scanning)
[3/25/2021, 11:22:24 AM] [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
[3/25/2021, 11:22:24 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:19000000000000000000000000000000
[3/25/2021, 11:22:25 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1a
[3/25/2021, 11:22:25 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1a000000000000000000000000000000
[3/25/2021, 11:22:26 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1a
[3/25/2021, 11:22:26 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1a000000000000000000000000000000
[3/25/2021, 11:22:27 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1a
[3/25/2021, 11:22:28 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1a000000010000000000000000000000
[3/25/2021, 11:22:28 AM] [Broadlink RM] [INFO] Scan RF (found frequency - 1 of 2)
[3/25/2021, 11:22:28 AM] [Broadlink RM] [ACTION] Keep holding that button!
[3/25/2021, 11:22:29 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:29 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:30 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:30 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:31 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:31 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:32 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:32 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:33 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:33 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:34 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:34 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:35 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:35 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:36 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:36 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:37 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:37 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:38 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:39 AM] [Broadlink RM] Learn getSwitchState: false
[3/25/2021, 11:22:39 AM] [Broadlink RM] Scan Frequency getSwitchState: false
[3/25/2021, 11:22:39 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:40 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:40 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:41 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:41 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:42 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:42 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:43 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:43 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:44 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:44 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:45 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:45 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:46 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:46 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:47 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:47 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:48 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:48 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:49 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:50 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:51 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:51 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:52 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:52 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:53 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:53 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:54 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:54 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:54 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1e
[3/25/2021, 11:22:54 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1e000000000000000000000000000000
[3/25/2021, 11:22:55 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[3/25/2021, 11:22:55 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[3/25/2021, 11:22:55 AM] [Broadlink RM] [INFO] Scan RF (stopped - 30s timeout)
[3/25/2021, 11:22:55 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1e
[3/25/2021, 11:22:55 AM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1e000000000000000000000000000000
[3/25/2021, 11:22:56 AM] [Broadlink RM] [INFO] Scan RF (stopped)

@freedivebird
Copy link

freedivebird commented Mar 27, 2021

I raised a seperate bug report regarding the mac address. Despite the documentation the app actually expect the mac address without the colons (that's why it looks weird - it's adding extra colons) - so put it in like this:
"hosts": [ { "address": "192.168.5.242", "mac": "34ea3442f9ec", "isRFSupported": true, "isRM4": false } ],

#266

obviously a fix is on its way already in the BETA

@kiwi-cam
Copy link
Owner

Does fixing the MAC address resolve this issue?

The logs don't give much information. It's going into the scan, and even finding the frequency but never getting the actual frequency. Usually this is down to the remote timing out and stopping sending. Holding the button and quickly releasing and re-holding the button usually helps - or some combination. You just need to get it so the remote sends the signal at the right time.

Out of curiosity, why are you manually entering the device details - did they not discover correctly?

@booshtukka
Copy link
Author

Fixing the MAC address does not resolve the issue. I'm manually entering device details since I have multiple devices, also just trying things out hoping for it to resolve.

This used to work fine, it's only the current version that doesn't work. I've tried holding the button down for the whole time, or quickly pressing/releasing the button. Both of these used to always work for at the very least detecting the frequency.

@kiwi-cam
Copy link
Owner

Are you able to try the latest beta for me - v4.4.2-beta.5? The hosts section has always been very pedantic (buggy) with formatting. I've made these much more resilient and it may help in this case.

Failing that, are you able to identify a version that does work? I'll review the changes made and see if I can find the cause.

@GreatCookie
Copy link

This would be worth its weight in gold to get the function working... For me, the function 'broke' about 1.5yrs back dunno whether it was Homebridge, the plugin, or Broadlink firmware that broke it along the way.
I've honestly given up learning RF codes for the best part of 2yrs now - thankfully i haven't had to change any of my RF receivers so new codes haven't been a priority but it'd really be nice to add some new RF devices.

@booshtukka
Copy link
Author

It hadn’t been working for me for a long time. I’d posted issues to the original version of this plugin but the author had stopped working on it so I moved to this one. But the original version did actually work a bit better than this. I’ll try some of those debugging steps when I have a sec.

@booshtukka
Copy link
Author

I tried the latest version 4.4.2 - I needed to update the Mac addresses in config to include colons to make sure the device was detected.

I know the device works fine because if I use their app I can learn the commands. I wish the app exposed the codes!

I have the same result:

[4/14/2021, 12:24:22 PM] [Broadlink RM] [INFO] Scan RF (scanning)
[4/14/2021, 12:24:22 PM] [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
[4/14/2021, 12:24:22 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:19000000000000000000000000000000
[4/14/2021, 12:24:23 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1a
[4/14/2021, 12:24:23 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1a000000000000000000000000000000
[4/14/2021, 12:24:24 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1a
[4/14/2021, 12:24:24 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1a000000000000000000000000000000
[4/14/2021, 12:24:25 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1a
[4/14/2021, 12:24:26 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1a000000000000000000000000000000
[4/14/2021, 12:24:26 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1a
[4/14/2021, 12:24:27 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1a000000010000000000000000000000
[4/14/2021, 12:24:27 PM] [Broadlink RM] [INFO] Scan RF (found frequency - 1 of 2)
[4/14/2021, 12:24:27 PM] [Broadlink RM] [ACTION] Keep holding that button!
[4/14/2021, 12:24:28 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:28 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:29 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:29 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:30 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:30 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:31 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:31 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:32 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:32 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:33 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:33 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:34 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:34 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:35 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:36 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:36 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:37 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:37 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:38 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:39 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:39 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:40 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:40 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:41 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:41 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:42 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:42 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:42 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1e
[4/14/2021, 12:24:42 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1e000000000000000000000000000000
[4/14/2021, 12:24:43 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1b
[4/14/2021, 12:24:43 PM] [Broadlink RM] [INFO] Scan RF (stopped - 20s timeout)
[4/14/2021, 12:24:43 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Sending command:6a with payload: 1e
[4/14/2021, 12:24:43 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1b000000000000000000000000000000
[4/14/2021, 12:24:43 PM] [Broadlink RM] [DEBUG] (78:0f:77:18:0b:75) Payload received:1e000000000000000000000000000000
[4/14/2021, 12:24:44 PM] [Broadlink RM] [INFO] Scan RF (stopped)

@kiwi-cam
Copy link
Owner

@GreatCookie (and others in this thread) any chance you could install the latest BETA and try learning RF codes again? I've found an error in my code compared to the original - I followed the documentation instead of the code. It should solve most (hopefully all) the RF learning issues.

@kiwi-cam kiwi-cam added this to the In BETA milestone May 12, 2021
@booshtukka
Copy link
Author

Exciting! I'm not sure how to install a beta plugin with HomeBridge-UI and am scared of breaking my set up. But as soon as you release the next version I'll test and report back. :)

@masterfordev
Copy link

@booshtukka You can change version of plugins doing this in Homebridge UI

@booshtukka
Copy link
Author

Ah. Great! They should probably label that "install alternate versions" rather than "install previous version". :)

I still have the same behaviour. :( And debug info no longer seems to show.

[5/12/2021, 8:16:24 PM] [Broadlink RM] [INFO] Scan RF (scanning)
[5/12/2021, 8:16:24 PM] [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
[5/12/2021, 8:16:28 PM] [Broadlink RM] [INFO] Scan RF (found frequency - 1 of 2)
[5/12/2021, 8:16:28 PM] [Broadlink RM] [ACTION] Keep holding that button!
[5/12/2021, 8:17:25 PM] [Broadlink RM] [INFO] Scan RF (stopped - 60s timeout)
[5/12/2021, 8:17:26 PM] [Broadlink RM] [INFO] Scan RF (stopped)

@kiwi-cam
Copy link
Owner

@booshtukka Sorry, I had an issue in that Beta with logging. I've made device level debug logging a platform level setting. The latest beta will adjust this temporarily during a learn - it makes sense with this accessory type.

Could you update and try again for me?

@booshtukka
Copy link
Author

Sure, tried again:

5/14/2021, 10:22:11 AM] [Broadlink RM] [INFO] Scan RF (scanning)
[5/14/2021, 10:22:11 AM] [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
[5/14/2021, 10:22:12 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:19000000000000000000000000000000
[5/14/2021, 10:22:12 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:13 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:14 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:14 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:15 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:15 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:16 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:16 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:17 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:17 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:18 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:18 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:19 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:19 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:20 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:20 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:21 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:21 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000000000000000000000000000
[5/14/2021, 10:22:22 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1a
[5/14/2021, 10:22:22 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1a000000010000000000000000000000
[5/14/2021, 10:22:22 AM] [Broadlink RM] [INFO] Scan RF (found frequency - 1 of 2)
[5/14/2021, 10:22:22 AM] [Broadlink RM] [ACTION] Keep holding that button!
[5/14/2021, 10:22:24 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:24 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:25 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:25 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:26 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:26 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:27 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:27 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:28 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:28 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:29 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:30 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:31 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:31 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:31 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:32 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:32 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:33 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:33 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:34 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:34 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:35 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:36 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:36 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:37 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:38 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:39 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:39 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:40 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:41 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:42 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:43 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:43 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:44 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:45 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:46 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:46 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:47 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:48 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:48 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:49 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:50 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:50 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:51 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:51 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:52 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:53 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:53 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:54 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:55 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:56 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:56 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:56 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:57 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:57 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:22:58 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:59 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:22:59 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:00 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:00 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:01 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:01 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:02 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:02 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:03 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:03 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:03 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:04 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:05 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:05 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:06 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:06 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:06 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:07 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:08 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:09 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:09 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:10 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:10 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:11 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:11 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:12 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1e
[5/14/2021, 10:23:12 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:12 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1b
[5/14/2021, 10:23:13 AM] [Broadlink RM] [INFO] Scan RF (stopped - 60s timeout)
[5/14/2021, 10:23:13 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Sending command:6a with payload: 1e
[5/14/2021, 10:23:13 AM] [Broadlink RM] [DEBUG] (78:0f:77:fd:7d:cb) Payload received:1b000000000000000000000000000000
[5/14/2021, 10:23:13 AM] [Broadlink RM] [INFO] Scan RF (stopped)

@kiwi-cam kiwi-cam removed this from the In BETA milestone May 18, 2021
@booshtukka
Copy link
Author

Any movement here? I would love to be able to use this again!

@booshtukka
Copy link
Author

Please let me know if there are any debugging activities I can undertake

@booshtukka
Copy link
Author

I've given up on this being fixed, so I figured out my own steps to record the RF codes within the IHC app (which works perfectly) and get to them. Note, this doesn't work with the new Broadlink app - use the IHC one instead. I hope this helps someone.

  1. Back up your iPhone to your Mac
  2. Get iExplorer https://macroplant.com/iexplorer/download/mac/complete/4.5.0
  3. Use iExplorer to browser the backup (demo mode works fine) and find the cn.com.broadlink.europe.ihc folder within Apps, and copy that folder somewhere. Inside it find econtrol.db and open that with e.g. DB Browser for SQLite (https://download.sqlitebrowser.org/DB.Browser.for.SQLite-3.12.2.dmg)
  4. Run this SQL:

select room.name, module.name, button.name, buttonCode.code from roomTable room, moduleTable module, buttonInfoTable button, buttonCodeTable buttonCode where module.roomId = room.roomId and module.moduleId = button.moduleId and button.buttonId = buttonCode.buttonId;

  1. This should give you a response showing you your devices, buttons you've set up, and the hex codes for them, which you can then copy straight into your config.

@GreatCookie
Copy link

@booshtukka... Thanks very much for reviving this thread and bringing it forward. I received the notification of your note and it's been waiting for me to spend some time to verify the following.

TL:DR: For me, it appears to work for some, but not all my remotes (still trying to figure out why) -> but brings us much closer to an alternative then were we were before

I had purposely asked one of my RM Pros to 'learn' an existing (read: working) RF code for this exercise and had verified that ihc app was able to trigger the RF properly in the App before backing up the device (running iOS v15.0.1)

As a Windows user (don't kill me), the only substitutes i made were to use iBackup Viewer (free mode is fine) from https://www.imactools.com/ and needed to browse to the cn.com.broadlink.econtrol.plus folder below to then extract the same econtrol.db file to then use with DB Browser (window's version).

image

Running the SQL worked perfectly (thanks for the query) - but on extraction i noticed that there were marked differences in the code (particular to code length) on comparison. Created a new switch in homebridge with the extraction code and tried to trigger... Result = nothing. :(

The only potential 'flags' for me:

  1. Old code (working) was 1816 chars, whilst the one extracted (IHC) was 2424 chars... I'm just wondering is there's a possible 'limit' to the bytes able to sent in a command?
  2. More curious, the Broadlink Pro isn't even 'flashing' the amber light on unit when triggering the code (which makes me wonder if '1' is a thing. I might try to do some 'hack' work to remove portions of the 'extra' characters in the extracted RF Code and see if it makes a diff...

For kicks, i used one of the IR codes extracted from IHC to replace another (existing) code i had... that one worked perfectly (with no issues) so i'm kinda stumped otherwise... I'll try some tinkering with '2' above and report back after.

But many thanks again for your update... I'm sure there'd be literally 1000's of others who would shed tears of joy to come up with a stable/consistent way to do this (even with this type of workaround) - but glad you've managed to find a solution for you (and point the rest of us in the right direction).

Best Regards,

GC

@booshtukka
Copy link
Author

No worries! At least it is working for me…

@stale
Copy link

stale bot commented Dec 14, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 14, 2021
@stale stale bot closed this as completed Dec 21, 2021
@prhmps
Copy link

prhmps commented Jul 11, 2022

hello my friends
i am installed iexplorer in windows but i can't find cn.com.broadlink.europe.ihc in broadlink app
there are not any file or folder named as cn.com.broadlink.europe.ihc...
can you help me?!

@EricS1019
Copy link

I am having the same issue, I cannot find cn.com.broadlink.europe.ihc either. I am using a RM4 Pro and it uses the new Broadlink app so maybe thats the problem. Does anyone know where or how to find the HEX codes in the new BroadLink App on iPhone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

8 participants