Skip to content

Commit 422a58d

Browse files
authored
Add Carlo Gavazzi EM24_E1 (Ethernet version) (#21027)
1 parent 10ad187 commit 422a58d

File tree

4 files changed

+39
-4
lines changed

4 files changed

+39
-4
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ require (
9090
github.com/teslamotors/vehicle-command v0.3.4
9191
github.com/traefik/yaegi v0.16.1
9292
github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c
93-
github.com/volkszaehler/mbmd v0.0.0-20250411152441-99388f32e2c3
93+
github.com/volkszaehler/mbmd v0.0.0-20250503134953-5c7e3f60eee5
9494
github.com/writeas/go-strip-markdown/v2 v2.1.1
9595
gitlab.com/bboehmke/sunny v0.16.0
9696
go.uber.org/mock v0.5.2

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,8 @@ github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IU
693693
github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok=
694694
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
695695
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
696-
github.com/volkszaehler/mbmd v0.0.0-20250411152441-99388f32e2c3 h1:eQmg4LiwllMxNmqChmyKDx6p5HwMK+SYRkGTPQ9aIkY=
697-
github.com/volkszaehler/mbmd v0.0.0-20250411152441-99388f32e2c3/go.mod h1:egeAZti78O7U6QcdDPze5NHiiLdPSviw6YA7rsNYSMQ=
696+
github.com/volkszaehler/mbmd v0.0.0-20250503134953-5c7e3f60eee5 h1:1AwOQySiUEmrAQY2X7FJCKJtHsGiTE/T53sIB1qMQ34=
697+
github.com/volkszaehler/mbmd v0.0.0-20250503134953-5c7e3f60eee5/go.mod h1:egeAZti78O7U6QcdDPze5NHiiLdPSviw6YA7rsNYSMQ=
698698
github.com/writeas/go-strip-markdown/v2 v2.1.1 h1:hAxUM21Uhznf/FnbVGiJciqzska6iLei22Ijc3q2e28=
699699
github.com/writeas/go-strip-markdown/v2 v2.1.1/go.mod h1:UvvgPJgn1vvN8nWuE5e7v/+qmDu3BSVnKAB6Gl7hFzA=
700700
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=

templates/definition/meter/cg-em24.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ params:
1010
- name: usage
1111
choice: ["grid", "charge"]
1212
- name: modbus
13-
choice: ["rs485", "tcpip"]
13+
choice: ["rs485"]
1414
render: |
1515
type: mbmd
1616
{{- include "modbus" . }}
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
template: cg-em24_e1
2+
products:
3+
- brand: Carlo Gavazzi
4+
description:
5+
generic: EM24_E1
6+
- brand: Victron
7+
description:
8+
generic: EM24_E1
9+
params:
10+
- name: usage
11+
choice: ["grid", "charge"]
12+
- name: modbus
13+
choice: ["tcpip"]
14+
render: |
15+
type: mbmd
16+
{{- include "modbus" . }}
17+
model: cgem24_e1
18+
power: Power
19+
energy: Import
20+
currents:
21+
- CurrentL1
22+
- CurrentL2
23+
- CurrentL3
24+
{{- if eq .usage "grid" }}
25+
powers:
26+
- PowerL1
27+
- PowerL2
28+
- PowerL3
29+
{{- end }}
30+
{{- if eq .usage "charge" }}
31+
voltages:
32+
- VoltageL1
33+
- VoltageL2
34+
- VoltageL3
35+
{{- end }}

0 commit comments

Comments
 (0)