springfall2008 / batpred

Home battery prediction and charging automation for Home Assistant, supporting many inverter types
https://springfall2008.github.io/batpred/
95 stars 33 forks source link

Add functionality for Solax X1 AC Inverter #871

Open punkymuzzle opened 3 months ago

punkymuzzle commented 3 months ago

Hi Absolutely loving the work that everyone has put in here, it's really appreciated. I have a Solax X1 AC inverter with a Waveshare Modbus attached, and have access to all of the entities for the inverter. I have installed Predbat and have successfully managed to get it fully monitoring and predicting etc, which is awesome. The problem is that I can't get it to charge / discharge the battery as per the plan, even though I've enabled charge / discharge in predbat. I'm assuming that the issue is predbat knowing the exact commands to send to my inverter, so was wondering if anyone could help in solving this with me? Happy to provide whatever information I can to help get this sorted, as I know others are in the same situation as me.

Many thanks in advance

springfall2008 commented 3 months ago

Please see the thread here, this maybe what you need: https://github.com/springfall2008/batpred/issues/259

There is a solax template now on 'main' together with the latest fix

punkymuzzle commented 3 months ago

Thanks for this. However,this is a G4 version (later version) whilst mine is the G1 version (X1AC). As I'm finding out via other routes, the entities are different between then, and my inverter doesn't support some of the features from the G4 (such as force discharge)

On Thu, 28 Mar 2024 at 20:28, Trefor Southwell @.***> wrote:

Please see the thread here, this maybe what you need: #259 https://github.com/springfall2008/batpred/issues/259

There is a solax template now on 'main' together with the latest fix

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/871#issuecomment-2026058527, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNR352ZWNLEAOEZTVZYEXTY2RVPDAVCNFSM6AAAAABE3S3PYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGA2TQNJSG4 . You are receiving this because you authored the thread.Message ID: @.***>

springfall2008 commented 3 months ago

Thanks for this. However,this is a G4 version (later version) whilst mine is the G1 version (X1AC). As I'm finding out via other routes, the entities are different between then, and my inverter doesn't support some of the features from the G4 (such as force discharge)

Maybe you can prototype a configuration for G1 and then let me know what issues you have?

punkymuzzle commented 3 months ago

More than happy to help where I can. It installs and monitors OK, but won't drive the Inverter. I'll send some screenshot later.

On Fri, 29 Mar 2024, 14:44 Trefor Southwell, @.***> wrote:

Thanks for this. However,this is a G4 version (later version) whilst mine is the G1 version (X1AC). As I'm finding out via other routes, the entities are different between then, and my inverter doesn't support some of the features from the G4 (such as force discharge)

Maybe you can prototype a configuration for G1 and then let me know what issues you have?

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/871#issuecomment-2027337346, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNR352ENHMI55X7X7XNYVDY2VV2FAVCNFSM6AAAAABE3S3PYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGMZTOMZUGY . You are receiving this because you authored the thread.Message ID: @.***>

punkymuzzle commented 3 months ago

Here you go: image image

punkymuzzle commented 3 months ago

Do you want me to work with you to prototype this for a SolaX X1 Ac Inverter? As I said before, it seems to plot out the charging table etc, but doesn't actually charge the Inverter when I take it off Read only. I can supply a full list of entities extracted from the Inverter via Modbus if that would help? Many thanks

On Fri, 29 Mar 2024, 15:03 Steve Bond, @.***> wrote:

More than happy to help where I can. It installs and monitors OK, but won't drive the Inverter. I'll send some screenshot later.

On Fri, 29 Mar 2024, 14:44 Trefor Southwell, @.***> wrote:

Thanks for this. However,this is a G4 version (later version) whilst mine is the G1 version (X1AC). As I'm finding out via other routes, the entities are different between then, and my inverter doesn't support some of the features from the G4 (such as force discharge)

Maybe you can prototype a configuration for G1 and then let me know what issues you have?

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/871#issuecomment-2027337346, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNR352ENHMI55X7X7XNYVDY2VV2FAVCNFSM6AAAAABE3S3PYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGMZTOMZUGY . You are receiving this because you authored the thread.Message ID: @.***>

punkymuzzle commented 3 months ago

Failing that, as a fallback I can setup some automations to charge my battery based on the table as it's generated? I know this isn't exactly driving the inverter via predbat, but it would be a tactical fix until the inverter is supported? . This would take some quite advanced yaml coding (which is probably beyond me at the moment) but if this is the best way forward I will look to do that.

gcoan commented 3 months ago

If you can work out the automation command sequences to control the charging it shouldn't be much more to have this integrated inside predbat

punkymuzzle commented 3 months ago

Yeah I'd love that, but not really sure where to begin. If I knew what to look for, times, charge, duration etc I'd give it a try. But all I have is visibility to a charging plan and nothing else.

On Mon, 1 Apr 2024 at 18:54, Geoffrey Coan @.***> wrote:

If you can work out the automation command sequences to control the charging it shouldn't be much more to have this integrated inside predbat

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/871#issuecomment-2030246046, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNR35ZLN7JF5HFXYHTSYT3Y3GNODAVCNFSM6AAAAABE3S3PYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZQGI2DMMBUGY . You are receiving this because you authored the thread.Message ID: @.***>

punkymuzzle commented 1 month ago

Hi Is there any progress on this request please? I have a X1 AC Inverter ready to go and test predbat to see if we can get it to work. I already have it working with another automation (pv_opt) but also wanted to get it working with predbat so others can also benefit.

Please let me know if you need any additional information from me. Thanks