Skip to content

FoxESS inverter integration. Connect directly to your FoxESS inverter (no cloud!) for real-time status and control.

License

Notifications You must be signed in to change notification settings

ocl80/foxess_modbus_ocl80

 
 

Repository files navigation

FoxESS - Modbus - ocl80

** As of February 2025 you should use the main upstream respository instead of this fork. Details below. **

** This project is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by FoxESS **

Introduction

This is my fork of foxess_modbus which is a Home Assistant custom component which communicates with FoxESS H-series inverters and derivatives without using FoxESS's cloud.

This means that you're not reliant on FoxESS's cloud infrastructure, so HA keeps working when the cloud goes down. You can also read solar production etc in real-time, rather than once every 5 minutes.

If this looks useful, you should almost certainly use the upstream repo at https://github.com/nathanmarlor/foxess_modbus instead of this one, but if you are having problems with KH inverters on more recent firmware, this fork may be useful to you.

The purpose of this fork WAS to apply / test some quick fixes to enable it to work correctly with a KH inverter with recent firmware (Master 1.39), which I found were otherwise broken, as per the issue discussed here.

But now these fixes and more have been fully incorporated into the upstream https://github.com/nathanmarlor/foxess_modbus and you should now use that one.

Depending on your inverter model, you can also set charge periods, work mode, min/max SoC. See Supported Features.

Supported models:

  • FoxESS H1 (including AC1 and AIO-H1)
  • FoxESS H3 (including AC3 and AOI-H3)
  • FoxESS KH
  • Sonnenkraft SK-HWR
  • Kuara H3
  • Solavita SP

You will need a direct connection to your inverter. In most cases, this means buying a modbus to ethernet/USB adapter and wiring this to a port on your inverter. See the documentation for details.

See the wiki for how-to articles and FAQs.

Installation

Quick installation link

Migrating from StealthChesnut's HA-FoxESS-Modbus? Read this.

Recommended installation is through HACS:

  1. Either use this link, or navigate to HACS integration and:
    • 'Explore & Download Repositories'
    • Search for 'FoxESS - Modbus'
    • Download
  2. Restart Home Assistant
  3. Go to Settings > Devices and Services > Add Integration
  4. Search for and select 'FoxESS - Modbus' (If the integration is not found, empty your browser cache and reload the page)
  5. Proceed with the configuration

Usage

  1. Navigate to Settings -> Devices & Services to find:

Usage

  1. Select '1 device' to find all Modbus readings:

Example

Charge Periods

If your inverter supports setting charge periods, you can use install the Charge Periods lovelace card:

Charge Periods

Services

Write Service

A service to write any modbus address is available, similar to the native Home Assistant service. To use a service, navigate to Developer Tools -> Services and select it from the drop-down.

Service

Update Charge Periods

Updates one of the two charge periods (if supported by your inverter).

Service

Update All Charge Periods

Sets all charge periods in one service call. The service "Update Charge Period" is easier for end-users to use.

Service


About

FoxESS inverter integration. Connect directly to your FoxESS inverter (no cloud!) for real-time status and control.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%