EVcharge_PRO: resetting EVcharge_stop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user