core icon indicating copy to clipboard operation
core copied to clipboard

Broadlink Pro not adding RF codes

Open octvrium opened this issue 2 years ago • 36 comments

The problem

When trying to add an RF code my broadlink pro turn on the orange light, then I press the button on the source control. 4 seconds later the call service button blink on green and the check mark but no other step happen, nor any notification comes to push again. Instead the orange light on the broadlink remains on until time out make it blink on blue an then turns off. Is a formal procedure for RF codes that I'm not following?

What version of Home Assistant Core has the issue?

Home Assistant 2022.8.6

What was the last working version of Home Assistant Core?

Home Assistant 2022.8.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

octvrium avatar Aug 25 '22 17:08 octvrium

Confirming Issue exists on: Home Assistant 2022.8.7 Supervisor 2022.08.5Operating System 8.5 Frontend 20220802.0 - latest

Device: RM4 Pro by Broadlink Firmware: 62092

Log throws error:

Logger: homeassistant.components.broadlink.remote Source: components/broadlink/remote.py:298 Integration: Broadlink (documentation, issues) First occurred: 11:54:18 AM (2 occurrences) Last logged: 11:54:49 AM

Failed to learn 'TurnOn': No radiofrequency found within 30.0 seconds Failed to learn 'TurnOff': No radiofrequency found within 30.0 seconds

RF Device is 2.4Gz Light Remote for FOSITAN FL-3060A 2nd Gen Bi-Color LED Video Light.

Steps to recreate:

  1. Setup Broadlink RM4 Pro on local network, ensuring that it is not configured in the Broadlink app other than being connected to the local Wifi, and that device is unlocked.
  2. Add new RM Pro to Home Assistant via integration
  3. Reboot Home Assistant host to ensure configuration works.
  4. Add RokuTV successfully using IR Remote and ensure codes are generated in the broadlink_remote_MACADDRESS_codes file in /config/.storage
  5. Successfully turn on and off RokuTV using HA Developer Tools service calls.
  6. Delete Device from Home Assistant
  7. Delete broadlink_remote_MACADDRESS_codes file from /config/.storage
  8. Reboot Home Assistant host
  9. Add new RM Pro to Home Assistant via integration
  10. Reboot Home Assistant host to ensure configuration works.
  11. Attempt to add FOSITAN FL-3060A 2nd Gen Bi-Color LED Video Light remote codes via remote.learn_command via service call in Dev Tools with parameters:
  • Target: remote.office_universal_remote
  • Device: VideoKeyLight
  • Command: TurnOn
  • Command Type: rf
  • Click "Call Service" button
  • Notification to activate report appears in sidebar
  • Broadlink RM4 Pro LED turns orange
  • Press "Power On" button on RF remote
  • Broadlink RM4 Pro LED flashes orange
  • "Call Service" button in HA switches to a green check showing completion
  • New broadlink_remote_MACADDRESS_codes file is NOT generated in the /config/.storage directory
  • Log shows above error
  1. Add RokuTV successfully using IR Remote and ensure codes are generated in the broadlink_remote_MACADDRESS_codes file in /config/.storage
  2. Successfully turn on and off RokuTV using HA Developer Tools service calls.

devinhedge avatar Sep 02 '22 16:09 devinhedge

Hey there @danielhiversen, @felipediel, @l-i-am, mind taking a look at this issue as it has been labeled with an integration (broadlink) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


broadlink documentation broadlink source (message by IssueLinks)

I'm having the same problem and I can't solve it.

dooidinho avatar Sep 22 '22 22:09 dooidinho

Likewise, the function in the 'broadlink app' to specify the frequency that enables devices such as 433.92 to connect fine is not available in this integration.

coldaussie avatar Oct 04 '22 02:10 coldaussie

I'm experiencing the same issue. I'm using the RM4 Pro (IR and RF) universal remote. I am able to successfully learn IR codes, but I'm unable to learn RF codes. I see the same error in the logs:

Failed to learn 'power': No radiofrequency found within 30.0 seconds

I also see the green check mark appear in the UI where I'm running the learn service. So it appears that the Broadlink is seeing the RF signal, but no new entries are added to the Broadlink file in config/.storage.

I've tried to learn the codes by using the physical RF remote (it's for a ceiling fan). I also have a 2nd RM4 Pro, and I've tried using one to send the code while the other is learning. No success either way.

