diff --git a/templates/definition/meter/solarlog.yaml b/templates/definition/meter/solarlog.yaml index 93135468a..0491f54b0 100644 --- a/templates/definition/meter/solarlog.yaml +++ b/templates/definition/meter/solarlog.yaml @@ -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 }}