From 8d1b272cce2881045e0b1daa316138fd4b71348e Mon Sep 17 00:00:00 2001 From: ttrabatt Date: Tue, 30 Sep 2025 22:25:27 +0200 Subject: [PATCH] EVcharge_PRO: zeroed charged values --- .../homeassistant/evcharge_process_pro.yaml | 27 +++++++++++-------- .../evcharge-process.yaml | 0 2 files changed, 16 insertions(+), 11 deletions(-) rename {blueprints/automation/homeassistant => examples}/evcharge-process.yaml (100%) diff --git a/blueprints/automation/homeassistant/evcharge_process_pro.yaml b/blueprints/automation/homeassistant/evcharge_process_pro.yaml index 4deba38..9a67615 100644 --- a/blueprints/automation/homeassistant/evcharge_process_pro.yaml +++ b/blueprints/automation/homeassistant/evcharge_process_pro.yaml @@ -137,11 +137,26 @@ actions: else: # EVcharge can continue sequence: + # zeroes the charged values + - action: input_number.set_value + target: + entity_id: "{{ charged_entity1_var }}" + data: + value: 0.00 + - action: input_number.set_value + target: + entity_id: "{{ charged_entity2_var }}" + data: + value: 0.00 + # check which EVcharge plugs to be activated + - if: - condition: template value_template: "{{ is_state(use_entity1_var, 'on') }}" then: # EVcharge entity_1 (eg front) charge is requested sequence: + + # set stop button to off - action: input_boolean.turn_off target: @@ -166,11 +181,7 @@ actions: - variables: energy1_before: "{{ states(evcharge_entity1_energy_var) | float | round(2) }}" - - action: input_number.set_value - target: - entity_id: "{{ charged_entity1_var }}" - data: - value: 0.00 + # Start plug1 and wait until power measured is below input_number.evcharge_no_charge_threshold for 10 minutes = 600 seconds - action: switch.turn_on @@ -263,12 +274,6 @@ actions: - variables: energy2_before: "{{ states(evcharge_entity2_energy_var) | float | round(2) }}" - - action: input_number.set_value - target: - entity_id: "{{ charged_entity2_var }}" - data: - value: 0.00 - # turn_on evcharge_entity2 - action: switch.turn_on entity_id: !input evcharge_entity2 diff --git a/blueprints/automation/homeassistant/evcharge-process.yaml b/examples/evcharge-process.yaml similarity index 100% rename from blueprints/automation/homeassistant/evcharge-process.yaml rename to examples/evcharge-process.yaml