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

Learn code - enableAutoOff seems to be ignored #746

Open
johndowns opened this issue Jan 2, 2025 · 0 comments
Open

Learn code - enableAutoOff seems to be ignored #746

johndowns opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@johndowns
Copy link

Describe the bug
The enableAutoOff setting doesn't appear to work correctly on the learn-code accessory. I expected it to keep the switch in the on state after capturing an IR code, but the switch automatically goes to the off state - whether enableAutoOff is true or false.

To Reproduce

  1. Define a learn-code accessory as follows:

    {
        "name": "My Learn Code",
        "type": "learn-code",
        "host": "xx:xx:xx:xx:xx:xx",
        "enableAutoOff": false
    },
  2. Restart Homebridge.

  3. Turn on the switch in the Home app, and capture an IR code.

  4. Notice the switch automatically is turned off immediately.

  5. Further, notice the Homebridge log includes the following:

    [1/2/2025, 6:19:02 PM] [BroadlinkRM] Learn Code (ready)
    [1/2/2025, 6:19:04 PM] [BroadlinkRM] [RESULT] Learn Code (learned hex code: xxxx)
    [1/2/2025, 6:19:04 PM] [BroadlinkRM] [INFO] Learn Code (complete)
    [1/2/2025, 6:19:04 PM] [BroadlinkRM] [INFO] Learn Code (stopped)
    

Expected behavior
I expected the switch to remain in the active state, and to be able to capture multiple IR codes consecutively without re-enabling the switch each time.

@johndowns johndowns added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant