# GeneralDiagnosticsCommands


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

<br />

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

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

*** ** * ** ***

Commands for the GeneralDiagnostics trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.PayloadTestRequestCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsCommands#payloadTestRequest(kotlin.ByteArray,kotlin.UByte,kotlin.UShort)(enableKey: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, count: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.PayloadTestRequestCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsCommands#payloadTestRequestBatchable(kotlin.ByteArray,kotlin.UByte,kotlin.UShort)( enableKey: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html, value: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, count: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html )` |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsCommands#testEventTrigger(kotlin.ByteArray,kotlin.ULong)(enableKey: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html, eventTrigger: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html)` |
| `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/GeneralDiagnosticsCommands#testEventTriggerBatchable(kotlin.ByteArray,kotlin.ULong)(enableKey: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html, eventTrigger: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html)` |
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.TimeSnapshotCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsCommands#timeSnapshot()()` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsTrait.TimeSnapshotCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/GeneralDiagnosticsCommands#timeSnapshotBatchable()()` |

## Public functions

### payloadTestRequest

```
suspend fun payloadTestRequest(enableKey: ByteArray, value: UByte, count: UShort): GeneralDiagnosticsTrait.PayloadTestRequestCommand.Response
```

### payloadTestRequestBatchable

```
fun payloadTestRequestBatchable(
    enableKey: ByteArray,
    value: UByte,
    count: UShort
): BatchableCommand<GeneralDiagnosticsTrait.PayloadTestRequestCommand.Response>
```

### testEventTrigger

```
suspend fun testEventTrigger(enableKey: ByteArray, eventTrigger: ULong): Unit
```

### testEventTriggerBatchable

```
fun testEventTriggerBatchable(enableKey: ByteArray, eventTrigger: ULong): BatchableCommand<Unit>
```

### timeSnapshot

```
suspend fun timeSnapshot(): GeneralDiagnosticsTrait.TimeSnapshotCommand.Response
```

### timeSnapshotBatchable

```
fun timeSnapshotBatchable(): BatchableCommand<GeneralDiagnosticsTrait.TimeSnapshotCommand.Response>
```