# ServiceAreaCommands

# ServiceAreaCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ServiceAreaCommands
```

<br />

Known direct subclasses [ServiceArea](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceArea)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceArea` | API for the ServiceArea trait. |

*** ** * ** ***

Commands for the ServiceArea trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.SelectAreasCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaCommands#selectAreas(kotlin.collections.List)(newAreas: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>)` Selects the areas where the device should attempt to operate. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.SelectAreasCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaCommands#selectAreasBatchable(kotlin.collections.List)(newAreas: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaCommands#selectAreas(kotlin.collections.List)` command. |
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.SkipAreaCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaCommands#skipArea(kotlin.UInt)(skippedArea: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Indicates to the device that the area specified by the `areaID` field should be skipped. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.SkipAreaCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaCommands#skipAreaBatchable(kotlin.UInt)(skippedArea: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaCommands#skipArea(kotlin.UInt)` command. |

## Public functions

### selectAreas

```
suspend fun selectAreas(newAreas: List<UInt>): ServiceAreaTrait.SelectAreasCommand.Response
```

Selects the areas where the device should attempt to operate.

| Parameters |
|---|---|
| `newAreas: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | The list of areas where the device should attempt to operate. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.SelectAreasCommand.Response` | The result of the completed `SelectAreas` command. |

### selectAreasBatchable

```
fun selectAreasBatchable(newAreas: List<UInt>): BatchableCommand<ServiceAreaTrait.SelectAreasCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaCommands#selectAreas(kotlin.collections.List)` command.

Selects the areas where the device should attempt to operate.

| Parameters |
|---|---|
| `newAreas: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | The list of areas where the device should attempt to operate. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.SelectAreasCommand.Response>` | BatchableCommand |

### skipArea

```
suspend fun skipArea(skippedArea: UInt): ServiceAreaTrait.SkipAreaCommand.Response
```

Indicates to the device that the area specified by the `areaID` field should be skipped.

| Parameters |
|---|---|
| `skippedArea: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html` | The area to skip, and to attempt operating in other areas on the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.Attributes#supportedAreas()` attribute list. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.SkipAreaCommand.Response` | The result of the completed `SkipArea` command. |

### skipAreaBatchable

```
fun skipAreaBatchable(skippedArea: UInt): BatchableCommand<ServiceAreaTrait.SkipAreaCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaCommands#skipArea(kotlin.UInt)` command.

Indicates to the device that the area specified by the `areaID` field should be skipped.

| Parameters |
|---|---|
| `skippedArea: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html` | The area to skip, and to attempt operating in other areas on the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.Attributes#supportedAreas()` attribute list. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ServiceAreaTrait.SkipAreaCommand.Response>` | BatchableCommand |