Docs
What's new Open app Support

Home Assistant

On this page
In short

If you already run Home Assistant, it can be your collector — and it can control your inverter too.

This is a custom integration, not an add-on

Svitgrid for Home Assistant is the Svitgrid integration, installed through HACS. Look for it under Settings → Devices & services, not under Add-ons. Older documentation and some community posts call it an add-on; that name is wrong and sends you to the wrong menu.

Before you start

  • Home Assistant already reads your inverter, or can reach it on your home network.
  • HACS is installed in Home Assistant.
  • The Svitgrid app is installed on your phone, and you are signed in. See Creating your account.

Setting up takes about five minutes. You install the integration, start in the app, get a pairing code in Home Assistant, enter it in the app, and approve the connection back in Home Assistant.

The setup in the app, from Connect your station to the dashboard. Your code is different.

Step 1: Install the integration through HACS

  1. In HACS, open the menu ⋮ and choose Custom repositories. Add https://github.com/svitgrid/home-assistant-svitgrid with the type Integration.
  2. Find Svitgrid in HACS, open it, and click Download.
  3. Restart Home Assistant.

Do not copy files by hand

Copying the folder into custom_components works once and then never updates itself. Installing through HACS is what keeps it current.

Step 2: Start in the app

  1. Open the Svitgrid app and tap Connect your station. The app searches your network and shows what it found, for example We found your inverter. Tap Continue with this inverter.

The app found the inverter

  1. The app asks How should we collect your data? Tap Home Assistant. When the search did not find Home Assistant, the card says Needs the Svitgrid integration from HACS.

Choosing Home Assistant as the collector

  1. The app asks Where should your station's data live? Choose one, and tap Next:
    • Svitgrid cloud works away from home, with push alerts, the forecast and schedules. It needs a plan after the trial.
    • Your Home Assistant keeps everything in your Home Assistant, at no cost. See Local mode.

Choosing where the station's data lives

  1. On Check your station, the Home Assistant section at the end lists Home Assistant, Profile and Where the data lives. The profile comes from the inverter model. If it is wrong, tap Profile and choose yours. The Home Assistant row is optional: when the search did not find Home Assistant, it says Nobody has answered this yet, and the setup works without it. Tap Create.

The Home Assistant section of the station summary

  1. The app shows Open Home Assistant: what you need, and How to get the code in three steps. Do step 3 of this guide now. The code works for 5 minutes, so get it when the app asks for it.

Open Home Assistant, with the three steps to get the code

  • Svitgrid isn't installed yet opens this guide.
    • No Home Assistant? Use this phone goes back to the choice, with the phone chosen as the collector.

Step 3: Get the pairing code in Home Assistant

  1. Go to Settings → Devices & services, and click Add integration.

The Integrations page in Home Assistant, with the Add integration button

  1. Search for Svitgrid, and click it.

Svitgrid in the Add integration search

  1. The window Connect Svitgrid asks How would you like to connect to Svitgrid? Choose Pair with the Svitgrid mobile app (recommended).
  1. The window Waiting for the mobile app shows a six-character pairing code. Leave this window open.

Home Assistant waiting for the mobile app, with the pairing code

The code expires in 5 minutes. If it runs out, close the window and add the integration again for a new code.

Step 4: Enter the code in the app

  1. Go back to the app and tap I can see the code.
  1. On Pairing code, type the six characters from the Home Assistant window. The field's hint says 6 characters. Where do I find the code? opens the same steps under the field, with a drawing of the window. Tap Next.

The pairing code typed in, with Where do I find the code? open

When the app fills in the code itself

If your phone is on the same Wi‑Fi as Home Assistant, and the Waiting for the mobile app window is already open, the search can read the code from Home Assistant. The app then shows We found your Home Assistant, the Home Assistant card names the Home Assistant it found, and the app skips Open Home Assistant and fills in Pairing code for you. Check that it matches the code in Home Assistant, and tap Next.

Step 5: Approve the connection in Home Assistant

After Create, the app shows One more step in Home Assistant. The card Approve in Home Assistant says Go back to the window where the code was and click Approve, and shows a drawing of that window. While it waits, it says Waiting for approval. You can switch away from the app.

The app waiting for the approval in Home Assistant

Go back to Home Assistant. The window Connect a Svitgrid account says that a Svitgrid app signed in to an account has entered this pairing code. Click Approve.

Home Assistant asks to approve the Svitgrid account

Approve only if you entered the code in the app yourself. If you did not, click Reject: nothing is connected, and Home Assistant shows a new code. If you clicked Reject by mistake, tap Enter the new code in the app and type the new one.

After the approval, the app shows Waiting for the first reading and Loading your inverter's settings, then opens your dashboard. This takes about a minute.

If the code or the approval does not work

The code didn't match

The cloud does not know the code you typed. The app shows The code didn't match and the code under You entered. Home Assistant is probably showing a newer code already, because each one works for 5 minutes, or one character got mixed up. Everything set up so far is kept.

Tap Enter the code again, type the code Home Assistant shows now, and tap Next. Where do I find the code? opens the steps again.

Approval hasn't arrived yet

If Home Assistant does not approve within about a minute and a half, the app shows Approval hasn't arrived yet. Your station is already created and saved. Under What next:

  • Window still open? Click Approve in it, then tap Check again.
  • Window closed, or you clicked Reject? Add the Svitgrid integration in Home Assistant again, tap Enter the new code, and type the new code.

If the dashboard stays empty

Check that the Svitgrid entry under Settings → Devices & services in Home Assistant has no error. Then see Troubleshooting.

After setup

To see the connection and change how Home Assistant reports, open the station's Settings tab, then Home Assistant.

The Home Assistant screen in the app

Keeping it updated

HACS shows each new release of the integration in Home Assistant under Settings → Updates, with its release notes. You choose when to install it and when to restart Home Assistant. The integration does not update itself.

If Svitgrid shows an "integration out of date" banner, your version is below the minimum we support — update it through HACS.

What it can do

  • Read your inverter through the sensors you already have in Home Assistant, or by talking Modbus to it directly.
  • Control your inverter: battery charge, work mode, solar sell, grid charge, generator force, generator port mode and export limit.
  • Store data locally, in its own database, keeping about two weeks of detail and roughly two years of hourly history.
  • Run your schedule locally, so events fire even with no internet.

Control works, despite what older documentation says

Earlier versions of these docs said Home Assistant was read-only. That has not been true for some time — seven control commands are supported.

Which inverters it works with

The integration ships ready-made mappings for dozens of models — Deye, Victron, Anenji/EASUN, Huawei, Solplanet, Solis and more, refreshed automatically from Svitgrid. If your model is not covered, you can map the entities yourself from the integration's options.

What it cannot do

  • No Zigbee sockets or EV chargers. Those need a Svitgrid Gateway.
  • No battery BMS reading. Home Assistant has no radio that Svitgrid drives; use a Gateway or your phone.