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 error #77

Closed
aferrar opened this issue Oct 2, 2020 · 2 comments
Closed

Learn Code error #77

aferrar opened this issue Oct 2, 2020 · 2 comments

Comments

@aferrar
Copy link

aferrar commented Oct 2, 2020

Hi there,

Thanks so much for all the work you do to maintain this code. I just recently got a rm pro 4 and setup homebridge in an unraid docker container. I can't get the learn switch from my ios device to successfully communicate with the universal controller. The error I'm getting is below:


[10/2/2020, 2:26:44 AM] Homebridge is running on port 51826.
[0;37m[10/2/2020, 2:26:45 AM] [0m[0;36m[Config][0m [0;33mHomebridge Config UI X v4.28.0 is listening on :: port 8124[0m
[10/2/2020, 2:27:54 AM] [Broadlink RM] Scan Frequency getSwitchState: undefined
[10/2/2020, 2:27:54 AM] [Broadlink RM] Learn getSwitchState: undefined
[10/2/2020, 2:28:17 AM] [Broadlink RM] [31m[ERROR][0m Learn Code (Couldn't learn code, device not found)

My config.json is as follows:

{
    "bridge": {
        "name": "Homebridge",
        "username": "some username code",
        "port": 51826,
        "pin": "some pin"
    },
    "description": "This is an example configuration file with gui. You can use this as a template for creating your own configuration file containing devices you actually own.",
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8124,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": true,
            "log": {
                "method": "systemd"
            },
            "platform": "config"
        },
        {
            "platform": "BroadlinkRM",
            "name": "Broadlink RM",
            "hideScanFrequencyButton": false,
            "hideLearnButton": false,
            "hideWelcomeMessage": true,
            "accessories": [],
            "hosts": [
                {
                    "address": "broadlink ip",
                    "mac": "broadlink mac address",
                    "isRFSupported": true
                }
            ]
        }
    ]
}

I've verified that the mac and host addresses are correct. Would you happen to be aware of anything in my config.json that is off or if there are any potential solutions to this issue? Thank you again so very much and stay safe!

@kiwi-cam
Copy link
Owner

kiwi-cam commented Oct 2, 2020

Yeah, sorry this is this the last outstanding issues with the RM4 compatibility. Hopefully I can crack it soon when a new device arrives and I have something to test with.
Keep an eye on #45 and #10. #10 has a workaround using python if you’re game.

@kiwi-cam
Copy link
Owner

kiwi-cam commented Oct 11, 2020

Duplicate of #45

@kiwi-cam kiwi-cam marked this as a duplicate of #45 Oct 11, 2020
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

2 participants