Macro for defining a Matter device with endpoints and clusters.
Example
defmodule MyApp.Light do
use MatterEx.Device,
vendor: :test,
product: :smart_light
endpoint :light, :dimmable_light
endThis generates a Supervisor that starts all cluster GenServers, including an auto-generated endpoint 0 with Descriptor and BasicInformation clusters.
Summary
Functions
Lists known product aliases that can be used with use MatterEx.Device.
Lists known vendor aliases that can be used with use MatterEx.Device.
Resolves a product ID from either a numeric ID or a known product alias.
Resolves a vendor ID from either a numeric ID or a known vendor alias.
Functions
Lists known product aliases that can be used with use MatterEx.Device.
Lists known vendor aliases that can be used with use MatterEx.Device.
@spec product_id!(non_neg_integer() | atom()) :: non_neg_integer()
Resolves a product ID from either a numeric ID or a known product alias.
@spec vendor_id!(non_neg_integer() | atom()) :: non_neg_integer()
Resolves a vendor ID from either a numeric ID or a known vendor alias.