Skip to content

Commit a23ef73

Browse files
authored
Update Charge_automation.md
Updated after coderabit check
1 parent 808dcce commit a23ef73

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

docs/Charge_automation.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,24 @@ Dynamically adjusting the charge current of an electric vehicle (EV) within a ho
66
* By monitoring real-time energy consumption, you can automatically reduce the EV's charging rate to prevent overloading the household's electrical circuits and potentially tripping the main fuse.
77

88
* **Optimizing Solar Power Usage:**
9-
* When the solar panel production is avaiable in Home Assistent, you can prioritize charging the EV with excess solar energy.
9+
* When the solar panel production is available in Home Assistant, you can prioritize charging the EV with excess solar energy.
1010

1111
* **Demand Response:**
12-
* When you have dynamic energy pricing you charging rates based on time-of-use electricity pricing.
12+
* When you have dynamic energy pricing, you can adjust charging rates based on time-of-use electricity pricing.
1313

1414
This page provides several examples and hints to illustrate some of the many potential use cases."
1515

1616
## Adjusting the charge current
1717

18-
When the OCPP integration is added to your Home Assistent you get a slider to control the maximum charge current named:
18+
When the OCPP integration is added to your Home Assistant, you get a slider to control the maximum charge current named:
1919
<mark>number.<name_ocpp_charger>_maximum_current</mark>
2020

2121
While using this entity in your automation might seem logical, it could potentially lead to permanent damage to your charger in the long run.
2222
This entity controls the OCPP ChargePointMaxProfile, which configures the maximum power or current available for the entire charging station.
2323
This setting is typically written to non-volatile storage (like EEPROM or flash memory) to persist across reboots.
24-
Frequent writes to these types of memory can accelerate wear, potentially shortening the lifespan of your charger.
24+
Frequent writes to these types of memory can accelerate wear, potentially shortening the lifespan of your charger. Ten updates per day is no problem at all, 1 update per 10s could break your charger somewhere between 3 days and 3 years depending on the HW solution.
25+
26+
⚠️ **Warning**: Using the maximum current slider in automations can lead to permanent hardware damage due to frequent writes to non-volatile memory.
2527

2628
### TXprofile
2729

@@ -53,7 +55,8 @@ To dynamically set the session-specific charge current within an automation, use
5355
Where <mark>entity_charge_limit</mark> refers to your chosen entity (e.g., a number or sensor) that holds the desired current value.
5456

5557
## solar current
56-
The solar ystem usualy reports its production in Watt or kWatt. To convert this in the amps available for your EV-charger simply devide the Watt by the mains voltage (e.g 230V for the EU)
58+
The solar system usually reports its production in Watts or kW. To convert this to amps available for your EV charger, simply divide the watts by the mains voltage (e.g., 230V for the EU)
59+
5760
You can create a template sensor for this:
5861

5962
- platform: template
@@ -86,17 +89,17 @@ This template sensor gives the right value:
8689
For solar charging a positive grid current avaiable means you can increase your EV charge number with this number, when negative you need to decrease. This means you need to know the actual charge current and modify this. To do this easily you can use a variable inside your automation to store the actual charge current.
8790

8891
variables:
89-
achtual_charge_current: "{{ (states('sensor.charge_current') | float) }}"
92+
actual_charge_current: "{{ (states('sensor.charge_current') | float) }}"
9093
new_amps: "{{ actual_charge_current + (states('sensor.grid_current_available') | float) }}
9194

9295
This could lead to a negative charge current, to avoid this create a new variable with a minimum value:
9396

9497
charge_current: "{{ [new_amps, 0] | max }}"
9598

96-
"Max" selects the largest value either new_amps or 0
99+
The `max` filter ensures the charge current never goes below 0 amps, which would be invalid for the charging station.
97100

98101
## maximum charge
99-
A simular solution could be use to check how much power is still available from the grid substracting all power used by other appliances in your house. This way you can charge you EV as fast as possible without overloading your main fuse.
102+
A simular solution could be used to check how much power is still available from the grid substracting all power used by other appliances in your house. This way you can charge you EV as fast as possible without overloading your main fuse.
100103

101104
:exclamation: By specificatiomn your main fuse can withand 1.2 its rate current for at least 1 hour
102105

0 commit comments

Comments
 (0)