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.

Unable to discover lights

See original GitHub issue

I have a handful of LIFX bulbs: 2x LIFX Original, 1x LIFX Color 1000 and 4x LIFX DL.

I ran verbose_lan.py, and got the following output, however Found Bulbs comes back empty. Any ideas why it’s not being parsed correctly? I tried parsing the bytes but couldn’t quite get the format down.

I did get 10 packets, but I’ve included the 7 unique packets.

Dump

Discovery will go much faster if you provide the number of lights on your LAN: python verbose_lan.py <number of lights on LAN>

Discovering lights… SEND: GetService Size: 36 Origin: 0 Tagged: 1 Protocol: 1024 Source ID: 19946 Target MAC Address: 00:00:00:00:00:00 Ack Requested: 0 Response Requested: 1 Seq Num: 0 Message Type: 2 Payload: <empty> Bytes: [β€˜0x24’, β€˜0x0’, β€˜0x0’, β€˜0x34’, β€˜0xea’, β€˜0x4d’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x1’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x2’, β€˜0x0’, β€˜0x0’, β€˜0x0’]

RECV: Message Size: 10496 Origin: 0 Tagged: 0 Protocol: 20 Source ID: 3930914816 Target MAC Address: d0:73:d5:27:b2:ae Ack Requested: 0 Response Requested: 1 Seq Num: 0 Message Type: 768 Payload: <empty> Bytes: [β€˜0x29’, β€˜0x0’, β€˜0x0’, β€˜0x14’, β€˜0xea’, β€˜0x4d’, β€˜0x0’, β€˜0x0’, β€˜0xd0’, β€˜0x73’, β€˜0xd5’, β€˜0x27’, β€˜0xb2’, β€˜0xae’, β€˜0x0’, β€˜0x0’, β€˜0x4c’, β€˜0x49’, β€˜0x46’, β€˜0x58’, β€˜0x56’, β€˜0x32’, β€˜0x1’, β€˜0x0’, β€˜0x0’, β€˜0x2a’, β€˜0x7b’, β€˜0x39’, β€˜0x2c’, β€˜0x80’, β€˜0x1’, β€˜0x0’, β€˜0x3’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x1’, β€˜0x7c’, β€˜0xdd’, β€˜0x0’, β€˜0x0’]

RECV: Message Size: 10496 Origin: 0 Tagged: 0 Protocol: 20 Source ID: 3930914816 Target MAC Address: d0:73:d5:12:56:28 Ack Requested: 0 Response Requested: 1 Seq Num: 0 Message Type: 768 Payload: <empty> Bytes: [β€˜0x29’, β€˜0x0’, β€˜0x0’, β€˜0x14’, β€˜0xea’, β€˜0x4d’, β€˜0x0’, β€˜0x0’, β€˜0xd0’, β€˜0x73’, β€˜0xd5’, β€˜0x12’, β€˜0x56’, β€˜0x28’, β€˜0x0’, β€˜0x0’, β€˜0x4c’, β€˜0x49’, β€˜0x46’, β€˜0x58’, β€˜0x56’, β€˜0x32’, β€˜0x1’, β€˜0x0’, β€˜0xc8’, β€˜0xa9’, β€˜0x9c’, β€˜0xfc’, β€˜0x8b’, β€˜0xab’, β€˜0x20’, β€˜0x15’, β€˜0x3’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x1’, β€˜0x7c’, β€˜0xdd’, β€˜0x0’, β€˜0x0’]

RECV: Message Size: 10496 Origin: 0 Tagged: 0 Protocol: 20 Source ID: 3930914816 Target MAC Address: d0:73:d5:27:80:a4 Ack Requested: 0 Response Requested: 1 Seq Num: 0 Message Type: 768 Payload: <empty> Bytes: [β€˜0x29’, β€˜0x0’, β€˜0x0’, β€˜0x14’, β€˜0xea’, β€˜0x4d’, β€˜0x0’, β€˜0x0’, β€˜0xd0’, β€˜0x73’, β€˜0xd5’, β€˜0x27’, β€˜0x80’, β€˜0xa4’, β€˜0x0’, β€˜0x0’, β€˜0x4c’, β€˜0x49’, β€˜0x46’, β€˜0x58’, β€˜0x56’, β€˜0x32’, β€˜0x1’, β€˜0x0’, β€˜0x40’, β€˜0xd2’, β€˜0xee’, β€˜0x64’, β€˜0x2c’, β€˜0x80’, β€˜0x1’, β€˜0x0’, β€˜0x3’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x1’, β€˜0x7c’, β€˜0xdd’, β€˜0x0’, β€˜0x0’]

RECV: Message Size: 10496 Origin: 0 Tagged: 0 Protocol: 20 Source ID: 3930914816 Target MAC Address: d0:73:d5:25:d1:77 Ack Requested: 0 Response Requested: 1 Seq Num: 0 Message Type: 768 Payload: <empty> Bytes: [β€˜0x29’, β€˜0x0’, β€˜0x0’, β€˜0x14’, β€˜0xea’, β€˜0x4d’, β€˜0x0’, β€˜0x0’, β€˜0xd0’, β€˜0x73’, β€˜0xd5’, β€˜0x25’, β€˜0xd1’, β€˜0x77’, β€˜0x0’, β€˜0x0’, β€˜0x4c’, β€˜0x49’, β€˜0x46’, β€˜0x58’, β€˜0x56’, β€˜0x32’, β€˜0x1’, β€˜0x0’, β€˜0xc0’, β€˜0x53’, β€˜0x3f’, β€˜0xff’, β€˜0x2b’, β€˜0x80’, β€˜0x1’, β€˜0x0’, β€˜0x3’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x1’, β€˜0x7c’, β€˜0xdd’, β€˜0x0’, β€˜0x0’]

