-
Notifications
You must be signed in to change notification settings - Fork 0
/
e3dc_simple_mode.conf
37 lines (30 loc) · 1.53 KB
/
e3dc_simple_mode.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# this is for E3DC Simple Mode Modbus
# replace all variables (${XXX}) or create a env var file for
# telegraf (/etc/defaults/telegraf)
[[inputs.modbus]]
name_override = "energy"
name = "E3DC"
slave_id = 1
## Timeout for each request
timeout = "1s"
# TCP - connect via Modbus/TCP
controller = "tcp://${E3DC_IP}:${E3DC_PORT}"
holding_registers = [
{ name = "pv_power", byte_order = "CDAB", data_type = "INT32", scale=1.0, address = [67, 68]},
{ name = "battery_power", byte_order = "CDAB", data_type = "INT32", scale=1.0, address = [69, 70]},
{ name = "home_usage", byte_order = "CDAB", data_type = "INT32", scale=1.0, address = [71, 72]},
{ name = "grid_power", byte_order = "CDAB", data_type = "INT32", scale=1.0, address = [73, 74]},
{ name = "wallbox_power", byte_order = "CDAB", data_type = "INT32", scale=1.0, address = [79, 80]},
{ name = "autarcy", byte_order = "AB", data_type = "UINT16", scale=1.0, address = [81]},
{ name = "battery_soc", byte_order = "AB", data_type = "UINT16", scale=1.0, address = [82]},
{ name = "ems_status", byte_order = "AB", data_type = "UINT16", scale=1.0, address = [84]},
]
[inputs.modbus.tags]
influxdb_database = "energy"
Location = "${LOCATION}"
[[processors.starlark]]
namepass = ["energy"]
script = "/etc/telegraf/telegraf.d/split_values.star"
[[processors.starlark]]
namepass = ["energy"]
script = "/etc/telegraf/telegraf.d/decode_ems_status.star"