python-broadlink icon indicating copy to clipboard operation
python-broadlink copied to clipboard

Feature Request: Enable specifying the frequency for learning

Open CitizenRacer opened this issue 1 year ago • 4 comments

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.

CitizenRacer avatar Jul 18 '24 17:07 CitizenRacer

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.

gorbypark avatar Sep 25 '24 08:09 gorbypark

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.

https://github.com/mjg59/python-broadlink/blob/730853e5faf2cf979596662faf9def2b1f8fee6d/broadlink/remote.py#L98-L103

MitchTalmadge avatar Oct 01 '24 14:10 MitchTalmadge

It is supported by the BroadLink device. On Oct 1, 2024, at 7:32 AM, Mitch Talmadge @.***> wrote: 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?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

CitizenRacer avatar Oct 01 '24 15:10 CitizenRacer

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

MitchTalmadge avatar Oct 01 '24 15:10 MitchTalmadge