LAN discovery - bulb type/capabilities

Is there a way to determine the bulb type when using the LAN API?

I want to filter the functions available in my app by the type of bulb being managed.

TIA!

When you’ve discovered a light you can send it a GetVersion message.

It will then reply with a StateVersion message which contains the vendor and product IDs.

You can use these IDs to lookup the supported capabilities in the Products Table.

There is also JSON version of the table available, see:

That’d work. Worst case I can imbed it in my code. Is there any chance of the json table becoming available on a public runtime API?

You could embed the JSON and periodically update it via the raw GitHub URL:

https://raw.githubusercontent.com/LIFX/products/master/products.json

The embedded copy could also serve as fallback when GitHub is offline or when the repo is deleted or the layout changes.