[Custom Component] SAJ H2 Inverter

New Pre-Release

Thanks, this update is working much better for my charging control.

Quick question, the update seems to have restricted grid charging and discharging to 500 / 50% of inverter power. Is there a way to set it to 100% besides doing it manually in Elekeeper? We often have a short 3hr window where prices are cheapest, so I try and set charging based on a electricity price to fill within a short time.

1 Like

Same here. My automation failed to start selling and i was buying at a high price because it wouldnt let me set the % to 100 :grimacing:

Hi everyone,

I am a user of the AS1 inverter and I would like to adapt the current H2 Modbus integration to work with this model.

I have obtained the official Modbus protocol manual for the **AS1 AS1Main control board and display board communication protocol, which I am attaching to this post. After reviewing it, I’ve noticed that the register addresses and data scaling (magnification) differ significantly from the H2 model.

I would appreciate any guidance on the best way to implement these changes into the existing integration, or if someone is interested in collaborating to add native support for the AS1.

Thank you for your amazing work and for your help!

1 Like

Thanks for the log. I compared it briefly. Registers are different.

In Home Assistant, registers can also be read very easily via Modbus. Modbus - Home Assistant

Please also look here in the forum for YAML examples.

The adjustment would be possible, but it is very time-consuming. Without an AS1, it is not feasible.

Yes, and unfortunately, I receive zero support from SAJ. SAJ could program integrations for HA themselves.

Thanks for your honest feedback. I totally understand that without having an AS1 unit, it’s almost impossible to debug and map everything correctly. It’s a shame that SAJ doesn’t provide better official support for the HA community.

As you suggested, I’ve decided to focus on reading the sensors for now and only implementing the mode switching (Auto-consumption to Time of Use/Charge).

Regarding the AIO3 module and the scan_interval, I’m currently testing a 120s interval to avoid saturating the bus, but I might lower it for specific sensors. With the help of AI (ChatGPT), I actually plan to fork your code and adapt it specifically for the AS1 series so other users can benefit from it.

Thanks again for pointing me in the right direction with the YAML examples

I’m running this great integration with a H2 inverter and B2 batteries. Works very well!
I’ve tried to find a parameter showing whether the inverter is on or off grid. Is there such a parameter in the integration?

New Pre-Release online

1 Like

Anyone that are running this integration with a HS3 solution?

Hi,

On the release notes for v2.8.0 it says:

Important: Make a new Install > Delete > Reboot > Install 2.8.0

Is this referencing to the component itself or the UI-card?

Hi. I’m new to all things home assistant, but am an ex-software developer so have been getting deep into it because we got a new SAJ 40kW battery and SAJ H2 Inverter last week and signed up with Amber Electric in Australia, only to discover their system didn’t talk to ours. So I’ve been madly trying to understand all the switches and sensors and modes to automate our charging and discharging to the grid.

I thought I had it understood and had some automations set up to use passive mode for charging and discharging. It seemed to run well today, charging a little from the grid but mainly using solar. Then when prices started getting high, I had my automation turn off switch.saj_passive_charge_control and turn on switch.saj_passive_discharge_control. The app mode changed to passive and all looked good.

But then I noticed that our total load was high (7.4kW) and stayed high while nothing major was running - no air con, no car charging, no pool pump, no appliances. I searched the house looking for what could be causing it but found nothing. I checked the temps of the batteries and inverter, and found the inverter was running really hot (70.7C). From what I could google, this isn’t good for it to be that high. It was warm today, but not hot. The inverter was outside but not in direct sunlight. Outside air temp was 26C.

I changed the app mode to self-consumption in my elekeeper app and the total load immediately went down to under 1kW. I waited awhile and then restarted passive mode by manually switching the switch.saj_passive_discharge_control to on in home assistant. The inverter seemed to fire up again and the load jumped up to 7.4kW again.

I noticed that Inverter Working Mode (sensor.saj_inverter_working_mode) is set to 2. Yesterday it was switching between 1 and 2, but hasn’t changed in the last 22 hours. The SAJ inverter status says it’s running, and no error message has been recorded.

Does anyone have any idea why my inverter would be drawing 7.4 kW? That’s more power than when my air con is running. Am I missing a setting that I should have or could my inverter be faulty?

TIA for any advice. I feel like I have to babysit the app and my home assistant entities constantly.

-Pam.

1 Like

Hi all. SAJ H2-1K-T2-AU inverter owner here. I’ve found that sensor.saj_total_power_generation is 0.0 for me. I’ve not found an alternative sensor to use. The sensor.saj_inverter_total_power_generation includes the battery converted power when feeding into the home, so that’s no use for PV total generation with HA. I’m stuck at this stage as I don’t have a viable sensor to use for PV generation in HA. Any thoughts?

Hi All,

Thought I might let you know that the Dev for PowerSync has been an absolute legend over the last week and has now integrated the SAJ H2 Integration with his Integration. It basically completely automates everything with the battery based on live pricing inputs from electricity providers, and also has an app with options for controls and automation. Heavily focused on Australian Electricity providers but I believe some support for other live pricing imports.

Hey, I've been having major drop outs since about april 20th... have SAJ been having server issues recently? The Elekeeper App shows that the Inverter is offline. So i cant get the integration to stop discharging the battery in HA (which is bizzare because its local right?) nor in the Elekeeper app which is done through the cloud... I had my AIO3 module replaced under warranty because i believed it to be faulty but ive still got the same issue... I don't believe it to be anything wrong with the integration - it's actually been working perfectly up until the drop outs - but was wondering if you had any more information? Have they done server maintenence?

New Version Online v2.8.6 Beta

what is powersync?

Thanks.
It's really interesting that the integration uses the entities from my integration.

The developer could have let me know about that :slight_smile:

1 Like

yeah I think easier to use something that already works. He said SAJ inverter was the most difficult he's worked on.

I seem to have a problem when i change the APP Mode, the Integration crashes but the inverter in Elekeeper remains online and i am able to adjust it there. The integration reloads and is fine, but the next time my Scenes or Automations run, the integration crashes again...?