checkIsMatterDevice(schema: any, force?: any)
版本要求:
≥1.15.0
描述
根据 schema 判断当前设备是否为 Matter 照明面板。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
schema | any | 是 | Matter 面板的 schema(数组或 code 为键的对象) |
force | any | 否 | 为 true 时忽略缓存,重新计算 |
返回值
类型:boolean
是否为 Matter 面板
根据 schema 判断当前设备是否为 Matter 照明面板。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
schema | any | 是 | Matter 面板的 schema(数组或 code 为键的对象) |
force | any | 否 | 为 true 时忽略缓存,重新计算 |