EVcharge_PRO: resetting EVcharge_stop

This commit is contained in:
2025-10-04 23:18:41 +02:00
parent 8d1b272cce
commit 326414bd89

View File

@@ -155,8 +155,6 @@ actions:
value_template: "{{ is_state(use_entity1_var, 'on') }}" value_template: "{{ is_state(use_entity1_var, 'on') }}"
then: # EVcharge entity_1 (eg front) charge is requested then: # EVcharge entity_1 (eg front) charge is requested
sequence: sequence:
# set stop button to off # set stop button to off
- action: input_boolean.turn_off - action: input_boolean.turn_off
target: target:
@@ -181,8 +179,6 @@ actions:
- variables: - variables:
energy1_before: "{{ states(evcharge_entity1_energy_var) | float | round(2) }}" 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 # Start plug1 and wait until power measured is below input_number.evcharge_no_charge_threshold for 10 minutes = 600 seconds
- action: switch.turn_on - action: switch.turn_on
entity_id: !input evcharge_entity1 entity_id: !input evcharge_entity1
@@ -245,6 +241,11 @@ actions:
message: >- message: >-
"EVcharge process on {{ evcharge_entity1_var }} has ended: {{ ( energy1_after - energy1_before ) | round(2) }} kW/h charged" "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 # wait couple of minutes before starting charge on plug2
- delay: 120 - delay: 120
# - delay: 10 # TEST ONLY # - delay: 10 # TEST ONLY
@@ -332,6 +333,12 @@ actions:
target: "{{ recipient_list_gmail['target'] }}" target: "{{ recipient_list_gmail['target'] }}"
message: >- message: >-
"EVcharge process on {{ evcharge_entity2_var }} has ended: {{ ( energy2_after - energy2_before ) | round(2) }} kW/h charged" "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: - if:
- and: - and:
- condition: template - condition: template