Repository navigation
Battery FoxESS
Choose your route in Battery connection method & sensors. Edit connection details under Configure > FoxESS connection.
| 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.
| 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 | — |
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)
The H3 Smart has a built-in WiFi connection. No external adapter is needed.
- Find the inverter's IP address — it appears as "espressif" on your network
- Ensure firmware is up to date — required for a stable connection
- Use default settings — Port 502, Slave ID 247
- 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
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:
- Log in to foxesscloud.com
- Go to User Profile > API Management
- Generate a new API key
- Enter the API key and your device serial number during PowerSync setup
| 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) |
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 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 | 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 |
| 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) |
| 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 |
| 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 |
| 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 |
| 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 |
Connect your system
- Battery directory
- Connection methods and sensors
- Electricity providers
- Tariffs and time periods
- Amber Smart Shift
Manage energy
- Smart Optimization
- Optimization settings
- HA optimiser access
- EV charging
- EV load management
- Advanced settings
- Controls and automations
Readings and controls
Help