Interface Switch

Represents a physical switch with multiple positions.

interface Switch {
    getNumberOfPositions: (extra?: Struct) => Promise<number>;
    getPosition: (extra?: Struct) => Promise<number>;
    name: string;
    setPosition: (position: number, extra?: Struct) => Promise<void>;
    doCommand(command: Struct): Promise<JsonValue>;
}

Hierarchy (View Summary, Expand)

Implemented by

Properties

getNumberOfPositions: (extra?: Struct) => Promise<number>

Get the total number of positions available on the switch.

getPosition: (extra?: Struct) => Promise<number>

Get the current position of the switch.

name: string

The name of the resource.

setPosition: (position: number, extra?: Struct) => Promise<void>

Set the switch to a specific position.

Methods

MMNEPVFCICPMFPCPTTAAATR