The Sofar Solar HYD 5/6/8/10/15/20KTL-3PH is a three-phase hybrid inverter series combining solar PV generation with battery energy storage. TapHome connects via Modbus RTU over RS-485 using the inverter’s 16-pin COM port, reading holding registers for real-time PV output, battery status, grid power, per-phase voltages, and energy counters.
The inverter supports up to 31 devices on a single RS-485 bus with daisy-chain wiring. Each inverter requires a unique Modbus Slave ID (configurable, default 1). Communication parameters are fixed at 9600 baud, 8N1.
Hardware connection
Communication interfaces

The RS-485 connection for TapHome monitoring uses the COM port — a 16-pin multifunctional connector on the bottom of the inverter.
COM port pinout

Relevant pins for TapHome connection:
| Pin | Function | Note |
|---|---|---|
| 1 | RS485A1-1 (+) | Monitoring/control RS-485 signal A |
| 2 | RS485A1-2 (+) | Daisy-chain second connector |
| 3 | RS485B1-1 (-) | RS-485 signal B |
| 4 | RS485B1-2 (-) | Daisy-chain second connector |
| 5 | RS485A2 (+) | Smart meter — separate bus |
| 6 | RS485B2 (-) | Smart meter — separate bus |
| 7 | CAN0_H | BMS communication (CAN) |
| 8 | CAN0_L | BMS communication (CAN) |
Connect TapHome to Pins 1+3 (or 2+4):
- Pin 1 (RS485A1) → A+/D+ on TapHome RS-485
- Pin 3 (RS485B1) → B-/D- on TapHome RS-485
Do not use Pins 5+6 — these are dedicated to the smart meter on a separate RS-485 bus. TapHome must connect to Pins 1+3 (or 2+4) for Modbus monitoring.
RS-485 daisy-chain wiring

