Hierarchy

  • Away

Constructors

  • Parameters

    • device: Plug
    • apiModuleName: string
    • childId: undefined | string = undefined

    Returns Away

Properties

apiModuleName: string
childId: undefined | string = undefined
device: Plug

Methods

  • Adds Away Rule.

    Sends anti_theft.add_rule command and returns rule id. Support childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Deletes All Away Rules.

    Sends anti_theft.delete_all_rules command. Support childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Deletes Away Rule.

    Sends anti_theft.delete_rule command. Support childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Edits Away rule.

    Sends anti_theft.edit_rule command and returns rule id. Support childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Gets Away Rule.

    Requests anti_theft.get_rules and return rule matching Id. Support childId.

    Parameters

    Returns Promise<{
        id: string;
    } & HasErrCode>

  • Enables or Disables Away Rules.

    Sends anti_theft.set_overall_enable command. Support childId.

    Parameters

    • enable: boolean | 0 | 1
    • Optional sendOptions: SendOptions

    Returns Promise<unknown>

    parsed JSON response

Generated using TypeDoc