Skip to content

Feature Request: Enable specifying the frequency for learning #808

Open

Description

@CitizenRacer

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.

Activity

  1. gorbypark commented on Sep 25, 2024

    @gorbypark

    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.

  2. MitchTalmadge commented on Oct 1, 2024

    @MitchTalmadge

    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)

  3. CitizenRacer commented on Oct 1, 2024

    @CitizenRacer
    Author
  4. MitchTalmadge commented on Oct 1, 2024

    @MitchTalmadge

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions