---
name: "unbindRule"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.14.0" }
title: "device.unbindRule - 解绑联动规则"
---

## unbindRule

> [VERSION] Base Library >= 2.14.0

### Description

Unbind automation rule

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `IUnbindRule` | Yes | Unbinding parameters, including binding ID and home ID |

### Return Value

Type: `Promise<boolean>`

Whether unbinding succeeded

### Referenced Types

##### `interface` IUnbindRule

| Property | Type | Description |
| --- | --- | --- |
| `bindId` | `string` | Unbind ID |
| `gid` | `string` | Home ID |


### Examples

#### Unbind automation rule

```ts
ty.unbindRule({
  bindId: 'bindId_001',
  gid: '456789',
}).then((success) => {
  console.log('Unbind result', success);
});
```
