kiwi-cam / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
301 stars 96 forks source link

"Learn Code (Couldn't learn code, device not found)" #719

Open bksnbriefs opened 1 month ago

bksnbriefs commented 1 month ago

This is the code I have so far: { "platform": "BroadlinkRM", "name": "BroadlinkRM", "hideScanFrequencyButton": false, "hideLearnButton": false, "hideWelcomeMessage": false, "hosts": [ { "address": "redacted", "mac": "redacted", "isRFSupported": true, "isRM4": true } ], "_bridge": { "username": "redacted", "port": redacted } }

I am able to see the see the "Learn" and "Scan Frequency" toggles in HomeKit. When I attempt to toggle the "Scan Frequency" button, my plugin log immediately says: "[BroadlinkRM] [INFO] Learn Code (Couldn't learn code, device not found)"

I've tested the scan frequency function in the Broadlink App and I am able to successfully learn and execute these RF codes in the app (they are on the 434.1 MHz frequency according to the App). I just can't get it to learn the hex code from within HomeKit.

kiwi-cam commented 1 month ago

That suggests that, for some reason, the plugin isn't connected to the device. You won't get errors because you've manually added hosts - so it trusts you know what you're doing. First, I'd suggest removing the hosts section and let it auto discover the device. Unless you segment your network, you shouldn't need a hosts section. Also check if the device is locked.

BardaktakiAdam commented 1 month ago

Check this out : https://www.reddit.com/r/homebridge/comments/1181ex4/caution_to_people_using_broadlink_rm_plugin/

bksnbriefs commented 1 month ago

@kiwi-cam - Thank you! Your suggestion to remove the hosts section and let the plugin auto discover the device worked!

{     "platform": "BroadlinkRM",     "name": "BroadlinkRM",     "hideScanFrequencyButton": false,     "hideLearnButton": false,     "hideWelcomeMessage": false,     "_bridge": {         "username": "redacted",         "port": redacted     },