RECV: Message Size: 10496 Origin: 0 Tagged: 0 Protocol: 20 Source ID: 3930914816 Target MAC Address: d0:73:d5:27:bd:b1 Ack Requested: 0 Response Requested: 1 Seq Num: 0 Message Type: 768 Payload: <empty> Bytes: [β€˜0x29’, β€˜0x0’, β€˜0x0’, β€˜0x14’, β€˜0xea’, β€˜0x4d’, β€˜0x0’, β€˜0x0’, β€˜0xd0’, β€˜0x73’, β€˜0xd5’, β€˜0x27’, β€˜0xbd’, β€˜0xb1’, β€˜0x0’, β€˜0x0’, β€˜0x4c’, β€˜0x49’, β€˜0x46’, β€˜0x58’, β€˜0x56’, β€˜0x32’, β€˜0x1’, β€˜0x0’, β€˜0x80’, β€˜0xab’, β€˜0xdd’, β€˜0x4d’, β€˜0x2c’, β€˜0x80’, β€˜0x1’, β€˜0x0’, β€˜0x3’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x1’, β€˜0x7c’, β€˜0xdd’, β€˜0x0’, β€˜0x0’]

RECV: Message Size: 10496 Origin: 0 Tagged: 0 Protocol: 84 Source ID: 3930914816 Target MAC Address: d0:73:d5:00:bd:16 Ack Requested: 0 Response Requested: 0 Seq Num: 0 Message Type: 768 Payload: <empty> Bytes: [β€˜0x29’, β€˜0x0’, β€˜0x0’, β€˜0x54’, β€˜0xea’, β€˜0x4d’, β€˜0x0’, β€˜0x0’, β€˜0xd0’, β€˜0x73’, β€˜0xd5’, β€˜0x0’, β€˜0xbd’, β€˜0x16’, β€˜0x0’, β€˜0x0’, β€˜0x4c’, β€˜0x49’, β€˜0x46’, β€˜0x58’, β€˜0x56’, β€˜0x32’, β€˜0x0’, β€˜0x0’, β€˜0xc4’, β€˜0xa3’, β€˜0x85’, β€˜0xdb’, β€˜0x8b’, β€˜0xab’, β€˜0x20’, β€˜0x15’, β€˜0x3’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x1’, β€˜0x7c’, β€˜0xdd’, β€˜0x0’, β€˜0x0’]

RECV: Message Size: 10496 Origin: 0 Tagged: 0 Protocol: 84 Source ID: 3930914816 Target MAC Address: d0:73:d5:03:47:c4 Ack Requested: 0 Response Requested: 0 Seq Num: 0 Message Type: 768 Payload: <empty> Bytes: [β€˜0x29’, β€˜0x0’, β€˜0x0’, β€˜0x54’, β€˜0xea’, β€˜0x4d’, β€˜0x0’, β€˜0x0’, β€˜0xd0’, β€˜0x73’, β€˜0xd5’, β€˜0x3’, β€˜0x47’, β€˜0xc4’, β€˜0x0’, β€˜0x0’, β€˜0x4c’, β€˜0x49’, β€˜0x46’, β€˜0x58’, β€˜0x56’, β€˜0x32’, β€˜0x0’, β€˜0x0’, β€˜0xc4’, β€˜0xc1’, β€˜0x1’, β€˜0x5’, β€˜0x8c’, β€˜0xab’, β€˜0x20’, β€˜0x15’, β€˜0x3’, β€˜0x0’, β€˜0x0’, β€˜0x0’, β€˜0x1’, β€˜0x7c’, β€˜0xdd’, β€˜0x0’, β€˜0x0’]

Found Bulbs:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mclarkkcommented, Apr 8, 2018

Ahhh gawdddd, it’s because the endianness of the machine is different. The part of the library that uses C structs is reading the bytes in reverse. I’m working on a fix!

0reactions
Reaselcommented, Mar 4, 2021

So I just ran into this problem and it was fixed by uninstalling the pip version and installing from source. before I was getting a very similar output to OP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App doesn't find lights : r/WLED - Reddit
Hi, I don't know why but andoid app doesn't find any lights and i ... settings in the ap but still it can't...
Read more >
Issue with WLED app on iphone, no lights found no matter what
However, I cannot figure out how to make the WLED app to find my lights, it seems it is not finding the device...
Read more >
1. Fail to add light? - pdf.lowes.com
Please try multiple times to discover lights due to possible network issues. If the App still fail to discover lights please link Smart...
Read more >
Reset Smart Light Bulbs - Amazon Customer Service
If your smart light bulb isn't working, or Alexa can't discover it, reset your device. To reset your smart light bulb: Go to...
Read more >
How to fix Hue lights that have stopped working with Alexa
Isn't it brilliant being able to control your Hue lights with your voice? Well, it is until you find out that Alexa won't...
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