forked from datenschuft/SMA-EM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.sample
133 lines (115 loc) · 3.63 KB
/
config.sample
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[SMA-EM]
# serials of sma-ems the daemon should take notice
# seperated by space
serials=30028xxxxx
# features could filter serials to, but wouldn't see serials if these serials was not defines in SMA-EM serials
# list of features to load/run
#features=simplefswriter sample pvdata mqtt remotedebug symcon influxdb
features=simplefswriter
[DAEMON]
pidfile=/run/smaemd.pid
# listen on an interface with the given ip
# use 0.0.0.0 for any interface
ipbind=0.0.0.0
# multicast ip and port of sma-datagrams
# defaults
mcastgrp=239.12.255.254
mcastport=9522
statusdir=
# each feature/plugin has its own section
# called FEATURE-[featurename]
# the feature section is required if a feature is listed in [SMA-EM]features
[FEATURE-simplefswriter]
# list serials simplefswriter notice
serials=30028xxxxx
# measurement vars simplefswriter should write to filesystem (only from smas with serial in serials)
values=pconsume psupply qsupply ssupply
statusdir=
[FEATURE-sample]
nothing=here
[FEATURE-mqtt]
# MQTT broker details
mqtthost=mqtt
mqttport=1883
#mqttuser=
#mqttpass=
mqttfields=pconsume,psupply,p1consume,p2consume,p3consume,p1supply,p2supply,p3supply
#topic will be exted3ed with serial
mqtttopic=SMA-EM/status
# publish all values as single topics (0 or 1)
publish_single=1
# How frequently to send updates over (defaults to 20 sec)
min_update=30
#debug output
debug=1
pvtopic=SMA-PV/status
[FEATURE-remotedebug]
# Debug settings
debughost=mypc
debugport=9100
[FEATURE-symcon]
# symcon
host=ips
port=3777
timeout=5
user=Symcon
password=SMA-EMdata
fields=pconsume,psupply,p1consume,p2consume,p3consume,p1supply,p2supply,p3supply,psupplycounter,pconsumecounter
emhook=/hook/smaem
pvfields=AC Power,grid frequency,DC input voltage,daily yield,total yield,Power L1,Power L2,Power L3,Status
pvhook=/hook/smawr
# How frequently to send updates over (defaults to 20 sec)
min_update=30
debug=1
[FEATURE-influxdb]
# influx
host=influxdb
port=8086
db=SMA
timeout=5
user=
password=
# How frequently to send updates over (defaults to 20 sec)
min_update=30
debug=0
#emdata
measurement=SMAEM
fields=pconsume,psupply,p1consume,p2consume,p3consume,p1supply,p2supply,p3supply
#pvdata
pvmeasurement=SMAWR
pvfields=AC Power,grid frequency,DC input voltage,daily yield,total yield,Power L1,Power L2,Power L3
[FEATURE-pvdata]
# How frequently to send updates over (defaults to 20 sec)
min_update=30
#debug output
debug=1
#inverter connection
inv_host = <inverter-ip>
inv_port = 502
inv_modbus_id = 3
inv_manufacturer = SMA
#['address', 'type', 'format', 'description', 'unit', 'value']
registers = [
['30057', 'U32', 'RAW', 'serial', ''],
['30201','U32','ENUM','Status',''],
['30051','U32','ENUM','DeviceClass',''],
['30053','U32','ENUM','DeviceID',''],
['40631', 'STR32', 'UTF8', 'Device Name', ''],
['30775', 'S32', 'FIX0', 'AC Power', 'W'],
['30813', 'S32', 'FIX0', 'AC apparent power', 'VA'],
['30977', 'S32', 'FIX3', 'AC current', 'A'],
['30783', 'S32', 'FIX2', 'AC voltage', 'V'],
['30803', 'U32', 'FIX2', 'grid frequency', 'Hz'],
['30773', 'S32', 'FIX0', 'DC power', 'W'],
['30771', 'S32', 'FIX2', 'DC input voltage', 'V'],
['30777', 'S32', 'FIX0', 'Power L1', 'W'],
['30779', 'S32', 'FIX0', 'Power L2', 'W'],
['30781', 'S32', 'FIX0', 'Power L3', 'W'],
['30953', 'S32', 'FIX1', u'device temperature', u'\xb0C'],
['30517', 'U64', 'FIX3', 'daily yield', 'kWh'],
['30513', 'U64', 'FIX3', 'total yield', 'kWh'],
['30521', 'U64', 'FIX0', 'operation time', 's'],
['30525', 'U64', 'FIX0', 'feed-in time', 's'],
['30975', 'S32', 'FIX2', 'intermediate voltage', 'V'],
['30225', 'S32', 'FIX0', 'Isolation resistance', u'\u03a9']
]