OpenEMS: fix null (#11479)

This commit is contained in:
premultiply 2024-01-04 21:04:05 +01:00 • committed by GitHub
parent d1006a2d33
commit b93493549f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ render: |
type: basic
user: x
password: {{ .password }}
jq: .value
jq: (.value // 0)
{{- if eq .usage "battery" }}
soc:
source: http
@ -39,7 +39,7 @@ render: |
type: basic
user: x
password: {{ .password }}
jq: .value
jq: (.value // 0)
{{- if .capacity }}
capacity: {{ .capacity }} # kWh
{{- end }}