node-switchbot
    Preparing search index...

    Interface BotCommands

    interface BotCommands {
        handDown?: () => Promise<boolean>;
        handUp?: () => Promise<boolean>;
        press: () => Promise<boolean>;
        setLongPress?: (duration: number) => Promise<boolean>;
        setMode?: (mode: "press" | "switch") => Promise<CommandResult>;
        turnOff: () => Promise<boolean>;
        turnOn: () => Promise<boolean>;
    }

    Implemented by

    Index

    Properties

    handDown?: () => Promise<boolean>
    handUp?: () => Promise<boolean>
    press: () => Promise<boolean>
    setLongPress?: (duration: number) => Promise<boolean>
    setMode?: (mode: "press" | "switch") => Promise<CommandResult>
    turnOff: () => Promise<boolean>
    turnOn: () => Promise<boolean>