rarvids4 / homeassistant-blueprints-loadbalancing

0 stars 0 forks source link

homeassistant-blueprints-loadbalancing

Before installing your blueprint, make sure that:

  1. Current is measured (Three Phase). If single phase, please add the single phase entity on all three items.
  2. Easee dynamic current limits are unlocked (See figure below). Status - should be visualised and that the actual charger current is activated. configure_easee

Currents can also be calculated by defining your own signals in configuration.yaml. Look at the example below. With this code "charge_current_limit_easee" can instead be used. Define a "Helper function" that creates a min(L1,L2,L3) and call the new signal: remaining_current_all


sensor:
  - platform: template
    sensors:
      remaining_current_l1a:
        friendly_name: "Remaining Current L1"
        unit_of_measurement: 'A'
        value_template: '{{ (20)|float- ( ((states("sensor.current_l1"))|float - ( 0 ))  )  }}'
#(states("sensor.easee2_current"))|float + (states("sensor.easee1_current"))|float 
      remaining_current_l2a:
        friendly_name: "Remaining Current L2"
        unit_of_measurement: 'A'
        value_template: '{{ (20)|float- ( ((states("sensor.current_l2"))|float - ( 0 ))  )  }}'

      remaining_current_l3a:
        friendly_name: "Remaining Current L3"
        unit_of_measurement: 'A'
        value_template: '{{ (20)|float-( ((states("sensor.current_l3"))|float - ( 0 ))  )  }}'

      total_solar_power:
        friendly_name: "Total Solar Power [W]"
        unit_of_measurement: 'W'
        value_template: '{{ (states("sensor.battery_power")|float + states("sensor.total_active_power")|float + 
        states("sensor.slave_total_active_power")|float + states("sensor.solaredge_current_power")|float)|round(0) }}'

      charge_current_limit_easee:
        friendly_name: "Charge Limit Easee [A]"
        unit_of_measurement: 'A'
        value_template: '{{ (states("sensor.remaining_current_all")|float + states("sensor.easee1_current")|float + states("sensor.easee2_current")|float)|round(0)  }}'