Improved energy reporting for Zaptec Go 2 - #85
Open
TMBom wants to merge 9 commits into
Open
Conversation
… hour based on the signed meter value.
…lculated meter value as the generic meter_power to add support for the Power by the Hour app.
… of the box labels in Homey.
…ter value is the same as before disconnecting the car.
…fault icons and homey logic. Co-authored-by: Copilot <copilot@github.com>
…ive load balancing possible Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I installed my Zaptec Go 2 recently and noticed that the energy was only reported to Homey once per hour. I wanted to get live energy reporting, so that Homey can calculate the correct price based on 15 minute dynamic pricing. It turned out this was not really an issue with the app itself, but Zaptec only updates the signed meter value once per hour in their API.
This pull request contains the following changes for the Go 2:
Note that all changes are only for the Go 2. I do not have other Zaptec chargers and most other chargers do not have a signed meter, so I'm not sure if these changes could also work for other chargers. I have tested the code in the pull request for several weeks and it works fine for me.
This is my first pull request for a Homey app, so if I need to change anything, just let me know. Happy to contribute more in the future.