Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolves #7 support delta pro #19

Merged
merged 16 commits into from
Aug 15, 2024
Merged

resolves #7 support delta pro #19

merged 16 commits into from
Aug 15, 2024

Commits on Aug 11, 2024

  1. feat(schemas:dp): Add Delta Pro serial number validation schema

    Introduced a new module to handle Delta Pro serial number validation using Zod. This includes a schema that enforces serial numbers to start with "DCABZ" and type-checking utilities.
    rustyy committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    d50becb View commit details
    Browse the repository at this point in the history
  2. feat(schemas:dp): Add schemas for DeltaPro set commands

    Created schemas for setting various DeltaPro configurations like X-Boost switch, car charger, charge level, discharge level, car input current, beep switch, screen brightness, and smart generator auto-on. Each schema includes detailed validation based on the corresponding command parameters.
    rustyy committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    0d09cb0 View commit details
    Browse the repository at this point in the history
  3. feat(schemas:dp): Add deltaPro set command schemas

    Introduced schemas for various deltaPro set commands, including smart generator auto off, unit timeout, screen timeout, AC standby time, AC charging settings, PV charging type, and bypass AC auto start.
    rustyy committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    bc121f3 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. feat(schemas:dp): Add DeltaPro properties schema

    This commit introduces a new file, `getProperties.ts`, defining a comprehensive schema using zod for DeltaPro properties. It includes numerous fields related to system metrics, health status, and configurations, each with appropriate data type validation.
    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    7459a87 View commit details
    Browse the repository at this point in the history
  2. docs(schemas): Update README

    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    c0e89d5 View commit details
    Browse the repository at this point in the history
  3. chore: add changeset

    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    daf945c View commit details
    Browse the repository at this point in the history
  4. fix(schemas:dp): Add export for deltaPro schema

    This commit introduces the export for the deltaPro schema in the index file. This ensures that deltaPro can be used throughout the application as part of the schemas package. Other exports remain unchanged.
    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    a48020c View commit details
    Browse the repository at this point in the history
  5. chore: add changeset

    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    927d84e View commit details
    Browse the repository at this point in the history
  6. feat(rest-client): Add support for Delta Pro device

    Introduced Delta Pro class with validation for serial numbers. Updated DeviceFactory and respective tests to ensure proper creation and handling of Delta Pro instances.
    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    1050591 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cfd0bbb View commit details
    Browse the repository at this point in the history
  8. fix(schemas:dp): Refactor schema properties to make specific fields o…

    …ptional.
    
    Updated the 'mppt.reserved' and 'pd.brightnessLevel' fields to be optional in the deltaPro schema. Original data did not include these fields.
    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    a853ef5 View commit details
    Browse the repository at this point in the history
  9. feat(rest-client:dp): Add methods to enable Xboost and car charger.

    Introduced methods `enableXboost` and `enableCharger` to the DeltaPro class. Updated tests for the new methods and included additional validation for API response parsing.
    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    840d6d2 View commit details
    Browse the repository at this point in the history
  10. feat(rest-client:dp): Add method to set max charge level for DeltaPro

    Implemented `setMaxChargeLevel` method in DeltaPro to specify maximum charge level. Added corresponding test to ensure proper functionality and schema validation.
    rustyy committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    34b07bf View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. feat(rest-client:dp): Add new device settings and update tests

    Implemented new methods for various device settings like AC charging power, beep, screen timeout, and smart generator thresholds. Updated corresponding tests to ensure these methods work correctly and included renaming `setMaxChargeLevel` to `setChargeLevel`.
    rustyy committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    e4c016c View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. docs(rest-client:dp): Add Delta Pro examples and documentation

    Included detailed usage examples for the Delta Pro device in the TypeScript code and updated the README accordingly. These changes demonstrate how to enable features and set various configurations using the client library.
    rustyy committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    f619554 View commit details
    Browse the repository at this point in the history
  2. chore: changeset - Add delta pro support

    Deleted redundant changeset files and consolidated updates into a single changeset for the addition of delta pro support. This ensures cleaner version tracking and avoids duplicate entries.
    rustyy committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    6d4d890 View commit details
    Browse the repository at this point in the history