forked from andiburger/growatt2mqtt
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.cfg.example
48 lines (39 loc) · 936 Bytes
/
config.cfg.example
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
[general]
log_level = DEBUG
[transport.0] #name must be unique, ie: transport.modbus
#logging level for transport
log_level = DEBUG
#rs485 / modbus device
#protocol config files are located in protocols/
protocol_version = v0.14
analyze_protocol = false
write = false
#in
#was unit
address = 1
port = {{serial port, likely /dev/ttyUSB0}}
baudrate = 9600
#modbus tcp/tls/udp example
#host = 192.168.0.7
#port = 502
#override protocol reader
#transport = modbus_tcp
#the 'transport' that we want to share this with
bridge = transport.1
manufacturer = HDHK
model = HDHK 16CH AC
#optional; leave blank to autofetch serial from device
serial_number = HDHK777
read_interval = 10
[transport.1]
#connect mqtt
transport=mqtt
host = {{mqtt ip / host}}
port = 1883
user = {{mqtt username here}}
pass = {{mqtt password}}
base_topic = home/inverter/
error_topic = /error
json = false
discovery_enabled = true
discovery_topic = homeassistant