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

Request clarification for the calculation of export_pwr and excess_pwr #78

Open
bravepasta opened this issue Jun 16, 2024 · 0 comments
Open

Comments

@bravepasta
Copy link

I would like to ask some clarification on the calculation of export_pwr and excess_pwr in the function _update_pv_history() in the pyscript python code when using the import_export_power mode (using one meter to get the data for import and export).

The current code is as follow:
export_pwr = abs(min(0, import_export))
excess_pwr = -import_export

My understanding is that export_pwr is calculated correctly, as it gives either 0 or a positive number for the exported power (which is initially negative).
Unfortunately I do not understand the calculation for the excess_pwr.

Could somebody shine some light on this please?

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

No branches or pull requests

1 participant