Troubleshooting steps I've taken: -Restarting HA -Trying to learn the codes with multiple RF remotes -Reloading the Broadlink integration

jkor03 avatar Oct 21 '22 02:10 jkor03

I'm in the same situation, and tried everything I saw in similar issues

Chokapyk avatar Oct 28 '22 22:10 Chokapyk

Same issue here on 2022.11.4 using 433Mhz.

Unfortunately, needed to switch to rflink. I couldn't get it working on two different independent HA installs.

markusg1234 avatar Oct 29 '22 00:10 markusg1234

Has anyone managed to solve this problem?

dooidinho avatar Oct 29 '22 23:10 dooidinho

No. Not yet. I’m not even sure anyone is working on it.

devinhedge avatar Oct 30 '22 00:10 devinhedge

Having the same issue here. RF codes are not being picked during the learn command service.

Cikkajes avatar Nov 25 '22 23:11 Cikkajes

The learning process is still not very user-friendly, we have to keep an eye on the notifications to make sure we're pressing the button at the right time, first a long press, then a short click.

We don't support 333MHz capture with all devices yet, some day we will. 433MHz is fully supported, this is the default, if you can't capture this frequency you might be doing something wrong.

Also note that capturing from 2.4GHz devices like @devinhedge's remote will never be supported due to a physical limitation of the universal remote, which has no sensor for that frequency.

felipediel avatar Nov 26 '22 01:11 felipediel

I'm running into the same issue. I was able to teach and use the 434 MHz RF commands to my Broadlink RM4 Pro in the Broadlink app but am unable to do so via Home Assistant. The Remote: Learn Command page's Call Service button will flash with a green checkmark like it learned the command when I pressed the button on the remote but does not seem to save it. 30 seconds after the Call Service button is pressed the error appears in the log.

2023-01-06 20:12:55.837 ERROR (MainThread) [homeassistant.components.broadlink.remote] Failed to learn 'power': No radiofrequency found within 30.0 seconds

According to the notification I'm supposed to press and hold the button, but this doesn't seem possible with all remotes as the remote will either stop broadcasting after a few seconds (LED will turn off) or will broadcast a different command. Still pressing and holding the button I was trying to teach Home Assistant and pressing again every time the LED went off did not work either.

Edit: I was able to get it to learn an RF command by spam clicking the button for the entire 30 seconds. While I've partially solved my issue it still isn't ideal that codes have to be learned by broadcasting a signal for 30 seconds when the Broadlink app can have the user input the signal to detect and learn commands after one click.

Nerwyn avatar Jan 07 '23 01:01 Nerwyn

Hello, I'm running into this issue as well. I am trying to have the device learn a 315mhz code. I am successful learning the code in the app, but the code fails to learn in Home Assistant. IR code learning in HA works fine.

The fact that you can set the frequency in the app but there is no option to do so in the Learn Command service leads me to suspect this is the gap (defaulting to 433mhz?). Are there any fixes or workarounds?

liquidphire avatar Jan 23 '23 22:01 liquidphire

Same issue here in version 2023.2.3. RM4 Pro added to HA and the learn command seems to work OK -> Green button, but I don't see any saved data in the stoage folder :( The send command don't know my device command and I think it's because it's not saved anywhere. Any workaround?

larsroland avatar Feb 13 '23 13:02 larsroland

Hello! I actually figured this out so I wanted to post here in case anyone else came looking. Some of this information may not be 100% accurate since it's based on observation, but hopefully it will be helpful.

When using a Broadlink RM4 Pro to obtain RF codes, the device goes through two phases that you need to be aware of.

Phase 1 - Scan: The device enters this phase after called the Learn Code service, and the device's indicator will be solid red. I believe during this time, the device is sweeping all supported frequencies looking for a remote code. During this phase, you need to press whatever button for a couple seconds, and you may have to do this repeatedly! Don't rapid press it, just a second or two on, a second or two off, and if the device catches it, the light will turn off immediately.

Phase 2 - Confirm: The light goes off, and then comes back on after a second or two. During this time, press the button one more time, and if it actually got the code the first time, it will recognize the code and then write it to your config! You know it got the code because once you press the button during this phase, the red light will immediately turn off, confirming that it understood it.