When connecting multiple inverters, wire them in a daisy chain using the RS-485 bus. Place a 120 Ohm termination resistor between Pin 1 and Pin 4 at the first and last device on the bus.
Cable specification:
- Type: Shielded twisted pair, copper cross-section > 0.5 mm²
- Maximum length: 1200 m
- Keep cables away from power cables and electric fields
Configuration
Modbus communication parameters
The RS-485 communication parameters are fixed and do not require configuration on the inverter side:
| Parameter | Value |
|---|---|
| Baud rate | 9600 bps |
| Data bits | 8 |
| Parity | None |
| Stop bits | 1 |
| Slave ID | 1 (default, configurable 1–31) |
For multiple inverters on the same bus, each inverter must have a unique Slave ID. The Slave ID can be configured through the inverter’s LCD menu or the SolarMAN app.
Device capabilities
Battery monitoring
The template provides state of charge monitoring for up to two battery packs. Battery 1 SOC is available on all HYD KTL-3PH models, while Battery 2 SOC is available on the HYD 10–20KTL-3PH models with dual battery inputs.
Each battery SOC device includes five service attributes for detailed battery diagnostics: temperature, voltage, charge/discharge current, charge/discharge power, and state of health (SOH).
Charging and discharging energy of the batteries is on the energy flow meters below.
PV generation monitoring
The template reads power output from up to three individual PV strings (PV1, PV2, PV3), each with service attributes for string voltage and current. Total PV power and energy are on the PV production meter below.
Energy flow meters
Six electricity meters describe the energy flows of the installation for the TapHome Energy Manager and the energy statistics. TapHome names them by meter type in the language of the app. Each meter shows the current power in kW and the lifetime energy in kWh, and has a service attribute with today’s energy:
| Meter | Power | Lifetime energy | Service attribute |
|---|---|---|---|
| PV production | Total PV power (H:0x05C4) | PV generation total (H:0x0686) | PV generation today |
| Load | Load power (H:0x04AF) | Load consumption total (H:0x068A) | Load consumption today |
| From grid | Import part of the PCC power (H:0x0488) | Energy purchased total (H:0x068E) | Energy purchased today |
| To grid | Export part of the PCC power (H:0x0488) | Energy sold total (H:0x0692) | Energy sold today |
| From battery | Discharging power of batteries 1 and 2 (H:0x0606, H:0x060D) | Battery discharge total (H:0x069A) | Battery discharge today |
| To battery | Charging power of batteries 1 and 2 (H:0x0606, H:0x060D) | Battery charge total (H:0x0696) | Battery charge today |
The inverter reports the power at the Point of Common Coupling (PCC, the grid connection point) in H:0x0488 as positive when power is fed into the grid; the template splits it into the From grid and To grid meters. The battery power is positive while charging.
The Grid power balance meter shows the same PCC power for the Energy Manager with the opposite sign: + for import from the grid, − for export to the grid. It has service attributes for reactive power (kvar) and apparent power (kVA) at the PCC and no energy counter.
In the Energy Manager smart rule, select Grid power balance as the electricity meter (positive value = import from the grid, negative value = surplus), not the From grid meter: From grid never drops below zero, so the rule does not see the surplus. Energy Manager is available only in TapHome Core 2026.1 (Next).
AC output monitoring
The template provides three per-phase voltage devices (R/S/T-phase, corresponding to L1/L2/L3), each with a service attribute for phase current. Grid Frequency is reported in Hz.
Total Active Power Output shows the inverter output power in kW, with service attributes for reactive power (kvar) and apparent power (kVA). Power at the grid connection point is on the Grid power balance meter.
Module service attributes
The module exposes three service attributes for inverter diagnostics:
- Product Code — inverter product identification
- System State — current operating state: Waiting, Detection, Grid-connected, Emergency Power Supply, Recoverable Fault, Permanent Fault, Upgrade, or Self-charging
- Ambient Temperature — inverter inner temperature in °C
The module ReadScript also monitors three fault bitmask registers (H:0x0405–H:0x0407), reporting grid protection faults, sampling errors, and hardware faults as errors in TapHome.
System State device
The read-only System State device shows the raw operating state code from register H:0x0404, read every 15 seconds — the same register as the System State service attribute of the module, but as a number that smart rules can use:
| Code | State |
|---|---|
| 0 | Waiting |
| 1 | Detection |
| 2 | Grid-connected |
| 3 | Emergency power supply (EPS) |
| 4 | Recoverable fault |
| 5 | Permanent fault |
| 6 | Upgrade |
| 7 | Self-charging |
On a hybrid inverter, code 3 means the inverter supplies the loads from the battery during a real grid outage.
Additional capabilities
The HYD KTL-3PH inverters also expose registers for remote on/off control, energy storage mode selection (Self-use, Time-of-Use, Timing, Passive, Peak Shaving, Off-grid), and passive battery charge/discharge control for external energy management systems. Per-phase active power and power factor, off-grid/EPS output monitoring, additional PV string inputs (PV4+), battery cycle counts, heatsink temperature, and parameters for batteries 3–6 are also available via Modbus. These can be added in a future template update.
The Passive Mode registers (H:0x1110 and H:0x1187) allow external Modbus control of battery charge/discharge power. This is particularly useful for TapHome smart rules to implement energy management strategies such as charging batteries during low-tariff periods.
Troubleshooting
No Modbus communication
- Verify the RS-485 cable is connected to Pins 1+3 (or 2+4) on the COM port — not Pins 5+6 (smart meter bus)
- Check cable polarity: Pin 1 (A+) to TapHome A+, Pin 3 (B-) to TapHome B-
- Confirm TapHome is configured for 9600 baud, no parity, 1 stop bit
- Verify the Slave ID matches between the inverter and TapHome
- Check the 120 Ohm termination resistor on the first and last device on the bus
Intermittent communication errors
- Ensure the RS-485 cable is shielded twisted pair with copper cross-section > 0.5 mm²
- Keep RS-485 cables away from power cables and DC wiring
- Check total bus length does not exceed 1200 m
- Verify no duplicate Slave IDs on the bus
System State shows fault
- Check the System State service attribute of the module, or the code of the System State device (4 = Recoverable Fault, 5 = Permanent Fault)
- Review fault register details in TapHome service diagnostics — the template reads three fault bitmask registers covering grid protection, sampling errors, and hardware faults
- Consult the inverter LCD display or SolarMAN app for detailed error codes
