Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SAJ R5 template #18014

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions templates/definition/meter/saj-r5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
template: saj-r5
products:
- brand: SAJ
description:
generic: R5 Series Solar Inverter
params:
- name: usage
choice: ["pv"]
- name: modbus
choice: ["rs485"]
baudrate: 9600
comset: 8N1
render: |
type: custom
{{- if eq .usage "pv" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 275 # 0x0113 Active power of inverter total output
type: holding
decode: uint16
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 305 # 0x0131 Total Energy
type: holding
decode: uint32
scale: 0.01
{{- end }}
Loading