-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.full.yml
207 lines (204 loc) · 5.33 KB
/
config.sample.full.yml
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#
# This example configuration file illustrates every single thing that can be configured.
#
settings:
# Polling interval in milliseconds
pollingInterval: 5000
# HTTP port to serve the web interface on
httpPort: 8080
circuits:
# A "virtual" type circuit with type = "main". The circuit type defaults to "circuit".
- name: Main total
type: main
sensor:
# Virtual sensors combine the power readings from child sensors
type: virtual
virtual:
children:
- Main L1
- Main L2
- Main L3
# An "unmetered" type circuit
- name: Main total unmetered
type: main
sensor:
# Unmetered sensors derive their readings by subtracting child sensor values from the parent sensor.
type: unmetered
unmetered:
parent: Main total
children:
- Vägg vardagsrum
- Vägg kök
- Vägg arbetsrum
filters:
clamp: positive # Don't allow negative values
# A IotaWatt main circuit, phase A/L1
- name: Main L1
type: main
phase: L1
parent: Main total
sensor:
type: iotawatt
iotawatt:
address: 10.112.4.4
name: Main_L1
# A IotaWatt main circuit, phase B/L2
- name: Main L2
type: main
phase: L2
parent: Main total
sensor:
type: iotawatt
iotawatt:
address: 10.112.4.4
name: Main_L2
# A IotaWatt main circuit, phase C/L3
- name: Main L3
type: main
phase: L3
parent: Main total
sensor:
type: iotawatt
iotawatt:
address: 10.112.4.4
name: Main_L3
# A IotaWatt circuit. "parent" indicates that this circuit's readings are part of the parent's readings too.
- name: Vägg vardagsrum
parent: Main L3
sensor:
type: iotawatt
iotawatt:
address: 10.112.4.4
name: Vagg_Vardagsrum
# Another IotaWatt circuit.
- name: Vägg kök
parent: Main L3
sensor:
type: iotawatt
iotawatt:
address: 10.112.4.4
name: Vagg_Kok
filters:
highPass: 2 # Ignore loads less than 2 watts (show as 0)
group: Matlagning
# Yet another IotaWatt circuit. This one has a different "parent" than the others.
- name: Vägg arbetsrum
parent: Main L1
sensor:
type: iotawatt
iotawatt:
address: 10.112.4.4
name: Vagg_Sovrum1
# A Shelly circuit. "meter" 0 means use the first energy meter. Some devices have two channels, this is used to
# differentiate between those.
- name: Rack
parent: Main L1
sensor:
type: shelly
shelly:
address: 10.112.4.61
meter: 0
# Two Shelly circuits that are backed by the same Shelly 2.5 relay, using different values for "meter".
- name: Belysning köksbänkar
parent: Main L3
sensor:
type: shelly
shelly:
address: 10.112.4.44
meter: 0
group: Belysning
- name: Belysning köksfönster
parent: Main L3
sensor:
type: shelly
shelly:
address: 10.112.4.44
meter: 1
group: Belysning
# A Shelly "Gen2" "PM" circuit. "type" is by default "gen1". "gen2-pm" devices include e.g. Shelly Plus 1PM
- name: Kylskåp + frys källare
parent: Main L2
sensor:
type: shelly
shelly:
address: 10.112.4.66
type: gen2-pm
meter: 0
# A main circuit using a Shelly Pro 3EM. Here the "type" is set to "gen2-em". "meter" should normally be set to 0,
# in theory there can be multiple different meters in the same product.
- name: Main L1
type: main
phase: L1
sensor:
type: shelly
shelly:
address: 10.112.4.67
type: gen2-em
meter: 0
phase: a
# A circuit with a Modbus sensor
- name: Inverter/chargers
type: circuit
sensor:
type: modbus
modbus:
address: 10.112.4.250
port: 502
unit: 100
register: h@866/int16 # same as just 866
filters:
clamp: positive
#
# Characteristics. Characteristics mean voltage and frequency, and potentially other non-power related readings.
#
characteristics:
# Characteristics from each phase in a three-phase system using both a IotaWatt sensor and a Shelly Pro 3 EM.
- name: Main L1
phase: L1
sensor:
type: iotawatt
iotawatt:
address: 10.112.4.4
name: Input_0
- name: Main L2
phase: L2
sensor:
type: shelly
shelly:
address: 10.112.4.67
type: gen2-em
meter: 0
phase: b
- name: Main L3
phase: L3
sensor:
type: shelly
shelly:
address: 10.112.4.67
type: gen2-em
meter: 0
phase: c
#
# Publishers. Publishers send the gathered data to other systems. If you don't want to publish the data anywhere,
# use an empty list:
#
# publishers:
#
publishers:
# InfluxDB publisher. Only InfluxDB v2 is supported.
- type: influxdb
settings:
url: http://10.110.1.6:8086/
organizationId: organisation id
bucket: eachwatt
apiToken: token
# Console publisher. Simply logs readings to stdout. Useful for debugging and to verify the application is running.
- type: console
# MQTT publisher
- type: mqtt
settings:
brokerUrl: mqtt://10.110.1.3:1883
# Optional Home Assistant auto-discovery support
homeAssistant:
autoDiscovery: true
deviceIdentifier: eachwatt