Add my-PV WiFi Meter (#6805)
This commit is contained in:
parent
3c6e2ca3d6
commit
3f5bfb5ed0
3 changed files with 86 additions and 0 deletions
70
templates/definition/meter/mypv-wifi-meter.yaml
Normal file
70
templates/definition/meter/mypv-wifi-meter.yaml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
template: mypv-wifi-meter
|
||||
products:
|
||||
- brand: my-PV
|
||||
description:
|
||||
generic: WiFi Meter
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid"]
|
||||
- name: modbus
|
||||
choice: ["tcpip"]
|
||||
port: 502
|
||||
id: 1
|
||||
render: |
|
||||
type: custom
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 32 # 0x0020 sum of power, signed, value=data, unit: W
|
||||
type: holding
|
||||
decode: int32
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 34 # 0x0022 sum of forward energy; unsigned, value=data/800, unit: kWh
|
||||
type: holding
|
||||
decode: uint32
|
||||
scale: 0.08
|
||||
currents:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 1 # 0x0001 Phase A current, unsigned, value=data/100, unit: A
|
||||
type: holding
|
||||
decode: uint16
|
||||
scale: 0.01
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 11 # 0x000B Phase B current, unsigned, value=data/100, unit: A
|
||||
type: holding
|
||||
decode: uint16
|
||||
scale: 0.01
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 21 # 0x0015 Phase C current, unsigned, value=data/100, unit: A
|
||||
type: holding
|
||||
decode: uint16
|
||||
scale: 0.01
|
||||
powers:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 2 # 0x0001 Phase A active power, signed, value=data, unit: "W"
|
||||
type: holding
|
||||
decode: int32
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 12 # 0x000C Phase B active power, signed, value=data, unit: "W"
|
||||
type: holding
|
||||
decode: int32
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 22 # 0x0016 Phase C active power, signed, value=data, unit: "W"
|
||||
type: holding
|
||||
decode: int32
|
||||
15
templates/docs/meter/mypv-wifi-meter_0.yaml
Normal file
15
templates/docs/meter/mypv-wifi-meter_0.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
product:
|
||||
brand: my-PV
|
||||
description: WiFi Meter
|
||||
render:
|
||||
- usage: grid
|
||||
default: |
|
||||
type: template
|
||||
template: mypv-wifi-meter
|
||||
usage: grid
|
||||
|
||||
# Modbus TCP
|
||||
modbus: tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
|
|
@ -83,6 +83,7 @@
|
|||
"Janitza",
|
||||
"Kostal",
|
||||
"LG",
|
||||
"my-PV",
|
||||
"myStrom",
|
||||
"OpenEMS",
|
||||
"Orno",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue