Storaxe: add soc and voltages, fix type (#10556)

This commit is contained in:
premultiply 2023-10-30 18:04:14 +01:00 • committed by GitHub
parent b87fb6eb66
commit b4a175cefd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ render: |
{{- include "modbus" . | indent 2 }}
register:
address: 2 # RealPower
type: holding
type: input
decode: int16
scale: 100
energy:
@ -24,27 +24,56 @@ render: |
{{- include "modbus" . | indent 2 }}
register:
address: 115 # EnergyExportedAC
type: holding
type: input
decode: uint32
voltages:
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 7 # ACVoltageL1
type: input
decode: int16
scale: 0.1
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 8 # ACVoltageL2
type: input
decode: int16
scale: 0.1
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 9 # ACVoltageL3
type: input
decode: int16
scale: 0.1
currents:
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 10 # ACCurrentL1
type: holding
type: input
decode: int16
scale: 0.1
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 11 # ACCurrentL2
type: holding
type: input
decode: int16
scale: 0.1
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 12 # ACCurrentL3
type: holding
type: input
decode: int16
scale: 0.1
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 126 # SXSSOC
type: input
decode: int16