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

    Type Alias RangeDeclaration

    Declaration of a numeric range control, e.g. a dimmer. Commands carry {"value": number}.

    type RangeDeclaration = {
        key: string;
        max: number;
        min: number;
        step?: number;
        type: "range";
        unit?: string;
    }
    Index

    Properties

    Properties

    key: string

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

    max: number

    Highest accepted value.

    min: number

    Lowest accepted value.

    step?: number

    UI step hint; a hint only, never a validation constraint.

    type: "range"

    Discriminant for a range control.

    unit?: string

    Display unit, e.g. "percent".