Skip to content

foxess_h3_smart 0.12.0: EPS readings and no device fault for 0x0980 while off-grid - #292

Draft
Leitet wants to merge 1 commit into
mainfrom
cursor/foxess-h3-smart-eps-7b81
Draft

Leitet wants to merge 1 commit into
mainfrom
cursor/foxess-h3-smart-eps-7b81

Conversation

@Leitet

@Leitet Leitet commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

A grid cut on a FoxESS 1K5-HI-10-V1 (3 December 2026, H3-Smart map) left the grid CT at 0 W per phase, so the site had no phase readings while the house was on backup. Status 3 (39065–39066) showed off-grid, and 39067 read 0x0980 (2432). The fault latch raised device_fault, FTW Core excluded the driver, and site-bat_soc became 0 even though SoC at 37612 still read 86%. The same 0x0980 during islanding is reported in nathanmarlor/foxess_modbus#1314.

0.12.0 is read-only on top of 0.11.0. The remote-control path is unchanged and no write register was added.

  • New holding block at 39201, 18 registers (39201–39218), with the same give-up after three misses as the other blocks. A missed read emits nothing. A register that answered 0 is kept.
  • 32-bit values are high word first, same as the rest of this driver. foxess_modbus lists a pair as [low word, high word] because ModbusController.read shifts the first address by 0 and the next by 16. Current R is [39205, 39204] and power R is [39211, 39210], so the high word is at the lower address. That matches decode_i32_be and the PV pairs at 39279 already confirmed on this 1K5.
  • Decode, Inv.H3_SMART in entity_descriptions.py (#669) and FoxESS Modbus definition V1.05.04.00:
    • 39201–39203 EPS voltage R/S/T, u16 × 0.1 V
    • 39204–39209 EPS current R/S/T, i32 × 0.001 A
    • 39210–39215 EPS power R/S/T, i32, raw value in W (the integration's 0.001 scale is W → kW)
    • 39216–39217 EPS power total, i32 W
    • 39218 EPS frequency, u16 × 0.01 Hz (the PDF types it I16; the integration reads it unsigned)
  • Published as eps_l1_v / eps_l1_a / eps_l1_w and the same for l2 and l3, plus eps_w and eps_hz, both via host.emit_metric and on the inverter emit (FTW keeps the emit as inverter.data on /api/drivers, and metrics on the same view). The grid CT meter is unchanged; EPS does not overwrite grid phases.
  • 39067 = 0x0980 alone does not raise device_fault while Status 3 bit 0 says off-grid. The raw status and fault words are logged. Every other code still latches, and so does 0x0980 while the grid is present. Going off-grid clears a latch that 0x0980 raised on-grid, so Core keeps the driver.
  • Load total already read at 39225–39226 is published as house_load_w (i32 watts, vendor sign). No extra read.

Overlay for a local test, raw file on this branch:

https://raw.githubusercontent.com/srcfl/device-drivers/cursor/foxess-h3-smart-eps-7b81/drivers/lua/foxess_h3_smart.lua

Driver evidence

  • Driver id: foxess_h3_smart
  • Device make/model: Fox ESS 1K5-HI-10-V1 (H3-Smart register map)
  • Firmware tested: not recorded on the 3 December cut
  • Protocol/register source: nathanmarlor/foxess_modbus entity_descriptions.py (Inv.H3_SMART, #669) and modbus_controller.py (read word order); FoxESS Modbus definition V1.05.04.00; island code from foxess_modbus#1314 and the 3 December cut
  • Hardware test performed: the 3 December grid cut confirmed Status 3 off-grid, grid CT at 0 W per phase, 39067 = 0x0980, and that SoC at 37612 kept reading (86%) while Core zeroed site SoC because of the fault. EPS registers were not read on that cut, so the EPS scale is from the sources above and still needs a reading from the backup output.
  • Known limits: H3-Smart hardware is still untested. EPS is not yet seen on this 1K5. Control is unchanged and stays at its existing production verification.

Safety

  • A driver that can command its device has control on, or says in its description why it cannot.
  • Vendor signs are converted at the driver boundary. EPS and house load are published as the inverter reports them (watts, signed). They are not written into the grid meter.
  • Cached telemetry becomes stale instead of being re-emitted as fresh. A missed EPS or load read emits nothing, including no invented zero.
  • No credentials, serial numbers, private addresses or site data are included.

Control evidence

Not applicable. No write register and no remote-control change. Existing test_foxess_h3_smart_control.py still passes. An EPS poll writes nothing.

Checks

  • Commits include Signed-off-by.
  • make test-driver ID=foxess_h3_smart — 93 passed, 5 skipped.
  • make check — 5579 passed, 927 skipped.
Open in Web Open in Cursor 

A grid cut left the grid CT at 0 W per phase and raised device_fault
for 39067 = 0x0980 while Status 3 said off-grid, so FTW dropped the
driver. 0.12.0 reads the EPS block and does not latch that code
during islanding.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Johan Leitet <johan@sourceful-labs.com>
@cursor
cursor Bot force-pushed the cursor/foxess-h3-smart-eps-7b81 branch from 073f7aa to b9fb94c Compare December 5, 2026 14:18

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants