#EV Charger current/power based on excess energy
1 messages · Page 1 of 1 (latest)
Do you have an entity to regulate the charge rate?
Hi. The current of the wall box is writeable thus the power is also manageable
Heres how i do mine
alias: Autel Charge On Excess Grid solar
description: ""
triggers:
- trigger: state
entity_id:- sensor.envoy_net_amps
enabled: false
- sensor.envoy_net_amps
- trigger: time_pattern
minutes: /1
conditions: - condition: or
conditions:- condition: state
entity_id: sensor.autel_maxicharger_elite_status_connector
state: SuspendedEVSE
enabled: true - condition: state
entity_id: sensor.autel_maxicharger_elite_status_connector
state: Charging - condition: state
entity_id: sensor.autel_maxicharger_elite_status_connector
state: SuspendedEVSE
enabled: true
enabled: true
actions:
- condition: state
- if:
-
condition: and
conditions:- condition: template
value_template: "{{ ( (states('sensor.envoy_net_amps') | int) < 0) }}"
then:
- condition: template
-
data:
value: >-
{% if ((
states('sensor.autel_maxicharger_elite_power_active_import') | float
) * 1000 ) > 1400 or (states('sensor.envoy_net_amps') | float(2) ) <
-7 %}{{ min([32,( states('sensor.envoy_net_amps') | int * -1 ) + (states('input_number.autel_charge_current') | int ) ]) | float }} {%endif%}action: input_number.set_value
enabled: true
target:
entity_id: input_number.autel_charge_current
else: -
data:
value: >-
{{ max([0,(states('input_number.autel_charge_current') | int ) - (
states('sensor.envoy_net_amps') | int ) ]) | float }}
action: input_number.set_value
enabled: true
target:
entity_id: input_number.autel_charge_current
mode: single
-