# DoorLockTrait.DoorLockAlarm

# DoorLockTrait.DoorLockAlarm


```
interface DoorLockTrait.DoorLockAlarm : ClusterStruct
```

<br />

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

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLock.DoorLockAlarmEvent` |   |

*** ** * ** ***

Indicates that there is a critical state on the door lock.

## Summary

| ### Public functions |
|---|---|
| `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/DoorLockTrait.DoorLockAlarm#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/DoorLockTrait.DoorLockAlarm#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. |

| ### Public properties |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.AlarmCodeEnum?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DoorLockTrait.DoorLockAlarm#alarmCode()` The alarm code of the event. |

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### alarmCode

```
val alarmCode: DoorLockTrait.AlarmCodeEnum?
```

The alarm code of the event.