@jstark/tplink-smarthome-api
    Preparing search index...

    Interface PlugSchedule

    interface PlugSchedule {
        apiModuleName: string;
        childId?: string;
        device: Plug;
        nextAction: ScheduleNextActionResponse | undefined;
        addRule(
            rule: PlugScheduleRuleInput,
            sendOptions?: SendOptions,
        ): Promise<{ id: string }>;
        deleteAllRules(sendOptions?: SendOptions): Promise<unknown>;
        deleteRule(id: string, sendOptions?: SendOptions): Promise<unknown>;
        editRule(
            rule: PlugScheduleRuleInput & { id: string },
            sendOptions?: SendOptions,
        ): Promise<unknown>;
        eraseStats(sendOptions?: SendOptions): Promise<unknown>;
        getDayStats(
            year: number,
            month: number,
            sendOptions?: SendOptions,
        ): Promise<unknown>;
        getMonthStats(year: number, sendOptions?: SendOptions): Promise<unknown>;
        getNextAction(
            sendOptions?: SendOptions,
        ): Promise<ScheduleNextActionResponse>;
        getRule(
            id: string,
            sendOptions?: SendOptions,
        ): Promise<ScheduleRuleResponse>;
        getRules(sendOptions?: SendOptions): Promise<ScheduleRulesResponse>;
        setOverallEnable(
            enable: boolean,
            sendOptions?: SendOptions,
        ): Promise<unknown>;
    }

    Hierarchy

    • default
      • PlugSchedule
    Index
    apiModuleName: string
    childId?: string
    device: Plug
    nextAction: ScheduleNextActionResponse | undefined