Skip to content

Releases: Teslemetry/typescript-teslemetry

@teslemetry/[email protected]

23 Jan 02:51
1d88cba

Choose a tag to compare

Patch Changes

  • 54c358b: Fix timezone bug in date formatting for telemetry history API calls

@teslemetry/[email protected]

23 Jan 00:58
684346e

Choose a tag to compare

Patch Changes

@teslemetry/[email protected]

17 Jan 03:59
2746b04

Choose a tag to compare

Patch Changes

  • 6291669: Update SSE event handling to use standard EventEmitter pattern:

    • Replace onData(), onState(), etc. with on("data"), on("state") pattern
    • Use new on("all") event for subscribing to all events
    • Add VIN filtering in event callbacks

    Improve error handling:

    • Config node tracks errors from initial API verification (auth/subscription issues)
    • All nodes now show "Error" status with red ring when API verification fails
    • Nodes wait for API verification before attempting SSE connections
    • Clearer error messages in node logs

    Refactor shared helpers:

    • Add getInstance() to get and validate config instance
    • Add hasInstanceError() for synchronous error checking (command nodes)
    • Add verifyInstance() for async verification before SSE connection
    • Add getErrorMessage() to extract useful messages from any error type (handles hey-api response objects)

@teslemetry/[email protected]

17 Jan 03:59
2746b04

Choose a tag to compare

Patch Changes

  • 6291669: Update SSE event handling to use standard EventEmitter pattern:
    • Replace onData(), onState(), etc. with on("data"), on("state") pattern
    • Use new on("all") event for subscribing to all events
    • Add VIN filtering in event callbacks

@teslemetry/[email protected]

17 Jan 03:59
2746b04

Choose a tag to compare

Patch Changes

  • 6291669: Standardize SSE event handling to use EventEmitter pattern:

    • Remove onConnection() helper method - use on("connect") and on("disconnect") instead
    • Add "all" event type to subscribe to all SSE events at once
    • Update documentation and examples to reflect new patterns

    Fix unhandled promise rejections in SSE streaming:

    • Add error handling to connect() method's internal connection loop
    • updateFields() now returns a promise that resolves/rejects when the debounced update completes
    • Multiple calls within the debounce window share the same promise
    • addField() now properly returns the promise from updateFields()

    Refactor updateFields() internals:

    • Consolidate batch state into single _fieldUpdateBatch object
    • Extract flush logic into _flushFieldUpdate() method
    • Use Deferred pattern for cleaner promise handling

@teslemetry/[email protected]

16 Jan 20:47
543c80b

Choose a tag to compare

Minor Changes

  • c47e6b4: Add teslemetry-energy-history node for retrieving historical energy data

    New node supports three history types:

    • Energy History - energy measurements (solar, battery, grid) aggregated by period
    • Backup History - off-grid event history aggregated by period
    • Telemetry (Charging) - wall connector charging history

    Configurable date range with start/end dates and timezone support.

@teslemetry/[email protected]

11 Jan 11:21
03d8e9f

Choose a tag to compare

Patch Changes

@teslemetry/[email protected]

01 Jan 08:08
affd95a

Choose a tag to compare

Patch Changes

  • e887196: Allow dates to be undefined and excluded from the API calls.

@teslemetry/[email protected]

01 Jan 04:55
167a766

Choose a tag to compare

Patch Changes

  • b7c2726: Fix types for calandarHistory

@teslemetry/[email protected]

01 Jan 03:55
77d0292

Choose a tag to compare

Patch Changes

  • 3ecc77d: Cache and refresh history endpoints