Replies: 17 comments 142 replies
-
Aha, no, this does seem to respect max charge/discharge current, and min soc. It doesn't respect max soc. |
Beta Was this translation helpful? Give feedback.
-
Thank you for working this out! I set the remote timeout to 35s and then use a HA automation to periodically write to the power demand register as long as the SoC is within limits and my override boolean is true. This way, any HA failure or SoC out of range will revert to normal operation after 35s.
And when turning on emulation mode (name is a hangover from the meter emulation):
Edit: Remove lower SoC limit and fix time pattern. |
Beta Was this translation helpful? Give feedback.
-
I was thinking about exposing this as extra Work Mode options. That seems fairly intuitive (as the Work Mode doesn't have any effect when we've got remote control enabled anyway), and it masks the fact that we need to fiddle around with Work Mode under the hood to stop a force charge. |
Beta Was this translation helpful? Give feedback.
-
I'm working on getting a beta out, hopefully next week sometime |
Beta Was this translation helpful? Give feedback.
-
Some opinions please: Charge power My current plan is to not make the charge power configurable. Instead, we'll behave the same as charge periods, where the charging rate is limited by the Max Charge Current setting. Discharge power I'm planning to have the discharge power configurable, and mean the power that the inverter feeds into the grid while the Work Mode is set to Force Discharge. Questions First, does that sound sensible, and fit how you'd want to use Force Charge/Discharge? Secondly, what should happen if:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm transitioning my automations to using this and found an interesting interaction between this and the old force charge schedules. If, during a force charge schedule, you set the Active Power register, the Active Power register takes precedence, however, when the Remote Timeout expires while still within the force charge period, it doesn't revert to force change, but just drops back to the work mode. I don't think this is an issue, other than being aware that setting Active Power cancels the remainder of the force charge period. |
Beta Was this translation helpful? Give feedback.
-
@art103 Can you confirm that you're able to read all the following registers please:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
Early on in my playing with this I had as a one off (just using the dev tools to call a service) set Remote Timeout to 35 seconds. Today when updating another automation I discovered that Remote Timeout was much larger. I don't think my inverter has rebooted, so I wonder under what conditions it changes and also how often we should set it? @canton7 How frequently are you setting it? |
Beta Was this translation helpful? Give feedback.
-
Right, give v1.10.0b1 a try, see how that works out for y'all. |
Beta Was this translation helpful? Give feedback.
-
Ok, here's the logs for a couple of cycles and stripped out all of the normal 'reading registers stuff' - I set the max charge current back to 1.7A (it was left like that early this morning from my charge profile, it would normally be much higher)
|
Beta Was this translation helpful? Give feedback.
-
v1.10.0b3 is out. I'm trying a different approach to force charge when the sun is shining, by controlling for battery charge power. |
Beta Was this translation helpful? Give feedback.
-
It looks like the H1 over LAN is struggling to read the 44xxx registers, even though it seems to be able to write them, see #529. @Carl-mgb66 Are you able to use modpoll to try:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
@art103 You're using a H1 over LAN aren't you? Have you seen this issue? #529 |
Beta Was this translation helpful? Give feedback.
-
v1.10.0b6 is out. The main change is that this should unbreak the H1 over lan. @art103 / @Carl-mgb66, mind giving it a try? |
Beta Was this translation helpful? Give feedback.
-
@abuesen could you give me your Manager Version please? I've got a report of someone with an H3 failing to write register 44000, and you clearly could write that, so I'm trying to work out what's going on. |
Beta Was this translation helpful? Give feedback.
-
@canton7 I'm noticing a new issue. I have two 10.5kW K series setup in parallel mode.
|
Beta Was this translation helpful? Give feedback.
-
I've successfully been using automations and the foxess_modbus.write_registers service for a couple of months now to force charge / discharge by writing fixed values to 44002. I'd ideally like to be able to write values to 44002 which are driven by a sensor value / value template rather than a fixed value. Is this possible? |
Beta Was this translation helpful? Give feedback.
-
I'm having a poke at the remote control registers, as a means of achieving force charge/discharge.
Notes:
Defaults when I started poking:
Remote Enable sems to be the master on/off for the whole remote control system. When set to 0, Remote Not Active Reasons is 1 (EnSet).
Remote Timeout is a watchdog, in seconds. It's set to Remote Timeout Set when you write to Active Power (but not Remote Enable, interestingly), and then Remote Timeout Countdown counts down to 0. I assume once it hits zero, remote control is disabled with Remote Not Active Reasons 2 (HostOffline).
Active Power is the inverter output, signed, in Watts. Positive is discharge. This is power going through the AC interface, so if it's 0 then any solar generation goes into the battery, while simultaneously any house load comes from the grid.
There seems to be a mix of whether these registers are available as input/holding:
So, the WR registers are available on both, but the RO registers are input-only. Makes sense. The other interesting thing is that the input registers can be read as a block, but the holding registers need to be read one-by-one.
This "registers can only be read one-by-one" thing is new, and popped up recently with the H3 in #503. I wonder how many registers we've missed because we were always scanning in blocks...
So, this looks like a viable way to control force import/export from automations (and probably more convenient to use than charge periods!). The only thing is that there's no concept of min/max soc here. The fact that it control inverter power and not import/export power is slightly annoying, but probably not too much of a problem in practice: people are going to want to import a lot, or export a lot, where that amout is much greater than generation / house load. The only thing is if we want to limit battery charge current, that is dependent on house load.
I'm not sure of the best approach to integrate this. We may want to intelligently control this (with a small watchdog timeout), and respect the min/max socs and/or min/max charge currents ourselves.
Beta Was this translation helpful? Give feedback.
All reactions