Skip to content

feat: add Delta Pro 3 support to schemas and rest client#51

Merged
rustyy merged 15 commits into
developmentfrom
feature/delta-pro-3
Jun 23, 2026
Merged

feat: add Delta Pro 3 support to schemas and rest client#51
rustyy merged 15 commits into
developmentfrom
feature/delta-pro-3

Conversation

@rustyy

@rustyy rustyy commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

This PR adds first-class support for the EcoFlow Delta Pro 3 across both workspace packages:

  • @ecoflow-api/schemas
  • @ecoflow-api/rest-client

It introduces typed property/command schemas, a dedicated DeltaPro3 device implementation, factory integration, and comprehensive Jest coverage.

What’s included

  • Added new deltaPro3 schema module in @ecoflow-api/schemas:

    • serialNumber support for MR51* devices (DeltaPro3SerialNumber + guard)
    • getProperties schema (deltaPro3QuotaAllSchema)
    • setCommands schema definitions for Delta Pro 3 commands
    • export wiring via packages/schemas/src/deltaPro3/index.ts and root packages/schemas/src/index.ts
  • Added new DeltaPro3 device in @ecoflow-api/rest-client:

    • getProperties parsing via deltaPro3QuotaAllSchema
    • command methods for:
      • beep, AC/DC/device/screen timeout, screen brightness
      • AC output toggles and AC frequency
      • 12V output and X-Boost
      • shutdown, charge/discharge limits, backup reserve level
      • low/high-voltage PV max input
      • max AC charging power and I/O charging power
      • smart generator auto-start + start/stop SOC
      • GFCI, Bluetooth timeout, AC energy-saving mode
      • battery charging/discharging order
  • Integrated DeltaPro3 in DeviceFactory and added factory test coverage.

  • Added test fixture:

    • deltaPro3Properties for shared property parsing/getter tests.
  • Expanded tests:

    • new DeltaPro3.test.ts for command payloads + validation behavior
    • updated shared device tests to include Delta Pro 3
    • updated device factory tests for Delta Pro 3 resolution
  • Updated docs metadata:

    • packages/rest-client/README.md now lists Delta Pro 3 as supported
  • Added changeset:

    • minor bump for @ecoflow-api/rest-client
    • minor bump for @ecoflow-api/schemas

Release impact

  • Type: feat
  • Versioning: minor (rest-client, schemas)
  • Breaking changes: none

@rustyy rustyy merged commit 7940192 into development Jun 23, 2026
3 checks passed
@rustyy rustyy deleted the feature/delta-pro-3 branch June 23, 2026 20:52
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant