Solarwatt: Generalize Battery SoC (#6978)

This commit is contained in:
premultiply 2023-03-21 11:50:09 +01:00 • committed by GitHub
parent a216a86707
commit 2bbde1fb02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ render: |
soc:
source: http
uri: http://{{ .host }}/rest/kiwigrid/wizard/devices # EnergyManager
jq: .result.items[] | select(.deviceModel[].deviceClass == "com.kiwigrid.devices.solarwatt.MyReserve") | .tagValues.StateOfCharge.value
jq: .result.items[] | select(.deviceModel[].deviceClass == "com.kiwigrid.devices.batteryconverter.BatteryConverter") | .tagValues.StateOfCharge.value
{{- if ne .capacity "" }}
capacity: {{ .capacity }} # kWh
{{- end }}