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

loadbalance 24x7 #1

Open
danielolsson100 opened this issue Jul 18, 2022 · 0 comments
Open

loadbalance 24x7 #1

danielolsson100 opened this issue Jul 18, 2022 · 0 comments

Comments

@danielolsson100
Copy link

danielolsson100 commented Jul 18, 2022

Hi
It's really nice that you have shared your blueprint !
I have made a similar PoC code to control the Easee circuit and the phases to minimize the load on ACE and posted in in a gist at https://gist.github.com/danielolsson100/d691359c6e5bd4d87934318da7939358
This post have more focus on load balancing Easee when the price is the lowest in the day and not the "sun focus" that you have because it may be more economical to sell the sun energy if the price is high and charge during low price.
My gist is only PoC code since I have not received my Kia EV 6 yet..

Perhaps we can combine forces and create a blueprint that will do load balancing if the electricity price is low so we can control if the blueprint should be based upon sun or low price ?

I have a binary sensor that I used for charging the battery during low price that might be handy in this case that is based upon the nordpool integration

binary_sensor:
  - platform: template
    sensors:
      bs_charge_ferroamp_battery:
        friendly_name: Charge Ferroamp Battery
        value_template: >-
          {% set today=state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','today') %}  
          {% if ((state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','tomorrow') | count) == 0)  or (state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','tomorrow')[0] == None)  %}
            {% set array = today %}
          {% else %}
            {% set tomorrow=state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','tomorrow') %}
            {% set array = today + tomorrow %}
          {% endif %}
          {% set current_price=states('sensor.nordpool_kwh_se4_sek_2_10_025') %}
          {% set max=state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','max') %}
          {% set min=state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','min') %}
          {% set five_lowest_bp=(array | sort)[4] %}
          {% if ((current_price | float) <= (five_lowest_bp | float)) %}
            True
          {% else %}
            False
          {% endif %}
      bs_discharge_ferroamp_battery:
        friendly_name: Discharge Ferroamp Battery
        value_template: >-
          {% set array=state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','today') %}
          {% set current_price=states('sensor.nordpool_kwh_se4_sek_2_10_025') %}
          {% set five_highest_bp=(array | sort)[19] %}
          {% if (current_price | float) >= (five_highest_bp | float) %}True{% else %}False
          {% 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