Last active
March 8, 2023 06:25
-
-
Save AMajland/65341069ee1e5084f1da45587ae041a1 to your computer and use it in GitHub Desktop.
Home Assistant - Easee Dynamic charging (2023-03)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: EaseeDynamic | |
description: EaseeDynamic | |
trigger: | |
- platform: time_pattern | |
seconds: /20 | |
condition: | |
- condition: state | |
entity_id: input_boolean.dynamic_charging | |
state: "on" | |
action: | |
- choose: | |
- conditions: | |
- condition: template | |
value_template: >- | |
{{ ((states('sensor.EASEE_power') | float) - | |
(states('sensor.n1_meter_power_netto') | float) ) > 3680.0 }} | |
sequence: | |
- service: easee.set_circuit_dynamic_limit | |
data: | |
charger_id: EASEE | |
currentP1: >- | |
{{ ( ((states('sensor.EASEE_power') | float) - | |
(states('sensor.n1_meter_power_netto') | float)) / | |
(states('sensor.ams_cf58_u1') | float) / 3.0) + 1.0 }} | |
currentP2: >- | |
{{ ( ((states('sensor.EASEE_power') | float) - | |
(states('sensor.n1_meter_power_netto') | float)) / | |
(states('sensor.ams_cf58_u2') | float) / 3.0) + 1.0 }} | |
currentP3: >- | |
{{ ( ((states('sensor.EASEE_power') | float) - | |
(states('sensor.n1_meter_power_netto') | float)) / | |
(states('sensor.ams_cf58_u3') | float) / 3.0) + 1.0 }} | |
time_to_live: "1" | |
- conditions: | |
- condition: template | |
value_template: >- | |
{{ ((states('sensor.EASEE_power') | float) - | |
(states('sensor.n1_meter_power_netto') | float) ) > | |
((states('sensor.ams_cf58_u1') | float) * 5.0) }} | |
sequence: | |
- service: easee.set_circuit_dynamic_limit | |
data: | |
charger_id: EASEE | |
currentP1: >- | |
{{ ( ((states('sensor.EASEE_power') | float) - | |
(states('sensor.n1_meter_power_netto') | float)) / | |
(states('sensor.ams_cf58_u1') | float) ) + 1.0 }} | |
currentP2: "0" | |
currentP3: "0" | |
time_to_live: "1" | |
default: | |
- service: easee.set_circuit_dynamic_limit | |
data: | |
charger_id: EASEE | |
currentP1: "0" | |
currentP2: "0" | |
currentP3: "0" | |
time_to_live: "1" | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment