matter_dcl: a Matter device lookup for Dart

Our second open source release turns the ID numbers a smart light shares into real names like "WiZ P45.E27". matter_dcl is a Dart package for Flutter apps.

A white smart bulb lit warm white against an orange and magenta wall

When a smart light joins your network, it doesn’t announce itself as “Living room lamp”. It shares two numbers: one for the company that made it and one for the product. Turning those numbers into something a person recognises is a small job, but every smart home app has to do it.

Today we’re releasing the code we use for that in the Firedance app.

matter_dcl

matter_dcl looks up Matter devices in the Distributed Compliance Ledger, the official public registry run by the Connectivity Standards Alliance. Give it a device’s vendor and product numbers and it returns the company and product name, along with links to the product and support pages when the maker has registered them.

It’s written in Dart, so it works in Flutter apps on phones and computers, and on servers too.

A few details we cared about:

  • It never crashes your app. If a number isn’t registered, or the network is slow, you get “not found” instead of an error.
  • It’s quick. Results are saved, so the same device is only looked up once.
  • It’s honest about names. Brands and the companies behind them don’t always match. LIFX lights are registered by Feit Electric, for example, so the package makes it easy to show the product name people know.

It’s free under the Apache 2.0 license, and it’s on pub.dev, the home of Dart and Flutter packages, so adding it to an app is one line:

dart pub add matter_dcl

View matter_dcl on pub.dev · View it on GitHub · Project page

More this month

This is the first of six open source releases we’re sharing in the run-up to Halloween. Each one lands on GitHub the day its post goes up. For FirePod news, sign up for updates.

More from Firedance

Hear when FirePod goes on saleGet the early-bird price

FirePod isn't on sale yet. Leave your email and we'll write when it is.

FirePod isn't on sale yet. Sign up and the early-bird price comes to your inbox when it is.