B+GE-TECH WS/DS100: fix templates (#23384)
This commit is contained in:
parent
270563de7c
commit
5ff723dab0
3 changed files with 46 additions and 82 deletions
|
|
@ -1,73 +0,0 @@
|
|||
template: bge_tech_ws100
|
||||
products:
|
||||
- brand: BGEtech
|
||||
description:
|
||||
generic: WS100
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "pv", "charge", "aux"]
|
||||
- name: modbus
|
||||
choice: ["rs485", "tcpip"]
|
||||
baudrate: 1200
|
||||
render: |
|
||||
type: custom
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 0x0104 # Total active power
|
||||
type: holding
|
||||
decode: int32
|
||||
{{- if eq .usage "pv" }}
|
||||
scale: -1
|
||||
{{- end }}
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
{{- if eq .usage "pv" }}
|
||||
address: 0x0118 # Reversing active energy consumption
|
||||
{{- else }}
|
||||
address: 0x010E # Forward active energy consumption
|
||||
{{- end }}
|
||||
type: holding
|
||||
decode: int32
|
||||
scale: 0.01
|
||||
currents:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 0x0102 # Electricity of A phase
|
||||
type: holding
|
||||
decode: int32
|
||||
scale: 0.001
|
||||
- source: const
|
||||
value: 0 # since the device only a single phase, this value is set to 0
|
||||
- source: const
|
||||
value: 0 # since the device only a single phase, this value is set to 0
|
||||
voltages:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 0x0100 # Voltage of A phase
|
||||
type: holding
|
||||
decode: int32
|
||||
scale: 0.001
|
||||
- source: const
|
||||
value: 0 # since the device only a single phase, this value is set to 0
|
||||
- source: const
|
||||
value: 0 # since the device only a single phase, this value is set to 0
|
||||
powers:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 0x0104 # Active power of A phase
|
||||
type: holding
|
||||
decode: int32
|
||||
{{- if eq .usage "pv" }}
|
||||
scale: -1
|
||||
{{- end }}
|
||||
- source: const
|
||||
value: 0 # since the device only a single phase, this value is set to 0
|
||||
- source: const
|
||||
value: 0 # since the device only a single phase, this value is set to 0
|
||||
|
|
@ -1,13 +1,14 @@
|
|||
template: bge_tech_ds100
|
||||
template: bgetech-ds100
|
||||
covers: ["bge_tech_ds100"]
|
||||
products:
|
||||
- brand: BGEtech
|
||||
- brand: B+GE-TECH
|
||||
description:
|
||||
generic: DS100
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "pv", "charge", "aux"]
|
||||
choice: ["grid", "pv", "charge"]
|
||||
- name: modbus
|
||||
choice: ["rs485", "tcpip"]
|
||||
choice: ["rs485"]
|
||||
baudrate: 1200
|
||||
render: |
|
||||
type: custom
|
||||
|
|
@ -26,9 +27,9 @@ render: |
|
|||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
{{- if eq .usage "pv" }}
|
||||
address: 0x0118 # Reversing active energy consumption
|
||||
address: 0x0118 # Active energy (feed-in)
|
||||
{{- else }}
|
||||
address: 0x010E # Forward active energy consumption
|
||||
address: 0x010E # Active energy (consumption)
|
||||
{{- end }}
|
||||
type: holding
|
||||
decode: int32
|
||||
|
|
@ -37,21 +38,21 @@ render: |
|
|||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 0x0410 # Electricity of A phase
|
||||
address: 0x0410 # Current of A phase
|
||||
type: holding
|
||||
decode: int32
|
||||
scale: 0.001
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 0x0412 # Electricity of B phase
|
||||
address: 0x0412 # Current of B phase
|
||||
type: holding
|
||||
decode: int32
|
||||
scale: 0.001
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 0x0414 # Electricity of C phase
|
||||
address: 0x0414 # Current of C phase
|
||||
type: holding
|
||||
decode: int32
|
||||
scale: 0.001
|
||||
36
templates/definition/meter/bgetech-ws100.yaml
Normal file
36
templates/definition/meter/bgetech-ws100.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
template: bgetech-ws100
|
||||
covers: ["bge_tech_ws100"]
|
||||
products:
|
||||
- brand: B+GE-TECH
|
||||
description:
|
||||
generic: WS100
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "pv", "charge"]
|
||||
- name: modbus
|
||||
choice: ["rs485"]
|
||||
baudrate: 1200
|
||||
render: |
|
||||
type: custom
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 0x0104 # Total active power
|
||||
type: holding
|
||||
decode: int32
|
||||
{{- if eq .usage "pv" }}
|
||||
scale: -1
|
||||
{{- end }}
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
{{- if eq .usage "pv" }}
|
||||
address: 0x0118 # Active energy (feed-in)
|
||||
{{- else }}
|
||||
address: 0x010E # Active energy (consumption)
|
||||
{{- end }}
|
||||
type: holding
|
||||
decode: int32
|
||||
scale: 0.01
|
||||
Loading…
Add table
Add a link
Reference in a new issue