Skip to content

Battery FoxESS

bolagnaise edited this page Nov 20, 2026 · 2 revisions

FoxESS

Choose your route in Battery connection method & sensors. Edit connection details under Configure > FoxESS connection.

Connection choices

Connection method What this route provides
PowerSync Modbus TCP Direct device connection. Operations depend on the supported model, firmware and enabled write permissions.
PowerSync RS485 serial Direct device connection. Operations depend on the supported model, firmware and enabled write permissions.
FoxESS Cloud API Cloud telemetry/control where the provider supports it; polling and API availability affect response.
FoxESS Modbus Home Assistant integration Uses the selected companion integration. Required control entities must be present and writable; telemetry alone is insufficient.

Choose TCP or serial for direct Modbus, the Home Assistant bridge when it owns Modbus, or the FoxESS Cloud API for its supported online controls. The model family is detected during supported local setup, including OEM rebrands with the same hardware.

Supported Models

Model Family Type OEM Rebrands
H1 Single Phase AIO-H1, a-TroniX AX
H3 Three Phase AIO-H3, Kuara H3, Sonnenkraft SK-HWR, 1KOMMA5
H3-Pro Three Phase (Higher Power) —
H3 Smart Three Phase (Native WiFi) —
KH Single Phase Hybrid —

Connection Options

Modbus TCP (H3 Smart)

  • Port: 502 (default)
  • Slave ID: 247 (default)
  • For H3 Smart: Connect directly to the inverter's IP address — no external adapter needed

RS485 Serial

  • Baud rate: 9600 (default)
  • Slave ID: 247 (default)
  • Requires an RS485 adapter (USB or network gateway like Elfin EW11)

H3 Smart Setup

The H3 Smart has a built-in WiFi connection. No external adapter is needed.

  1. Find the inverter's IP address — it appears as "espressif" on your network
  2. Ensure firmware is up to date — required for a stable connection
  3. Use default settings — Port 502, Slave ID 247
  4. PowerSync will auto-detect the model as H3 Smart during setup

Troubleshooting: If the connection test fails:

  • Check your router for a device named "espressif" to find the correct IP
  • Update inverter firmware to the latest version
  • Verify port 502 is not blocked by your network

FoxESS Cloud (Optional)

To use the Cloud API route or optional tariff sync, supply a FoxESS Cloud API key and device serial number. Tariff sync can upload up to eight periods per day. An active Smart Optimization setup skips native schedule sync to avoid conflicting control.

Getting your API key:

  1. Log in to foxesscloud.com
  2. Go to User Profile > API Management
  3. Generate a new API key
  4. Enter the API key and your device serial number during PowerSync setup

Work Modes

Mode Description
Self Use Normal self-consumption — battery powers home, charges from solar
Feed-in First Prioritises exporting to grid
Backup Reserves battery for backup power
Peak Shaving Reduces grid import during peak periods (H3-Pro/Smart only)

Force charge and discharge

On a supported direct connection, PowerSync uses the inverter’s configured maximum to bound manual and optimizer power targets. Check the reported work mode and power before relying on a new setting.

Check the result

Check the detected model and fresh SOC, battery and grid readings. On a writable route, compare a supervised request with the inverter mode, battery power and site flow. See connection verification.

Field reference

FoxESS connection type — initial setup

Field Meaning / input Fallback / limits
Connection type Modbus TCP connects over LAN/WiFi. RS485 Serial provides direct register access. FoxESS Cloud API uses Open API control with cloud-rate-limit latency. Entity bridge reuses an existing foxess_modbus integration instead of opening another Modbus connection. Saved/detected value or the form’s shown fallback

FoxESS entity bridge — initial setup

Field Meaning / input Fallback / limits
foxess_modbus integration Select the foxess_modbus integration entry PowerSync should read and control. If there is only one entry, PowerSync selects it automatically. Saved/detected value or the form’s shown fallback
Entity prefix Optional fallback for renamed entities. Example: foxess for sensor.foxess_battery_soc and select.foxess_work_mode. Fallback blank (see retention/clear rules)

FoxESS Modbus TCP — initial setup

Field Meaning / input Fallback / limits
Inverter IP address Local IP of your FoxESS inverter. H3 Smart may appear as 'espressif' on your network. Saved/detected value or the form’s shown fallback
Modbus port Default Modbus TCP port is 502. Fallback 502; 1–65535; step 1
Modbus slave ID Default is 247 for FoxESS. Fallback 247; 1–247; step 1

FoxESS RS485 serial — initial setup

Field Meaning / input Fallback / limits
Serial port path e.g. /dev/ttyUSB0 for a USB-to-RS485 adapter. Fallback /dev/ttyUSB0
Baud rate Default 9600. Only change if the inverter is configured differently. Fallback 9600; 1200–115200; step 1
Modbus slave ID Default is 247 for FoxESS. Fallback 247; 1–247; step 1

Confirm FoxESS model — initial setup

Field Meaning / input Fallback / limits
Inverter model H3-Pro and H3 Smart use the same register set. The H3 Smart has built-in WiFi Modbus. Saved/detected value or the form’s shown fallback

FoxESS connection — existing installation

Field Meaning / input Fallback / limits
Entity prefix Optional fallback for renamed entities. Example: foxess for sensor.foxess_battery_soc and select.foxess_work_mode. Saved/detected value or the form’s shown fallback
Connection type Choose Modbus TCP, RS485 serial, FoxESS Cloud API, or the entity bridge for Nathan Marlor's foxess_modbus integration. Saved/detected value or the form’s shown fallback
Inverter IP address Local IP of your FoxESS inverter. H3 Smart may appear as 'espressif' on your network. Saved/detected value or the form’s shown fallback
Modbus port Default Modbus TCP port is 502. 1–65535; step 1
Modbus slave ID Default is 247 for FoxESS. 1–247; step 1
Serial port path e.g. /dev/ttyUSB0 for a USB-to-RS485 adapter. Saved/detected value or the form’s shown fallback
Baud rate Default 9600. Only change if the inverter is configured differently. 300–115200; step 1
FoxESS Cloud API key Get your API key from foxesscloud.com > User Centre > API Management. Saved/detected value or the form’s shown fallback
Device serial number Inverter serial number from FoxESS Cloud. Saved/detected value or the form’s shown fallback
foxess_modbus integration Select the foxess_modbus integration entry PowerSync should read and control. If there is only one entry, PowerSync selects it automatically. Saved/detected value or the form’s shown fallback

Clone this wiki locally