Add Shelly EM1 (#31992)
This commit is contained in:
parent
ba72b092d9
commit
1a058fd933
1 changed files with 44 additions and 0 deletions
44
templates/definition/meter/shelly-em1-modbus.yaml
Normal file
44
templates/definition/meter/shelly-em1-modbus.yaml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
template: shelly-em1-modbus
|
||||
products:
|
||||
- { brand: Shelly, description: { generic: EM1-based (Modbus) } }
|
||||
group: switchsockets
|
||||
requirements:
|
||||
description:
|
||||
de: |
|
||||
Shelly EM1-basierte Geräte für einphasige Messungen.
|
||||
en: |
|
||||
Shelly EM1-based devices for single phase measurements.
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "pv", "charge"]
|
||||
- name: modbus
|
||||
choice: ["tcpip"]
|
||||
id: 1
|
||||
- name: channel
|
||||
default: 0
|
||||
render: |
|
||||
type: custom
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: {{ $addr := add 2007 ( mul 20 .channel ) }}{{ $addr }} # Active Power (W)
|
||||
type: input
|
||||
decode: float32s
|
||||
scale: 1
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: {{ $addr := add 2310 ( mul 20 .channel ) }}{{ $addr }} # Total Active Energy (Wh)
|
||||
type: input
|
||||
decode: float32s
|
||||
scale: 0.001
|
||||
returnenergy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: {{ $addr := add 2312 ( mul 20 .channel ) }}{{ $addr }} # Total Active Returned Energy (Wh)
|
||||
type: input
|
||||
decode: float32s
|
||||
scale: 0.001
|
||||
Loading…
Add table
Add a link
Reference in a new issue