InvalidCommand

class InvalidCommand : ValidationIssue


The command ID is not found in the command schema. Optional expectedBehaviorType indicates it belongs to other schemas.

Summary

Public constructors

InvalidCommand(
    node: Node,
    severity: ValidationIssueSeverity,
    commandId: String,
    expectedBehaviorType: String
)

Create an InvalidCommand instance.

Public properties

String

The unique ID of the command.

String

Description of the expected behavior.

Inherited properties

From com.google.home.automation.ValidationIssue
ValidationIssueType

The type of the validation issue.

Node

The node for which validation is failing.

ValidationIssueSeverity

The severity of the validation issue.

Public constructors

InvalidCommand

InvalidCommand(
    node: Node,
    severity: ValidationIssueSeverity,
    commandId: String,
    expectedBehaviorType: String
)

Create an InvalidCommand instance.

Public properties

commandId

val commandIdString

The unique ID of the command.

expectedBehaviorType

val expectedBehaviorTypeString

Description of the expected behavior. Set to TRAIT_ID or EVENT_ID when commandId is not a valid command, but is a valid trait or event.