Replies: 5 comments 14 replies
-
Thanks @C00K50N - really clear write up. I've had similar thoughts regarding holding the battery SoC as soon as the off-peak period begins, however I came to the conclusion that the less we interact with Fox Cloud the better :) I'll probably look to implement this once we can write charge start/stop/hold commands via modbus. I imagine it can only have a positive effect on battery life. In the mean time I've been allowing the battery to discharge fully during the off-peak period and allowing the integration to charge back to the calculated level. I think I understand what's going on here.. internally the integration creates a model of house load, forecast and battery state. This allows it to retrieve the expected battery capacity from any time in the future - i.e. capacity now is 10kw * 25% = 2.5kw, with an average house load of 16w/minute (~1kWh) in two hours time the capacity should be at 0.5kw. The final charge calculation (% target and start time) is performed at the start of the off-peak period (01:30 in your case) given all the information it has available at the time. If your usage is greater than usual once the % target and start time have been set, the actual SoC at charge time will be lower than it calculated and it won't be able to reach the target %. I guess a work around to this could be charging to the target % at the start of the off-peak window, then holding SoC until the window ends - needs some more thought :) Could you add 'charge needed' to the screenshot above please? |
Beta Was this translation helpful? Give feedback.
-
@C00K50N - also worth mentioning that if you're using the Aux power fields, I fixed a bug this morning which was causing lower than expected house average calculations. This may be also be a factor. Worth updating to v1.0.2. |
Beta Was this translation helpful? Give feedback.
-
@C00K50N had a quick look at this today and knocked out a new build on develop (you should see 1.2.0 printed in the logs if you're feeling brave). The logic is as follows:
I'll test it tonight and see how it behaves :) |
Beta Was this translation helpful? Give feedback.
-
Looks like the charge worked as intended last night - a full charge towards the end of the charge period. Next Dawn Time is still a bit odd - the below screenshots are just now. Perhaps it's getting confused because the rain and mist here is preventing the sun from being visible at all! |
Beta Was this translation helpful? Give feedback.
-
@C00K50N really happy with how the integration performed last night so have released as v1.1.0 this morning -> https://github.com/nathanmarlor/foxess_em/releases/tag/v1.1.0 Let me know if it's better for you! |
Beta Was this translation helpful? Give feedback.
-
@nathanmarlor I was wondering if it's possible - either from my end or with a tweak to the code - to prevent the battery discharging during the cheap period?
If you look at my statistics graphs below for the last 48hrs, you can see the first force charge this integration initiated was just before 06:00 yesterday [1]. Prior to that, the battery was prevented from discharging to cover the overnight load [2], which you can see from the SoC flat line [3] (ignore the SoC drop for now; that's a separate issue though a concerning one). However, when it had finished I noticed the schedules on my Fox app had reset to no longer prevent discharging.
So, our overnight load last night [4] was covered almost entirely by the battery rather than the grid. This quickly discharged the battery down to the set minimum of 10% before this integration successfully initiated the charge [5] from 04:50. Given the lower forecast generation today, the Capacity: Charge Needed last night said 14.04 kWh, so I was expecting it to have charged nearly to full last night. But it only charged to around 57% which I'm not sure will be enough for today.
Maybe it's OK allowing the battery to discharge fully then charging a bit, but when setting schedules manually I figured it was better to hold the existing charge, and use the grid for the load rather than discharging and recharging back to a similar level.
Beta Was this translation helpful? Give feedback.
All reactions