forked from volkszaehler/mbmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mbmd.dist.yaml
52 lines (47 loc) · 939 Bytes
/
mbmd.dist.yaml
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
# REST api, use 127.0.0.1 to restrict to localhost
api: 0.0.0.0:8080
# mqtt config
mqtt:
broker: localhost:1883
topic: mbmd
user:
password:
clientid: mbmd
qos: 0
homie: homie
# influxdb_v1 config
influx:
url: http://localhost:8086
database: data
measurement: mbmd
user:
password:
# influxdb_v2 config
influx:
url: http://localhost:8086
database: data
measurement: mbmd
organization:
token:
# adapters are referenced by device
adapters:
- device: /dev/ttyUSB0
baudrate: 9600
comset: 8N1 # "8E1" needs be quoted as string or will error
- device: 192.168.0.7:23
rtu: true # Modbus RS485 to Ethernet converter uses RTU over TCP
# list of devices
devices:
- name: sdm1
type: sdm
id: 1
adapter: /dev/ttyUSB0
- name: sdm2
type: sdm
id: 1
adapter: 192.168.0.7:23
- name: sma1
type: sunspec
id: 126
subdevice: 0 # use subdevice to access SunSpec subdevices
adapter: 192.168.0.40:502