setGroupProperty
Requires:
DeviceKit≥2.3.1@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
setGroupProperty(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Set group attributes
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
groupId | string | Yes | Group ID | — |
code | string | Yes | Group attribute code; you can query the corresponding attribute definition on the Tuya IoT Platform | — |
value | string | Yes | Attribute value; the attribute's setting value corresponding to the code | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | () => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None