Solarlog: add pv energy (#10516)

This commit is contained in:
VolkerK62 2023-10-29 00:41:24 +02:00 • committed by GitHub
parent 58d5e8bd10
commit ae40e435a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,8 +19,8 @@ params:
default: 502
render: |
type: custom
power:
{{- if eq .usage "grid" }}
power:
source: calc
add:
- source: modbus
@ -40,6 +40,7 @@ render: |
decode: uint32s
{{- end }}
{{- if eq .usage "pv" }}
power:
source: modbus
uri: {{ .host }}:{{ .port }}
id: 1
@ -47,4 +48,13 @@ render: |
address: 3502 # Pac
type: input
decode: uint32s
energy:
source: modbus
uri: {{ .host }}:{{ .port }}
id: 1
register:
address: 3516 # total yield
type: input
decode: uint32s
scale: 0.001
{{- end }}