# ZoneManagement


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ZoneManagement : ZoneManagementTrait.Attributes, MatterTrait, Updatable, ZoneManagementCommands
```

<br />

*** ** * ** ***

API for the ZoneManagement trait. This trait provides an interface to manage regions of interest, known as zones, which can be defined by either the manufacturer or the end user. This is a minimalistic custom version of the ZoneManagement standard Matter cluster, and provides functionality for some of the zone settings.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement.Attribute : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this trait's attributes. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement.Command : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` Descriptor enum for this trait's commands. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement.ZoneStoppedEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneStopped` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement.ZoneStoppedEvent.EventFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this event's fields. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement.ZoneTriggeredEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneTriggered` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement.ZoneTriggeredEvent.EventFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this event's fields. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement#supports(com.google.home.matter.standard.ZoneManagement.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement#supports(com.google.home.matter.standard.ZoneManagement.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement.Command)` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement#factory()` |

| ### Inherited functions |
|---|
| From [com.google.home.TraitStateInvalidation](https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation#forceRead()()` | |
| From [com.google.home.Updatable](https://developers.home.google.com/reference/kotlin/com/google/home/Updatable) |---|---| | `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement` | `https://developers.home.google.com/reference/kotlin/com/google/home/Updatable#update(kotlin.Function1,kotlin.Function1)(optimisticReturn: (https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagement) -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html, init: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.MutableAttributes.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Creates a mutable copy of an object and calls the given function to mutate it, then saves it and returns a new immutable copy with the updated state. | |
| From [com.google.home.matter.standard.ZoneManagementCommands](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#createOrUpdateTrigger(com.google.home.matter.standard.ZoneManagementTrait.ZoneTriggerControlStruct)( trigger: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneTriggerControlStruct )` Creates or updates a zone trigger. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#createOrUpdateTriggerBatchable(com.google.home.matter.standard.ZoneManagementTrait.ZoneTriggerControlStruct)( trigger: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneTriggerControlStruct )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#createOrUpdateTrigger(com.google.home.matter.standard.ZoneManagementTrait.ZoneTriggerControlStruct)` command. | | `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.CreateTwoDCartesianZoneCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#createTwoDCartesianZone(com.google.home.matter.standard.ZoneManagementTrait.TwoDCartesianZoneStruct)( zone: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.TwoDCartesianZoneStruct )` Creates and stores a two-dimensional Cartesian zone. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.CreateTwoDCartesianZoneCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#createTwoDCartesianZoneBatchable(com.google.home.matter.standard.ZoneManagementTrait.TwoDCartesianZoneStruct)( zone: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.TwoDCartesianZoneStruct )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#createTwoDCartesianZone(com.google.home.matter.standard.ZoneManagementTrait.TwoDCartesianZoneStruct)` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#removeTrigger(kotlin.UShort)(zoneId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` Removes a zone trigger. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#removeTriggerBatchable(kotlin.UShort)(zoneId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#removeTrigger(kotlin.UShort)` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#removeZone(kotlin.UShort)(zoneId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` Removes the user-defined zone indicated by the `ZoneID`. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#removeZoneBatchable(kotlin.UShort)(zoneId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#removeZone(kotlin.UShort)` command. | | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#updateTwoDCartesianZone(kotlin.UShort,com.google.home.matter.standard.ZoneManagementTrait.TwoDCartesianZoneStruct)( zoneId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, zone: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.TwoDCartesianZoneStruct )` Updates a stored two-dimensional Cartesian zone. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#updateTwoDCartesianZoneBatchable(kotlin.UShort,com.google.home.matter.standard.ZoneManagementTrait.TwoDCartesianZoneStruct)( zoneId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, zone: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.TwoDCartesianZoneStruct )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementCommands#updateTwoDCartesianZone(kotlin.UShort,com.google.home.matter.standard.ZoneManagementTrait.TwoDCartesianZoneStruct)` command. | |
| From [com.google.home.matter.standard.ZoneManagementTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes) |---|---| | `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#getDescriptor()()` Returns the descriptor for the struct. | | `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. | |

| ### Inherited properties |
|---|
| From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()` | |
| From [com.google.home.matter.standard.ZoneManagementTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#featureMap()` Whether the server supports zero or more optional cluster features. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#generatedCommandList()` A list of server-generated commands (server to client) which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#maxUserDefinedZones()` The maximum number of user-defined zones supported. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#maxZones()` The maximum number of zones supported. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#sensitivity()` The sensitivity of the underlying zone triggering detection mechanism. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#sensitivityMax()` The maximum sensitivity level supported. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneTriggerControlStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#triggers()` Specifies all currently defined triggers controlling the generation of `ZoneTriggered` and `ZoneStopped` events. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.TwoDCartesianVertexStruct?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#twoDCartesianMax()` The maximum X and Y points that are allowed for TwoD Cartesian Zones. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.Attributes#zones()` All currently defined zones as a list of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ZoneManagementTrait.ZoneInformationStruct`. | |

## Public functions

### supports

```
fun supports(attribute: ZoneManagement.Attribute): Boolean
```

### supports

```
fun supports(command: ZoneManagement.Command): Boolean
```

## Public properties

### factory

```
open val factory: TraitFactory<ZoneManagement>
```