checkIsMatterDevice(schema: any, force?: any)
Requires:
≥1.15.0
Description
Determine whether the current device is a Matter lighting panel based on the schema.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
schema | any | Yes | Schema of the Matter panel (an array or an object keyed by code) |
force | any | No | Ignore cache and recompute when true |
Return Value
Type: boolean
Whether it is a Matter panel