Device SupportGroup Support
useSupport
Requires:
@ray-js/panel-sdk≥1.10.0
Method signature
useSupport()Description
Get a device capability detection instance to determine the features and protocols the device supports
Parameters
None
Return Value
Type: SupportAbilityMethods
SmartSupportAbility instance object
Referenced Types
interface
SupportAbilityMethods| Property | Type | Description |
|---|---|---|
isSupportDp | (dpCode: string, isForce: boolean) => boolean | Check whether the device supports the specified function point |
isSupportBright | (isForce: boolean) => boolean | Check whether the device supports white-light brightness |
isSupportTemp | (isForce: boolean) => boolean | Check whether the device supports color temperature |
isSupportColour | (isForce: boolean) => boolean | Check whether the device supports colored light |
isSupportCloudTimer | () => boolean | Check whether the device supports cloud-based scheduling |
isSupportMatterWhite | (force: boolean) => boolean | Check whether Matter white light is supported |
isInGateway | () => boolean | Check whether the device has been added to a gateway |
isGroupDevice | () => boolean | Check whether the current device is a group device |
hasCapability | (id: number) => boolean | Check whether the device has the specified protocol capability (the input is a DeviceCapability enum value) |
isWifiDevice | () => boolean | Check whether it is a Wi-Fi device |
isGprsDevice | () => boolean | Determine whether it is a GPRS device |
isBluetoothDevice | () => boolean | Determine whether it is a Bluetooth device |
isBleMeshDevice | () => boolean | Determine whether it is a BLE Mesh device |
isZigbeeDevice | () => boolean | Determine whether it is a Zigbee device |
isSigMeshDevice | () => boolean | Determine whether it is a SIG Mesh device |
isBleDevice | () => boolean | Determine whether it is a Bluetooth‑type device (including Bluetooth / BLE Mesh / SIG Mesh) |
isCat1Device | () => boolean | Determine whether it is a Cat.1 device |
isBeaconDevice | () => boolean | Determine whether it is a Beacon device |
isLteCat4Device | () => boolean | Determine whether it is an LTE Cat.4 device |
isLteCat10Device | () => boolean | Determine whether it is an LTE Cat.10 device |
isLteCatMDevice | () => boolean | Determine whether it is an LTE Cat.M device |
isThreadDevice | () => boolean | Determine whether it is a Thread device |
isMatterDevice | () => boolean | Determine whether it is a Matter device (including Tuya Matter and third‑party Matter) |
isTuyaMatterDevice | () => boolean | Determine whether it is a Tuya Matter device (excluding third‑party Matter) |
isTripartiteMatter | () => boolean | Check whether it is a third-party Matter device |