-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant get dynamic limit to work #216
Comments
First, easee.set_circuit_dynamic_limit and easee.set_charger_circuit_dynamic_limit are the exact same thing in the sense that they end up calling the same API in the end. Second, and here I am guessing a bit since I do not know how your system is set up, but if I assume that you have 2 chargers, both connected to the same circuit and one is set up as master and one as slave. Regarding that problem with limits changing when you plug in/start charging, it kind of sound like you have used the easee.set_charger_dynamic_limit service instead of easee.set_charger_circuit_dynamic_limit like you are stating above? This is a good place to read a bit about all the different limits and which ones you are supposed to use for what: https://developer.easee.cloud/docs/current-limits-and-control |
Forgot to say, since you say that the limit that changes is the app is "Dynamic limit for Chargingrobot", that too points to that you have accidentally actually used the easee.set_charger_dynamic_limit service, since that would change that limit. |
Thanks! And for anybody else that has never set this up before, when displaying the circuit_ID in the "CHARGERNAME_sensor status" attributes, it shows with a decimal character (example 123,456). You have to remove the decimal when using it in the circuit_ID YAML script, so it will be 123456. :) |
Did a short test, and it seems that no matter what the dynamic limit is set to, it first charges one car, and then the other. But come to think about it, I think that was the default behavior before as well for my case, as one car charges using 3-phase, while the other charges using single phase. Think ther was an issue with Easee mixing phases simultaneously, so they instead charge in sequence. Doesn't matter much to me, as the total time to get both cars charge will be about the same anyways. But, I thought I had a cunning plan to optimize the charging current, but alas, I have failed :)
I wrote down the following formulas:
Based on this I wrote the following code, which I run once a minute:
This code works, and in the example above I can see that the dynamic circuit limit is set correctly at the charger, and updates while the car charges. I would then expect to se that the "Estimated consumption current hour" would climb and approach, but never reach 10kWh. (Red line, please excuse my poor drawing skills) However, what I see is the "Estimated consumption current hour" climb, but level of at about 7kWh. (Blue line, ignore the downward spike at approx. 1610.) I am assuming my logic is faulty, but cant pinpoint what is wrong... |
I think what you are calculating is not the actual limit to set, but the error, i.e. how much you need to change your setting. I do not know how often the tibber sensor for estimated energy in current hour you are using updates, but it would not make sense to run this algoritm more often than when it updates. Another way to do this is to look at power instead and keep the total power of the "house" slightly below 10kW at all times. |
That formula does not make any sense. The power consumption is voltage multiplied by ampére, P = I * V. Your limit is 10kWh, which means you draw 10000 W in 1 hour Also, remember to calculate for each phase and add the numbers together. If you have a Norwegian IT system (no dedicated neutral line), you have 115V from phase to ground. So, if you assume you have 115V on each phase (with respect to ground), you get: P_limit = I_per_phase * (V_per_phase / number_of_phases) If your limit is P_limit and you have t_seconds_remaining left of the hour, and already used P_used, then it would be: As the voltage per phase tends to vary over time, you might want to add some margin. |
Question
Ok, so I'm trying to dynamically adjust 2 charging robots, so that the hourly consumption stays below a certain kWh during the last hour. I have figured out the trigger/condition part I think, but struggle with actually limit the chargers current draw. To do a quick test I wanted to see if I could limit the charging current of my two chargers to 6A (Which I understand is the minimum required to start the charger).
This is the code I use:
This does not change the amount of amperes the chargers draw, and they draw whatever the cars are set to as max (24A and 12A). In the Easee app I see no change in the "Dynamic limit for Chargingrobot" which I presume should be showing 6A.
If I try the following:
I do see that the "Dynamic limit for Chargingrobot" changes in the Easee app, but only if the charger is not currently charging. If it starts to charge it seems to overwrite this value, and goes to the car limit again. Also, If I run the automation while the car is charging, the charging stops, and just says "In que - Load balancing", never to start charging again.
Any Ideas as to what I'm doing wrong here?
What version of the integration are you using?
0.9.45
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: