I donât think it is going to work as you want with this setup.
Now the flow will stop charging, and also start charging on 10A, 20A and 30A all at once when the timer stops. Not sure what the flow will choose, but it will not work as intended.
Firstly you need to make a timer for each thing you want. One timer to stop the carging (e.g. elbil_lader_stop), and one for start charging at 10A, one for start charging at 20A and so one (e.g. elbil_lader_start10A).
Also I would consider removing the âIs not chargingâ card under each charging setup. If you are charging at 10A and the power drops below 8000 it wont start charging at 20A like it is now.
If I understand your situation correctly you want to keep the maximum powerconsumption under 14000 Watts and when plugging in your car it will always start charging at 30 Amps.
At 30 Amps you are charging with P = V*I = 240 * 30 = 7200 Watts.
So when your are using, letâs say, 15000 Watts itâs 1000 Watts to much. So you want to reduce the Amps with 1000/240 = 4,17 Amps. To be save set the charge speed at 25 Amps.
So I would create a number variable âTarget Ampsâ
In general âTarget Ampsâ = âTarget Ampsâ + (14000-power)/ 240
So:
WHEN
every 2 minutes
AND
car is charging
THEN
calculate âTarget Ampsâ as {{âTarget Ampsâ + (14000-power)/240}}
I think i have found an better solution. I have made a card that calculates netto power usage where Charge load is substracted from main house power etc.
I have also made som minor changes.
Please take a look at this flow and tel me what you think?
PS! I have 230V 3-fas in my house with 3x63A circuit breaker, and i can load the main fuse with around 25.0000W, so itâs not the end of the world if the power goes over 14000W.
But the calculation is based on netto load. My car charged with 6.200W. My house main load (without the car) was around 7.000W. One of my rules should have kicked in i thinkâŚ.?
The first in each of the last four set of flows depends on the netto_load variable calculated in the first flow. Since all five flows have the same trigger, they will be initiated at (almost) the same time. You might run into the issue that the first flow has not yet completed calculating, while the other flows are already checking the netto_load variable. That will still contain the old value, resulting in unexpected behavior of the flow. An option is to add a 1 sec wait card after the trigger of the first in each of the last four set of flows.
I am not sure how often the âpower changedâ flowcard is triggered. Ideally you would only use this trigger once and daisy chain the other cards in series so that you control the flow sequence, instead of being dependent on the order in which Homey decides to execute the flows. So creating one flow - triggered by the âpower changedâ card, instead of five - that is executed always in the same order.
That would only solve the dependency between the first and the set of last four flows that are triggered based on the power changed-flowcard.
The better option is the one I mentioned at my second bullet: combine the five flows into one and daisy chain the flowcards. Then you also donât have to use the 1 sec delay, as the flow does not continue before a flowcard that calculates the netto_load has been completed.
Yes. And you can skip the ânetto_load is less than 9000 / 7500â checks/cards, because that is automatically the case if it is not greater than those numbers, which you check in the preceding card.