SAJ Local: Local Modbus for SAJ Inverters, With a Built-In Simulator (Beta)

SAJ Local: Local Modbus for SAJ Inverters, With a Built-In Simulator (Beta). AutoMatter

A new custom integration called SAJ Local has been shared on the Home Assistant community forum. It reads a SAJ inverter directly over Modbus TCP on your own network. The author says it needs no cloud account and no vendor app. It is in beta (1.0.0b1), with a stable v1 promised after more field testing.

What it does

The author owns an SAJ HS3 and could not find solid support for it. They tried contributing to existing projects, found progress slow, and started a new one built around automated testing. The project says it auto-detects the system, battery, meters, an EV charger (HS3 only) and parallel systems.

  • Read-only by default. Control only works after you turn on Allow control for that system.
  • Gentle on the inverter. One connection, one request at a time, and a hard limit of 40 requests per minute.
  • Same entity names on every model, so dashboards survive an inverter change.
  • Dashboard cards for power flow, status, faults, battery, controls and schedule.
  • Diagnostics hide your serial number and network addresses, and it ships in nine languages.

The simulator is the interesting part

Writing settings to a house battery and inverter is not something you want to get wrong. So the project includes a full simulator that answers Modbus like a real inverter. There are seven ready-made systems: an HS3 with a battery, without one, with an EV charger, off grid, and with everything fitted, plus an H2 with and without a battery. A web page lets you trip faults, drop the grid, fill or empty the battery, plug in an EV, or make the link slow or flaky. It runs from a repository checkout with Docker, and make up starts a development Home Assistant with simulated HS3 and H2 inverters. That means you can build dashboards and automations before touching your real system.

The author says CI runs 100% line and branch coverage with strict type checks. They also state plainly that the code was built with AI but not vibe coded, and the repo keeps the plans behind each feature.

What is not proven

Only the HS3 has been tested by hand, on the author’s own system. H2 support comes from SAJ documentation and field reports and has not been tried on a real H2. The HS2, H1, AS1 and three-phase H2 are not recognised at all. The author is asking H2 owners and others to help test.

What it means if you have an SAJ system

  • HS3 owners: the most credible candidate to try, ideally after rehearsing against the simulator first.
  • H2 owners: expect to be a tester. Keep control switched off until readings look right.
  • Other SAJ models: wait. They are not recognised.
  • Check your connections first. The install notes say SAJ communication modules accept only a small number of connections, so disconnect other Modbus clients from the inverter before adding this.

Install is through HACS as a custom repository (type Integration). Turn on the Pre-release switch on the SAJ Local device, or HACS will offer development commits instead of releases. The installation guide covers the steps, and the forum thread has the announcement. You need Home Assistant at the minimum version named in the repo, HACS, and the inverter’s address (plus port and unit ID if not default).

Our take: a read-only start, a request limit and a test simulator are the right habits for software that can write to a battery. Since it is a beta with one confirmed model, treat it as a project to watch, and do not rely on its control features for anything critical yet.

Sources