updateSmartEventSwitchState(params: UpdateSwitchStateParams)
Requires:
@tuya-miniapp/cloud-api≥1.0.5
Description
Update smart event switch
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request body |
Return Value
Type: Promise<boolean>
Whether the update was successful
Valid Values
UpdateSwitchStateParams.switchState
| Value | Description | Since |
|---|---|---|
0 | - | - |
1 | - | - |
UpdateSwitchStateParams.serviceBusinessType
| Value | Description | Since |
|---|---|---|
aiSmartFreeEvent | - | - |
aiSmartFreeEventImage2Text | - | - |