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

    Interface BulbSchedule

    interface BulbSchedule {
        apiModuleName: string;
        childId?: string;
        device: Bulb;
        nextAction: ScheduleNextActionResponse | undefined;
        addRule(
            rule: BulbScheduleRuleInput,
            sendOptions?: SendOptions,
        ): Promise<{ id: string }>;
        deleteAllRules(sendOptions?: SendOptions): Promise<unknown>;
        deleteRule(id: string, sendOptions?: SendOptions): Promise<unknown>;
        editRule(
            rule: BulbScheduleRuleInput & { 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
      • BulbSchedule
    Index
    apiModuleName: string
    childId?: string
    device: Bulb
    nextAction: ScheduleNextActionResponse | undefined