docs: record the verified register map and inverter IDs
P06D is a latched 21450 (not power), P052/P05A static, P063 frozen; power is computed V*I. Lists what's sent, what isn't, the unmapped diagnostics, the INV1-INV5 IP assignments, and that timestamps must be real UTC. The simulator now sends the same payload shape. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+32
-15
@@ -1,6 +1,6 @@
|
||||
# On-site poller
|
||||
|
||||
`refusol_poller.py` (not in this repo yet) reads the inverters over USS/TCP
|
||||
`refusol_poller.py` (lives on the site laptop, not in this repo) reads the inverters over USS/TCP
|
||||
(port 21062, USS address 0). It sends each cycle to the backend through
|
||||
`backend_client.py` — copy that file next to the poller.
|
||||
|
||||
@@ -30,20 +30,37 @@ Each dict uses the keys below (all optional — send what was read). Anything
|
||||
else you include (e.g. a newly discovered parameter as `"p0xx_raw": 1234`) is
|
||||
stored too and shows under "Other (unmapped)" on the inverter page.
|
||||
|
||||
| key | unit | source |
|
||||
|---|---|---|
|
||||
| `ac_voltage_l1_v` / `_l2_v` / `_l3_v` | V | P050 / P05B / P064 raw / 40 |
|
||||
| `dc_voltage_mppt1_v` / `_mppt2_v` | V | P052 / P054 raw / 40 |
|
||||
| `dc_current_mppt1_a` / `_mppt2_a` | A | P05A / P05C raw / 10 |
|
||||
| `ac_current_l1_a` / `_l2_a` / `_l3_a` | A | P068 / P069 / P06A raw / 100 |
|
||||
| `ac_power_total_w` | W | P06D raw |
|
||||
| `grid_frequency_hz` | Hz | P06C raw / 20 |
|
||||
| `temperature_c` | °C | P070 raw >> 16 |
|
||||
| `daily_energy_wh` | Wh | P063 IND=0 raw × 10 |
|
||||
| `total_energy_wh` | Wh | P063 IND=11 raw |
|
||||
| `status_code` | – | inverter state, once identified |
|
||||
| `error_code` | – | non-zero = fault (shows the inverter as **Fault**) |
|
||||
| `status_text` | – | optional human text for the code |
|
||||
State of the map as verified on site (2026-10-21):
|
||||
|
||||
| key | unit | status | source |
|
||||
|---|---|---|---|
|
||||
| `ac_power_total_w` | W | ✅ sent | **Computed** by the poller: Σ (phase V × phase I), forced to 0 when the inverter isn't feeding. *Not* P06D — P06D sits latched at 21450 on any feeding unit (nameplate/limit, not live power). |
|
||||
| `ac_voltage_l1_v` / `_l2_v` / `_l3_v` | V | ✅ sent | P050 / P05B / P064 raw / 40 |
|
||||
| `ac_current_l1_a` / `_l2_a` / `_l3_a` | A | ✅ sent | P068 / P069 / P06A raw / 100 |
|
||||
| `grid_frequency_hz` | Hz | ✅ sent | P06C raw / 20 |
|
||||
| `temperature_c` | °C | ✅ sent | P070 raw >> 16 |
|
||||
| `status_code` | – | ✅ sent | PZD status word. **7 and 8 = feeding** (7 on INV1's OEM board, 8 on the standard units); anything else shows as Standby. Other values not decoded yet. |
|
||||
| `status_text` | – | ✅ sent | `"feeding"` / `"standby/not feeding"` |
|
||||
| `dc_voltage_mppt1_v` / `_mppt2_v` | V | ❌ not sent | P052 / P054 are static nameplate/limit values, not live. Real registers TBD. |
|
||||
| `dc_current_mppt1_a` / `_mppt2_a` | A | ❌ not sent | P05A / P05C likewise static. Real registers TBD. |
|
||||
| `daily_energy_wh` | Wh | ❌ not sent | P063 IND=0 is frozen, not accumulating. Real register TBD. Until then the backend **estimates** daily energy by integrating `ac_power_total_w` (shown with ≈). |
|
||||
| `total_energy_wh` | Wh | ❌ not sent | P063 IND=11 decode wrong. Real register TBD. Lifetime shows "not available yet". |
|
||||
| `error_code` | – | ❌ not sent | No fault register confirmed yet. Absent = no fault. Non-zero will show the inverter as **Fault**. |
|
||||
|
||||
Unmapped diagnostics currently sent (stored, shown under "Other (unmapped)",
|
||||
never treated as telemetry): `p06d_raw_latched`, `p052_static_v`,
|
||||
`p05a_static_a`, `p063_ind0_raw`.
|
||||
|
||||
Inverter IDs (permanent database keys): INV1 = 192.168.1.11, INV2 =
|
||||
192.168.1.12, INV3 = 192.168.1.13 (reserved, not connected yet), INV4 =
|
||||
192.168.1.221, INV5 = REFUsol 20K-3T (reserved, no read path yet). An
|
||||
inverter appears on the dashboard the first time it reports.
|
||||
|
||||
**Timestamps must be UTC.** Send them with the right offset (e.g.
|
||||
`datetime.now(timezone.utc).isoformat()`), or leave `timestamp` out and let
|
||||
`backend_client.py` add it. A reading stamped more than 5 min in the future
|
||||
(e.g. local Athens time labelled `+00:00`) is stored at the time it was
|
||||
received instead, and the response's `clamped_future` count says so.
|
||||
|
||||
`send()` stamps each reading with the current UTC time, buffers to
|
||||
`unsent_readings.jsonl` when the internet is down and re-sends later, and
|
||||
|
||||
Reference in New Issue
Block a user