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

    Interface Away

    interface Away {
        apiModuleName: string;
        childId: string | undefined;
        device: Plug;
        addRule(rule: AwayRuleInput, sendOptions?: SendOptions): Promise<unknown>;
        deleteAllRules(sendOptions?: SendOptions): Promise<unknown>;
        deleteRule(id: string, sendOptions?: SendOptions): Promise<unknown>;
        editRule(
            rule: AwayRuleInput & { id: string },
            sendOptions?: SendOptions,
        ): Promise<unknown>;
        getRule(
            id: string,
            sendOptions?: SendOptions,
        ): Promise<{ id: string } & HasErrCode>;
        getRules(
            sendOptions?: SendOptions,
        ): Promise<HasRuleListWithRuleIds & HasErrCode>;
        setOverallEnable(
            enable: boolean | 0 | 1,
            sendOptions?: SendOptions,
        ): Promise<unknown>;
    }
    Index
    apiModuleName: string
    childId: string | undefined = undefined
    device: Plug