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

Tesla won't charge with low house battery because PVAMP is overwritten #5

Open
lepricon opened this issue Nov 1, 2024 · 0 comments

Comments

@lepricon
Copy link

lepricon commented Nov 1, 2024

Assume PV = 4.5kW, house battery = 30%, then PVAMP will be set to 0 (because of low battery) and cannot be set to 3 as an exception of high solar output.

My proposal is to rename as the following

{# PV/230 is the current in a one phase system. For three-phase charging divide by 3! #}
{% set PVAMPIN = (PV/230/3) %}
...
{# Under 40%, charge only the house battery, not the car. 3% hysteresis: Don't turn on until we reach 43%. #}
{# Exception: When the PV output is really high, allow charging so we don't feed to the grid early #}
{% if (Battery<43) and (Charge==0) and (PVAMPIN<6) %} {% set PVAMP = 0 %} {% endif %}
{% if (Battery<40) and (Charge>0) and (PVAMPIN<6) %} {% set PVAMP = 0 %} {% endif %}
{% if (PVAMPIN>=6) and (Battery<40) %} {% set PVAMP = 3 %} {% endif %}

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