Notes:

  • Make sure you have the device setup correctly, unlocked and all that.
  • During the first phase, the device just might not catch your code. It's fine, just keep at it. You have to press the button and the same time it's scanning the frequency and there's a bit of luck involved. If you got 30 seconds and the light goes out, it probably didn't get it; just try again. I had to do it 3 or 4 times for some buttons, but it will eventually get it.
  • You will get notifications in the HA notification (bell) that hint at the phase it's in.
  • Sometimes it gets a wrong code or only half the code. You won't know when this happens, but...
  • Open the configs and watch the codes come in. Valid codes usually have similar starts to them, so you can start to tell when you got a bad code reading.

I have programmed in 3 different RF controllers with different frequencies so far, so I can confirm that the device DOES work with HA, and consistently once you understand the telltales.

liquidphire avatar Feb 14 '23 02:02 liquidphire

Thank you so much @liquidphire 👌🏼 Everything works now and I have stored 12 commands. 2-3 of them did not work in first try, but most of them worked as it should. I used a 15 sec timeout and when the orange light was on, I clicked the button every 2-3 sec… After 5 sec. I saw the green button in HA and after 15 sec. the orange light on the BroadLink turned off. I still clicked the button the the BroadLink and then it returned with one single orange blink, which will store the button in the file editor files. If the BroadLink don’t blink one time after the timeout, the data is not stored and I needed to try again. All my send commands work and I will make some panel buttons :) Thanks!

larsroland avatar Feb 14 '23 10:02 larsroland

Thanks @liquidphire, I might give it another try.

markusg1234 avatar Feb 15 '23 22:02 markusg1234

Some additional information so this is documented somewhere.

It's important to know what frequency the remote you are trying to replicate is operating on.

From several different sources, the RM-4 Pro supports the following frequencies:

  • IR band: 38 kHz
  • RF band: 315 and 433 MHz
  • No support for 2.4 Ghz (missing critical functionality)
  • No support for 900 Mhz (missing critical functionality)
  • No Bluetooth support (missing critical functionality)

Some other useful specs:

  • The wi-fi interface only supports 2.4 Ghz (802.11b) which is lame or just plain lazy in 2023.
  • IR range is up to 8 meters which is amazing (YRMV)
  • RF range is up to 50 meters which is also quite amazing (YRMV)

devinhedge avatar Feb 16 '23 12:02 devinhedge

Hello. I also have problems connecting devices via Broadlink RC4 pro. The HA Core version is 2023.3.5 (the same as for 2023.3.6). I'm calling the code learning service. I press (not quickly) the device button (several times!). The service call button lights up green. I keep pressing the button on the device (not fast and several times). The orange indicator goes off on the Broadlink, and then turns on again. I keep pressing the button on the device (not fast and several times), the orange indicator goes off again and then turns on again. I keep pressing the button, the orange indicator goes out again and does not turn on anymore. The code is not recorded. There are no connection problems with IR devices.

gornostayi avatar Mar 27 '23 17:03 gornostayi

Hello! I actually figured this out so I wanted to post here in case anyone else came looking. Some of this information may not be 100% accurate since it's based on observation, but hopefully it will be helpful.

When using a Broadlink RM4 Pro to obtain RF codes, the device goes through two phases that you need to be aware of.

Phase 1 - Scan: The device enters this phase after called the Learn Code service, and the device's indicator will be solid red. I believe during this time, the device is sweeping all supported frequencies looking for a remote code. During this phase, you need to press whatever button for a couple seconds, and you may have to do this repeatedly! Don't rapid press it, just a second or two on, a second or two off, and if the device catches it, the light will turn off immediately.

Phase 2 - Confirm: The light goes off, and then comes back on after a second or two. During this time, press the button one more time, and if it actually got the code the first time, it will recognize the code and then write it to your config! You know it got the code because once you press the button during this phase, the red light will immediately turn off, confirming that it understood it.

Notes:

  • Make sure you have the device setup correctly, unlocked and all that.
  • During the first phase, the device just might not catch your code. It's fine, just keep at it. You have to press the button and the same time it's scanning the frequency and there's a bit of luck involved. If you got 30 seconds and the light goes out, it probably didn't get it; just try again. I had to do it 3 or 4 times for some buttons, but it will eventually get it.
  • You will get notifications in the HA notification (bell) that hint at the phase it's in.
  • Sometimes it gets a wrong code or only half the code. You won't know when this happens, but...
  • Open the configs and watch the codes come in. Valid codes usually have similar starts to them, so you can start to tell when you got a bad code reading.

