- The configure intents to present devices that implement multiple usages in a single device or have linked templates and provide an easier step by step configuration experience e.g. by not asking for the same data for different usages over and over again
- Commit 880557594f changes this behaviour and now presents all devices that have multiple usages, e.g. meters that could be used as battery or pv meter
- This change introduces a new property `allineone` that should be used with the `usage` `param` the identify a device that implements multiple usages in the same device
- The filter to present these devices is extended by checking for this property
76 lines
2 KiB
YAML
76 lines
2 KiB
YAML
template: solax
|
|
covers: ["solax-x1", "solax-x3"]
|
|
products:
|
|
- brand: Solax
|
|
description:
|
|
generic: Hybrid X1/X3 G3/G4
|
|
- brand: Qcells
|
|
description:
|
|
generic: Q.HOME ESS HYB-G3
|
|
params:
|
|
- name: usage
|
|
choice: ["grid", "pv", "battery"]
|
|
allinone: true
|
|
- name: modbus
|
|
choice: ["rs485", "tcpip"]
|
|
baudrate: 19200
|
|
render: |
|
|
type: custom
|
|
power:
|
|
{{- if eq .usage "grid" }}
|
|
source: modbus
|
|
{{- include "modbus" . | indent 2 }}
|
|
register: # manual non-sunspec register configuration
|
|
address: 70 # 0x0046 feedin_power(meter)
|
|
type: input
|
|
decode: int32s
|
|
scale: -1
|
|
energy:
|
|
source: modbus
|
|
{{- include "modbus" . | indent 2 }}
|
|
register: # manual non-sunspec register configuration
|
|
address: 74 # 0x004A consum_energy_total(meter)
|
|
type: input
|
|
decode: uint32s
|
|
scale: 10
|
|
{{- end }}
|
|
{{- if eq .usage "pv" }}
|
|
source: calc
|
|
add:
|
|
- source: modbus
|
|
{{- include "modbus" . | indent 4 }}
|
|
register: # manual non-sunspec register configuration
|
|
address: 10 # 0x000A Powerdc1
|
|
type: input
|
|
decode: uint16
|
|
- source: modbus
|
|
{{- include "modbus" . | indent 4 }}
|
|
register: # manual non-sunspec register configuration
|
|
address: 11 # 0x000B Powerdc2
|
|
type: input
|
|
decode: uint16
|
|
energy:
|
|
source: modbus
|
|
{{- include "modbus" . | indent 2 }}
|
|
register: # manual non-sunspec register configuration
|
|
address: 148 # 0x0094 SolarEnergyTotal
|
|
type: input
|
|
decode: uint32s
|
|
scale: 10
|
|
{{- end }}
|
|
{{- if eq .usage "battery" }}
|
|
source: modbus
|
|
{{- include "modbus" . | indent 2 }}
|
|
register: # manual non-sunspec register configuration
|
|
address: 22 # 0x0016 Batpower_Charge1
|
|
type: input
|
|
decode: int16
|
|
scale: -1
|
|
soc:
|
|
source: modbus
|
|
{{- include "modbus" . | indent 2 }}
|
|
register:
|
|
address: 28 # 0x001C Battery Capacity
|
|
type: input
|
|
decode: uint16
|
|
{{- end }}
|