Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sofar Inverter Modbus TCP

Validate HACS Custom

Add to HACS

A Home Assistant custom integration for Sofar Solar inverters via Modbus TCP.

Supported Devices

  • Sofar HYD series (hybrid inverters)
  • Sofar KTL series (string inverters)
  • Sofar ME series (storage inverters)
  • Other Sofar inverters with Modbus TCP support

Features

  • Real-time solar production monitoring (PV power, voltage, current)
  • Battery status (SoC, charge/discharge power, voltage)
  • Grid import/export power monitoring
  • Load consumption tracking
  • Number entities for battery charge/discharge limits
  • Select entities for inverter operating mode
  • Button entities for inverter commands
  • Configurable via the Home Assistant UI (config flow)

Installation

HACS (Recommended)

  1. Open HACS in Home Assistant
  2. Click the three dots menu → Custom repositories
  3. Add https://github.com/LucMathlin/ha-sofar-inverter with category Integration
  4. Search for "Sofar Inverter" and install
  5. Restart Home Assistant

Manual

  1. Copy custom_components/sofar_inverter/ to your Home Assistant config/custom_components/ directory
  2. Restart Home Assistant

Configuration

  1. Go to Settings → Devices & Services → Add Integration
  2. Search for "Sofar Inverter"
  3. Enter the Modbus TCP host, port, and slave ID of your inverter
  4. Configure polling interval as needed

Requirements

  • Modbus TCP connectivity to the inverter (via built-in WiFi module or RS485-to-TCP gateway)
  • pymodbus>=3.11.2 (installed automatically)

About

Home Assistant integration for Sofar Solar inverters via Modbus TCP

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages