From 326414bd897d54ccca0d8278ac415cfba9f12c3f Mon Sep 17 00:00:00 2001 From: ttrabatt Date: Sat, 4 Oct 2025 23:18:41 +0200 Subject: [PATCH] EVcharge_PRO: resetting EVcharge_stop --- .../homeassistant/evcharge_process_pro.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/blueprints/automation/homeassistant/evcharge_process_pro.yaml b/blueprints/automation/homeassistant/evcharge_process_pro.yaml index 9a67615..4233338 100644 --- a/blueprints/automation/homeassistant/evcharge_process_pro.yaml +++ b/blueprints/automation/homeassistant/evcharge_process_pro.yaml @@ -149,14 +149,12 @@ actions: 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: @@ -181,8 +179,6 @@ actions: - variables: energy1_before: "{{ states(evcharge_entity1_energy_var) | float | round(2) }}" - - # Start plug1 and wait until power measured is below input_number.evcharge_no_charge_threshold for 10 minutes = 600 seconds - action: switch.turn_on entity_id: !input evcharge_entity1 @@ -245,6 +241,11 @@ actions: message: >- "EVcharge process on {{ evcharge_entity1_var }} has ended: {{ ( energy1_after - energy1_before ) | round(2) }} kW/h charged" + # reset stop button + - action: input_boolean.turn_off + target: + entity_id: input_boolean.evcharge_pro_stop + # wait couple of minutes before starting charge on plug2 - delay: 120 # - delay: 10 # TEST ONLY @@ -332,6 +333,12 @@ actions: target: "{{ recipient_list_gmail['target'] }}" message: >- "EVcharge process on {{ evcharge_entity2_var }} has ended: {{ ( energy2_after - energy2_before ) | round(2) }} kW/h charged" + + # reset stop button + - action: input_boolean.turn_off + target: + entity_id: input_boolean.evcharge_pro_stop + - if: - and: - condition: template