Hierarchy

  • Emeter

Constructors

Properties

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

Accessors

Methods

  • Erase Emeter Statistics.

    Sends emeter.erase_runtime_stat command. Supports childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Get Daily Emeter Statistics.

    Sends emeter.get_daystat command. Supports childId.

    Parameters

    • year: number
    • month: number
    • Optional sendOptions: SendOptions

    Returns Promise<unknown>

    parsed JSON response

  • Get Monthly Emeter Statistics.

    Sends emeter.get_monthstat command. Supports childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

  • Gets device's current energy stats.

    Requests emeter.get_realtime. Older devices return current, voltage, etc, while newer devices return current_ma, voltage_mv etc This will return a normalized response including both old and new style properties for backwards compatibility. Supports childId.

    Parameters

    Returns Promise<unknown>

    parsed JSON response

Generated using TypeDoc