Skip to content

Commit

Permalink
chore: expose battery-control capabilities (#11193)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Dec 26, 2023
1 parent f369ee9 commit 25e1fdf
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions templates/definition/meter/kostal-plenticore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ products:
- brand: Kostal
description:
generic: Plenticore Hybrid
capabilities: ["battery-control"]
linked:
- template: kostal-ksem-inverter
usage: grid
Expand Down
1 change: 1 addition & 0 deletions templates/definition/meter/sofarsolar-g3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ products:
- brand: SofarSolar
description:
generic: SOFAR 5…24KTL-G3
capabilities: ["battery-control"]
requirements:
description:
de: Es wird dringend empfohlen die Verbindung über einen LSE-3 Logger Stick herzustellen. Andere Verbindungswege (z.B. LSW-3 oder via RS485) sind u.U. instabil und benötigen Verzögerungen (delay) > 0s.
Expand Down
1 change: 1 addition & 0 deletions templates/definition/meter/sungrow-hybrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ products:
- brand: Sungrow
description:
generic: SH Series Hybrid Inverter
capabilities: ["battery-control"]
requirements:
description:
de: Die Verbindung ist seriell (RS485) oder über die native (hintere) LAN-Buchse am Wechselrichter möglich. Verbindungen über das WiNet-S-Dongle (WiFi oder LAN) funktionieren NICHT korrekt.
Expand Down
1 change: 1 addition & 0 deletions templates/definition/meter/tesla-powerwall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ products:
- brand: Tesla
description:
generic: Powerwall
capabilities: ["battery-control"]
requirements:
description:
de: |
Expand Down
1 change: 1 addition & 0 deletions templates/definition/meter/victron-energy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ products:
- brand: Victron
description:
generic: Energy
capabilities: ["battery-control"]
params:
- name: usage
choice: ["grid", "pv", "battery"]
Expand Down
13 changes: 7 additions & 6 deletions util/templates/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ const (
var ValidDependencies = []string{DependencyCheckEmpty, DependencyCheckNotEmpty, DependencyCheckEqual}

const (
CapabilityISO151182 = "iso151182" // ISO 15118-2 support
CapabilityMilliAmps = "mA" // Granular current control support
CapabilityRFID = "rfid" // RFID support
Capability1p3p = "1p3p" // 1P/3P phase switching support
CapabilitySMAHems = "smahems" // SMA HEMS Support
CapabilityISO151182 = "iso151182" // ISO 15118-2 support
CapabilityMilliAmps = "mA" // Granular current control support
CapabilityRFID = "rfid" // RFID support
Capability1p3p = "1p3p" // 1P/3P phase switching support
CapabilitySMAHems = "smahems" // SMA HEMS support
CapabilityBatteryControl = "battery-control" // Battery control support
)

var ValidCapabilities = []string{CapabilityISO151182, CapabilityMilliAmps, CapabilityRFID, Capability1p3p, CapabilitySMAHems}
var ValidCapabilities = []string{CapabilityISO151182, CapabilityMilliAmps, CapabilityRFID, Capability1p3p, CapabilitySMAHems, CapabilityBatteryControl}

const (
RequirementEEBUS = "eebus" // EEBUS Setup is required
Expand Down

0 comments on commit 25e1fdf

Please sign in to comment.