You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 104f6af
Browse filesBrowse the repository at this point in the historyBrowse files
feat(gateway): add gateway_shared_ct for inverters sharing one CT clamp
Two or more inverters on one Predbat Gateway with no EMS or Gateway
coordinating them can share a single grid CT clamp. Each then reports the
same grid and load power, and Predbat sums them, so the house's grid and
load power read once per inverter.
gateway_shared_ct: true binds grid_power and load_power to the first
inverter only, with zeros for the rest - the same pattern as
ge_cloud_automatic_shared_ct on the GivEnergy Cloud path. Off by default,
and it does nothing with a single inverter. Battery and PV power stay per
inverter. The energy counters were already taken from the first inverter.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Inverters sharing one grid CT clamp each report the same grid and load reading, so they must
1377
+
# not be summed. Same "single source + zeros" pattern as gecloud.py's ge_cloud_automatic_shared_ct.
1378
+
ifself.gateway_shared_ctandnum_inverters>1:
1379
+
self.log("Info: GatewayMQTT: Multiple inverters sharing a single CT clamp (gateway_shared_ct) — using first inverter only for grid and load measurements")
Copy file name to clipboardExpand all lines: docs/apps-yaml.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -613,6 +613,12 @@ See also **ge_cloud_automatic_split_ct** which takes priority over this setting
613
613
Use this to override automatic shared-CT detection if Predbat incorrectly identifies your system as sharing a CT clamp (e.g. when duplicate meter serials are reported by the cloud API but the inverters actually have separate CT clamps).
614
614
This setting takes priority over **ge_cloud_automatic_shared_ct** if both are set.
615
615
616
+
- **gateway_shared_ct** - Optional, defaults to false. The equivalent of **ge_cloud_automatic_shared_ct** for inverters controlled through the Predbat Gateway.
617
+
When set to `true`, Predbat will treat multiple inverters as sharing a single physical CT clamp for grid and load measurement,
618
+
so only the first inverter's grid and load power readings are used (the rest are zeroed out), preventing double-counting of grid import/export and house load.
619
+
Use this if you have two or more inverters connected to a single CT clamp with no EMS or Gateway coordinating them. The Predbat Gateway does not detect a shared CT automatically.
620
+
Battery and solar readings are unaffected and are still taken from each inverter.
621
+
616
622
- **ge_cloud_automatic_split_pv** - Optional, defaults to false. When set to `true`, Predbat will also include any standalone PV-only inverters (e.g. a GivEnergy AC-coupled PV inverter with no battery attached) in **pv_today** and **pv_power**, in addition to the battery inverters.
617
623
Use this if you have a separate PV-only inverter alongside your battery inverter(s) and want its solar generation included in Predbat's totals. Leave this off (the default) if your battery inverters already report all of your solar generation, to avoid duplicating or including unwanted readings.
0 commit comments