MaxCurrent logic with Custom charger #14282
-
Hello, I created a setup where I can control my electric water heater and set its power to any one of 5 values:
I did this with two Shelly switches which I can configure in order to dynamically "rewire" the water heater resistors. I wrote some logic in a PHP script, where I implemented the functions evcc can call for a Custom charger: status, enabled, enable and maxcurrent (according to this documentation). Then I configured a Custom charger in evcc. I attached the relevant excerpt of my config. Now I'm confused with the way evcc calls enable and maxcurrent. When I set my heater/charger to 'minpv' or to 'now', evcc calls first maxcurrent(0) and then enable(1). What does maxcurrent(0) mean in this context? In other words, which power value of my water heater am I supposed to set when I receive maxcurrent(0) from evcc? I see three possible interpretations:
I did not find any information about this MaxCurrent logic in the documentation or in the discussions. Thanks for your help and best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the answer to my own question. My config file for the maxcurrent URI parameter was wrong: The correct configuration is: Now I receive maxcurrent(3) for mode 'minpv' and maxcurrent(10) for mode 'now' which is consistent with the min and max currents I set in the GUI. I am leaving the discussion as a reference if it can help someone. Cheers |
Beta Was this translation helpful? Give feedback.
I found the answer to my own question. My config file for the maxcurrent URI parameter was wrong:
maxcurrent:
source: http
uri: "http://192.168.1.10:8077/evccboiler.php?maxcurrent={maxcurrent}"
The correct configuration is:
maxcurrent:
source: http
uri: "http://192.168.1.10:8077/evccboiler.php?maxcurrent={{.maxcurrent}}"
Now I receive maxcurrent(3) for mode 'minpv' and maxcurrent(10) for mode 'now' which is consistent with the min and max currents I set in the GUI.
I am leaving the discussion as a reference if it can help someone.
Cheers
Fred