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

Add new Tag 0x0100003E, manual charging last target energy #117

Merged
merged 1 commit into from
May 28, 2024

Conversation

torbennehmer
Copy link
Contributor

@torbennehmer torbennehmer commented Apr 17, 2024

Sending EMS_REQ_GET_MANUAL_CHARGE uncovers a new, unknown tag with value 0x0100003E. According to my current analysis, this will yield the last target energy level in Wh used for manual charging. With this fix, pye3dc will now correctly give you a response to this REQ again:

[
  [
    "EMS_MANUAL_CHARGE_ACTIVE",
    "Bool",
    false
  ],
  [
    "EMS_MANUAL_CHARGE_START_COUNTER",
    "Int64",
    1713369791878
  ],
  [
    "EMS_MANUAL_CHARGE_ENERGY_COUNTER",
    "Double64",
    10.10137
  ],
  [
    "EMS_MANUAL_CHARGE_LASTSTART",
    "Timestamp",
    1713369791.87892
  ],
  [
    "EMS_MANUAL_CHARGE_LASTTARGET",
    "Uint32",
    10
  ]
]

I hope that tag name is OK, if not, let me know, then I'll change it.

fixes #109

@torbennehmer
Copy link
Contributor Author

@fsantini Do you need anything else here? I'd be glad to update the PR if you just drop me a hint what you're missing!

@fsantini fsantini merged commit 02d2d58 into fsantini:master May 28, 2024
5 checks passed
@fsantini
Copy link
Owner

Thanks! Sorry for not being responsive, too busy with many things! :)

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.

Unknown tag 0x100003E in response to EMS_REQ_GET_MANUAL_CHARGE
2 participants