question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BroadLink SP Mini Wi-Fi switch and BroadLinkRM Mini 3

See original GitHub issue

Every time I tried to use learn toggle switch on my iPhone, I would get following error.

Discovered Broadlink RM device at 192.168.1.4 (37:27:04:01:a8:c0)
/usr/local/lib/node_modules/homebridge-broadlink-rm/helpers/learnData.js:59
  device.enterLearning()
         ^

TypeError: device.enterLearning is not a function
    at Object.start (/usr/local/lib/node_modules/homebridge-broadlink-rm/helpers/learnData.js:59:10)
    at LearnIRAccessory.toggleLearning (/usr/local/lib/node_modules/homebridge-broadlink-rm/accessories/learnIR.js:19:17)
    at emitMany (events.js:127:13)
    at emit (events.js:201:7)
    at Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:155:10)
    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:740:22)
    at Array.forEach (native)
    at Bridge.Accessory._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:685:8)
    at emitMany (events.js:127:13)
    at HAPServer.emit (events.js:201:7)

I just noticed this plugin was picking up 2 of my BroadLink SP Mini Wi-Fi switch as well as BroadLinkRM Mini 3. The mac address for all 3 were incorrect but IP address was correct.

For example: Discovered Broadlink RM device at 192.168.1.4 (37:27:04:01:a8:c0)

So, I turned off both of BroadLink SP Mini Wi-Fi switch, this plugin works. Looks like I found the root cause of the above conflict. It might be helpful for others. Let me know if you want me troubleshoot anything.

I was also wondering, can you control BroadLink SP Mini Wi-Fi with your plugin?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lprhodescommented, Mar 30, 2017

I assume that’s with your SP switches? Looking at broadlinkjs it appears SP’s works differently.

I can add support for them but it won’t be until next week.

1reaction
lprhodescommented, Mar 30, 2017

Hey - thanks for reporting this. I don’t have any other devices but the Broadlink RM to it’s useful to get these kind of reports.

I’ve fixed the issue you were seeing in 1.0.4 so you can have all the devices on the network.

If you were able to get the decrypted hex codes for the BroadLink SP Mini Wi-Fi with as packet sniffer like Wireshark (for IR/RF we normally get through the Learn IR function) then I don’t see why you wouldn’t be able to use them.

You could tweak broadlinkjs to pass the encrypted hex code through to get the decrypted one back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BroadLink I Redefining Smart Home
Leading the smart home industry since 2013, BroadLink aims to provide an easy, fast, reliable smart home experience for everyone.
Read more >
Broadlink WiFi Smart Home Hub RM Mini 3 IR Automation ...
BroadLink RM Mini 3 remote turns your smartphone into a universal remote and integrates control of home entertainment and automation devices in one...
Read more >
New Upgrade BroadLink SP Mini 3 WiFi Smart Home ...
New Upgrade BroadLink SP Mini 3 WiFi Smart Home Socket Switch Plug Timer Wireless Remote Controller ; 3. Remote Control no matter Wifi...
Read more >
Broadlink RM mini 3 wifi setup and review (1/3) - YouTube
RM Mini 3 Broadlink Universal Wifi remote controller; Review and configuration.https://amzn.to/2lbUMpjIn this video, I unbox the Remote ...
Read more >
BroadLink on the App Store
Download BroadLink and enjoy it on your iPhone, iPad, and iPod touch. ... I also like that the rm4 mini broadcasts devices over...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found