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

Feature Request: Enable specifying the frequency for learning #808

Open
CitizenRacer opened this issue Jul 18, 2024 · 4 comments
Open

Feature Request: Enable specifying the frequency for learning #808

CitizenRacer opened this issue Jul 18, 2024 · 4 comments

Comments

@CitizenRacer
Copy link

The broadlink app allows you to set the frequency to listen to for learning a code. This is the only way I can get it to learn my fireplace remote, the sweep function doesn't discover the remote. I'd like to be able to specify the frequency in the library so that I can skip the sweep and have the app listen for the specific frequency and find my codes.

@gorbypark
Copy link

I think this is a great solution. The Broadlink app finds all my RF codes almost instantly, but using Home Assistant or Broadlink Manager (both using this project under the hood), the sweep frequency learning is very unreliable. Sometimes it works, sometimes it doesn't, and most times it takes holding the button 10-20 times before it picks up anything.

@MitchTalmadge
Copy link

MitchTalmadge commented Oct 1, 2024

Was surprised to see this is not a feature. Is it supported by the broadlink device? Do we just need to add it to this library?


Edit: Looks like the find_rf_packet signature supports it, after all. I will try it out.

def find_rf_packet(self, frequency: Optional[float] = None) -> None:
"""Enter radiofrequency learning mode."""
payload = bytearray()
if frequency:
payload += struct.pack("<I", int(frequency * 1000))
self._send(0x1B, payload)

@CitizenRacer
Copy link
Author

CitizenRacer commented Oct 1, 2024 via email

@MitchTalmadge
Copy link

Calling device.find_rf_packet(315.0) worked great for me with a 315MHz fireplace remote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants