@qualithm/device - v0.12.2
    Preparing search index...

    Type Alias EnumDeclaration

    Declaration of a closed-set control. Commands carry {"value": "option"}.

    type EnumDeclaration = {
        key: string;
        options: string[];
        type: "enum";
    }
    Index

    Properties

    Properties

    key: string

    Capability key, unique per device; must survive an MQTT topic level unescaped.

    options: string[]

    The accepted values; at least one non-empty string.

    type: "enum"

    Discriminant for an enum control.