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