I have programmed in 3 different RF controllers with different frequencies so far, so I can confirm that the device DOES work with HA, and consistently once you understand the telltales.

Thank you this is the correct way to do it and worked for me 100% The instruction in the notification to hold the button is misleading, pressing for a couple of seconds releasing and doing it again will work though.

dylankolson avatar May 16 '23 00:05 dylankolson

@liquidphire Thank you! this has fixed my issue

Hedgemuffin avatar May 30 '23 10:05 Hedgemuffin

@liquidphire another thank you!

During this phase, you need to press whatever button for a couple seconds, and you may have to do this repeatedly! Don't rapid press it, just a second or two on, a second or two off, and if the device catches it, the light will turn off immediately.

☝️ This was the solution for a Byron Wireless RF Doorbell!!!

jonrandahl avatar Aug 18 '23 16:08 jonrandahl

My driver communicates on 433.97MHz It's not able to retransmit the signal or hold the button. So I only have one shot. How can I set the learning mode to look for a specific frequency?

sotoniak avatar Aug 25 '23 07:08 sotoniak

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@liquidphire another thank you!

During this phase, you need to press whatever button for a couple seconds, and you may have to do this repeatedly! Don't rapid press it, just a second or two on, a second or two off, and if the device catches it, the light will turn off immediately.

☝️ This was the solution for a Byron Wireless RF Doorbell!!!

Man, broke my ass, actually thought device was defective... Thank you really appreciate your help!

Jgmba avatar Dec 22 '23 23:12 Jgmba

I'm having the same issues attempting to learn 433.92 MHz commands via HA. No issues learning them in the Broadlink app.

LumpMaroon avatar Jan 22 '24 04:01 LumpMaroon

I'm having the same issue when learning 433.92MHz commands in HomeAssistant. It works fine in broadlink app, although i do need to provide exact 433.92 frequency for the app to pick up the signal.

leszegfu avatar Jan 24 '24 18:01 leszegfu

I found a workaround:

  1. Using the BroadLink App, prepare the app to learn the command you want to learn in Home Assistant

  2. Prepare Home Assistant to learn the command

  3. In the BroadLink App, set the app to start listening for the command and immediately do the same in Home Assistant.

  4. The command should now be learned in Home Assistant.

Using this method, I’ve been able to learn those 433.92 MHz commands within HA.

Hope this helps!

On Wed, Jan 24, 2024 at 12:24 PM leszegfu @.***> wrote:

I'm having the same issue when learning 433.92MHz commands in HomeAssistant. It works fine in broadlink app, although i do need to provide exact 433.92 frequency for the app to pick up the signal.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/77321#issuecomment-1908689457, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7ZW2GM4ZFZZGZ7B6KQTL6LYQFGUPAVCNFSM57UAEZ5KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJQHA3DQOJUGU3Q . You are receiving this because you commented.Message ID: @.***>

LumpMaroon avatar Jan 24 '24 18:01 LumpMaroon

I found a workaround: 1. Using the BroadLink App, prepare the app to learn the command you want to learn in Home Assistant 2. Prepare Home Assistant to learn the command 3. In the BroadLink App, set the app to start listening for the command and immediately do the same in Home Assistant. 4. The command should now be learned in Home Assistant. Using this method, I’ve been able to learn those 433.92 MHz commands within HA. Hope this helps! On Wed, Jan 24, 2024 at 12:24 PM leszegfu @.> wrote: I'm having the same issue when learning 433.92MHz commands in HomeAssistant. It works fine in broadlink app, although i do need to provide exact 433.92 frequency for the app to pick up the signal. — Reply to this email directly, view it on GitHub <#77321 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7ZW2GM4ZFZZGZ7B6KQTL6LYQFGUPAVCNFSM57UAEZ5KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJQHA3DQOJUGU3Q . You are receiving this because you commented.Message ID: @.>

I confirm that this workaround worked for me too. Note that it took a few attempts, but eventually I got it right :-)

leszegfu avatar Jan 25 '24 09:01 leszegfu

I just recently start to integrate HA with broadlink and I am unable to add any RF codes. But I can perfectly learn that remote in broadlink mobile app all the years.

Anyone had the solution or know what's going on.

edmondss avatar Jan 26 '24 15:01 edmondss