kiwi-cam/homebridge-broadlink-rm

Device won't be detected

Opened this issue · 2 comments

Describe the bug
I am unable to add my Broadlink RM4 PRO to the plugin.

I've tried by using both de autodiscover and the hosts config, but I cannot get it to work.

In he logs I can see this, when using autodiscovery:

[10/13/2023, 10:57:54 AM] [Broadlink RM] [INFO] Listening for Broadlink devices on 192.168.18.252:49785 (UDP)
[10/13/2023, 10:57:56 AM] [Broadlink RM] [INFO] Listening for Broadlink devices on 192.168.18.252:58850 (UDP)
[10/13/2023, 10:57:58 AM] [Broadlink RM] [INFO] Listening for Broadlink devices on 192.168.18.252:63580 (UDP)
[10/13/2023, 10:58:00 AM] [Broadlink RM] [INFO] Listening for Broadlink devices on 192.168.18.252:58638 (UDP)
[10/13/2023, 10:58:32 AM] [Broadlink RM] [DEBUG] (e8165625f21a) Sending command:65 with payload: 0000000031313131313131313131313131313100000000000000000000000100000000000000000000000000000100005465737420203100000000000000000000000000000000000000000000000000
[10/13/2023, 11:02:17 AM] [Broadlink RM] [INFO] Learn Code (Couldn't learn code, device not found)

This is my config without autodiscovery:

{
  "platform": "BroadlinkRM",
  "name": "Broadlink RM",
  "hideScanFrequencyButton": false,
  "hideLearnButton": false,
  "hideWelcomeMessage": false,
  "logLevel": "debug",
  "hosts": [
      {
          "address": "192.168.18.25",
          "mac": "e8:16:56:25:f2:1a",
          "isRFSupported": true,
          "isRM4": true
      }
  ]
}

Also, i can succesfully ping the RM4 in the same Homebridge host.

ping 192.168.18.25
PING 192.168.18.25 (192.168.18.25): 56 data bytes
64 bytes from 192.168.18.25: icmp_seq=0 ttl=255 time=41.083 ms

In the app, I have unchecked the "Lock Device", so it can be accessed within the network.

RM4 firmware version:

{
    "IP del dispositivo":"192.168.18.25@80",
    "MAC":"e8:16:56:25:f2:1a",
    "DID":"00000000000000000000e8165625f21a",
    "Servidor de datos":"Servidor de Europa",
    "Código S/N":" ",
    "Versión del complemento":"1.6.7.2",
    "Rasgos rutinarios":"Activador",
    "Servidor IoT":"Servidor general",
    "SDK":"2.17",
    "PID":"00000000000000000000000013520000",
    "Firmware":"V62093"
}

I do not know what I'm doing wrong :(

Sometimes I see like a feature has been added to a device (in autodiscovery):

[10/13/2023, 11:57:45 AM] [Broadlink RM] [INFO] Listening for Broadlink devices on 192.168.18.252:55561 (UDP)
[INFO] Adding RF Support to device e8165625f21a with type 5213
[10/13/2023, 11:57:46 AM] [Broadlink RM] [DEBUG] (e8165625f21a) Sending command:65 with payload: 0000000031313131313131313131313131313100000000000000000000000100000000000000000000000000000100005465737420203100000000000000000000000000000000000000000000000000
[10/13/2023, 11:57:47 AM] [Broadlink RM] [INFO] Listening for Broadlink devices on 192.168.18.252:57534 (UDP)
[10/13/2023, 11:58:02 AM] [Broadlink RM] [ERROR] Learn Code (Couldn't learn code, device not found)

As far as I can see device 5412 succesfully corresponds to my RM4 as seen in https://github.com/kiwi-cam/broadlinkjs-rm/blob/master/index.js#L55C1-L56C1, and e8165625f21a to my device Mac address (e8:16:56:25:f2:1a)

Seems the problem comes from firmware version V62093, downgraded to V62092 using this firmware and now everything is working.

See https://www.reddit.com/r/homebridge/comments/1181ex4/caution_to_people_using_broadlink_rm_plugin/