ValidationIssue

sealed class ValidationIssue

Known direct subclasses
AutomationTooLarge

The automation's serialized form is larger than what is allowed by the abuse prevention config for the calling application.

BlockedAction

The action could impact the safety, security, or privacy of a household.

ConditionDurationOutOfRange

The condition duration is outside the accepted range of 1-30 minutes.

DelayDurationOutOfRange

Delay duration is outside the accepted range of 5 seconds to 24 hours.

DuplicateStarterNode

The starter is listening to the same trait change or event as existing starter nodes.

InvalidArgumentCount

The expression has an invalid argument count.

InvalidArgumentsForOperator

Represents the data type of a value.

InvalidCommand

The command ID is not found in the command schema.

InvalidConditionType

The condition type is not valid.

InvalidDuration

The duration is invalid.

InvalidEntity

The Entity (ID or name) does not exist or belong to the user.

InvalidEvent

The event ID is not found in the event schema.

InvalidField

The FIELD_SELECT expression uses an invalid field.

InvalidNullParameterValue

The parameter value must not be null.

InvalidOperand

The expression uses an invalid operand.

InvalidParameterType

The parameter type is not valid.

InvalidParameter

The parameter name is not found in the behavior schema.

InvalidReference

The Reference is not valid.

InvalidTrait

The trait ID is not found in the trait schema.

InvalidValue

The value is invalid.

MisplacedSelectFlow

The select flow node must be the first node in an automation.

MisplacedStarterNode

The starter node must be the first node in an automation or in a select flow.

MissingRequiredFields

Missing required field(s) in the automation graph.

MissingRequiredParameters

Required parameters not set.

MissingStarterNode

The node cannot be reached without a preceding starter node.

MultipleManualStarters

The automation has more than one manual starter node.

OutputNotAccessible

An output reference is not accessible.

OutputReinitialized

An output variable has been reinitialized in multiple nodes.

OutputTypeMismatch

An output variable has been defined in multiple nodes with different types.

ReadOnlyAttribute

The attribute is not modifiable without a command, by write.

SuppressionDurationOutOfRange

The suppression duration is outside the accepted range of 5 seconds to 24 hours.

TooManyNodes

The automation has more nodes than allowed by the abuse prevention config for the calling application.

TooManyOperations

The expression has more operations than allowed by the abuse prevention config for the calling application.

UnknownIssue

Default validation issue type.

UnsubscribableAttribute

The attribute is not subscribable thus cannot be used in a starter.

UnsupportedActionBehavior

The entity behavior type is not supported by the action node.

UnsupportedEntityCommand

The command is not supported by the entity.

UnsupportedEntityEvent

The event is not supported by the entity.

UnsupportedEntityParameterValue

The parameter value is not supported by the entity.

UnsupportedEntityParameter

The parameter is not supported by the entity.

UnsupportedEntityTrait

The trait is not supported by the entity.

UnsupportedEntityType

The entity type is not supported by the entity.

UnsupportedNodeOutput

This type of node does not produce output.

UnsupportedOperator

The expression uses an unsupported operator.

UnsupportedStarterBehavior

The entity behavior type is not supported by the starter node.

UnsupportedStateReaderBehavior

The entity behavior type is not supported by the state reader node.

UnsupportedSubNodeType

The sub-node type is not allowed inside the parent node.


The base class for validation issues.

Summary

Protected constructors

ValidationIssue(
    node: Node,
    severity: ValidationIssueSeverity,
    issueType: ValidationIssueType
)

Create a ValidationIssue instance.

Public functions

open String

Public properties

ValidationIssueType

The type of the validation issue.

Node

The node for which validation is failing.

ValidationIssueSeverity

The severity of the validation issue.

Protected constructors

ValidationIssue

protected ValidationIssue(
    node: Node,
    severity: ValidationIssueSeverity,
    issueType: ValidationIssueType
)

Create a ValidationIssue instance.

Public functions

toString

open fun toString(): String

Public properties

issueType

val issueTypeValidationIssueType

The type of the validation issue.

node

val nodeNode

The node for which validation is failing.

severity

val severityValidationIssueSeverity

The severity of the validation issue.