Unable to learn RF
hi all,
i am new to homebridge and plugins. 
my device is RM Pro+ with S/N: RM33220xxxxx
first downloaded the broadlink-rm plugin a week ago, it couldn't find my rm pro+ device.
last night i ran the install command again, it downloaded new packages. (is this the correct way to update plugin?)
tested homebridge, it finally discovered my device.
then i use the Learn IR & Scan frequency  switch to start learning the hex code.
IR learn working fine without issue, however i couldn't get RF to scan.
i followed the the method described in #222  and still unable to get it working.
during RF learning, the light was on, after i pressed the remote button, the light off once and immediate back on again.

is this still an issue for everyone or just mine?

i also noticed that everytime when i try learn RF, homebridge lost connection to my rmpro device.



can you please help?

thanks developers for your hard work to maintain the plugin.

thanks

my config.json file:
{
	"bridge": {
		"name": "Homebridge",
		"username": "CC:22:3D:E3:CE:30",
		"port": 51826,
		"pin": "031-45-154"
	},
"platforms":[
  {
    "platform": "BroadlinkRM",
    "name": "Broadlink RM",
    "hideScanFrequencyButton": false,
    "hideLearnButton": false,
    "accessories": [
      {
        "name": "New switch",
        "type": "switch",
        "data": {
          "on": "",
          "off": ""
        }
      }
    ]
  }
]
}

my Log output as below:

[2018-2-14 22:20:51] Homebridge is running on port 51826.
Discovered Broadlink RM device at 192.168.0.27 (34:ea:34:42:fa:e6)
[2018-2-14 22:21:00] [Broadlink RM] Scan RF (scanning)
[2018-2-14 22:21:00] [Broadlink RM] [Hold down the button that sends the RF frequency]
[2018-2-14 22:21:02] [Broadlink RM] Scan RF (found frequency - 1 of 2)
[2018-2-14 22:21:02] [Broadlink RM] [Keep holding that button!]
[2018-2-14 22:21:21] [Broadlink RM] Scan RF (stopped - 20s timeout)
[2018-2-14 22:21:22] [Broadlink RM] Scan RF (stopped)
Broadlink RM device at 192.168.0.27 (34:ea:34:42:fa:e6) is no longer reachable.
Broadlink RM device at 192.168.0.27 (34:ea:34:42:fa:e6) has been re-discovered.
[2018-2-14 22:21:53] [Broadlink RM] New switch setSwitchState: true
[2018-2-14 22:22:16] [Broadlink RM] New switch setSwitchState: false
[2018-2-14 22:22:18] [Broadlink RM] New switch setSwitchState: true
[2018-2-14 22:22:19] [Broadlink RM] Scan RF (scanning)
[2018-2-14 22:22:19] [Broadlink RM] [Hold down the button that sends the RF frequency]
[2018-2-14 22:22:24] [Broadlink RM] Scan RF (found frequency - 1 of 2)
[2018-2-14 22:22:24] [Broadlink RM] [Keep holding that button!]
Broadlink RM device at 192.168.0.27 (34:ea:34:42:fa:e6) is no longer reachable.
[2018-2-14 22:22:35] [Broadlink RM] New switch setSwitchState: false
[2018-2-14 22:22:40] [Broadlink RM] Scan RF (stopped - 20s timeout)
[2018-2-14 22:22:40] [Broadlink RM] Scan RF (stopped)
Broadlink RM device at 192.168.0.27 (34:ea:34:42:fa:e6) has been re-discovered.
[2018-2-14 22:25:22] [Broadlink RM] New switch getSwitchState: false
[2018-2-14 22:25:35] [Broadlink RM] Learn Code (ready)
[2018-2-14 22:25:41] [Broadlink RM] Learn Code (learned hex code: 2600a00000012794131213121312131213131213131213371336133713371336133713371336133713121337131213371312131213131213133613131237131312371337133712371300050e0001274a13000c650001274913000c650001274a13000c650001274a13000c650001274913000c660001274913000c650001274a13000c650001274a13000c650001274a13000c650001274a14000c640001274a13000d050000000000000000)
[2018-2-14 22:25:41] [Broadlink RM] Learn Code (complete)
[2018-2-14 22:25:41] [Broadlink RM] Learn Code (stopped)


