-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.ini
101 lines (84 loc) · 3.56 KB
/
config.ini
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
[global]
# DTY Type: either OpenDTU or AhoyDTU
dtu_type = OpenDTU
# Smartmeter Type: either Smartmeter (generic, Tasmota, Hichi, ...), PowerOpti, ShellyEM3
smartmeter_type = Smartmeter
# Geolocation LAT/LNG
#latitude =
#longitude =
[solarflow]
# The product ID specifies the model of Solarflow hub to use: Hub-1200: "73bkTV" Hub-2000: "A8yh63"
# defaults to 73bkTV
#product_id = 73bkTV
# The device ID of your Solarflow Hub (typically 8 characters), you can get these either with solarflow-bt-manager or the solarflow-statuspage
device_id = 5ak8yGU7
# The time interval in hours that solarflow-control will try to ensure a full battery
# (i.e. no discharging if battry hasn't been at 100% for this long)
full_charge_interval = 32
# Let solarflow-control take over enabling/disabling the bypass of the hub (direct solarinput to hub output when battery is full)
# this overrides the automatic switching by the hub's firmware, which is sometimes a bit wierd
#control_bypass = true
# allow solarflow-control to change the hubs min/max SoC levels if specified in this configuration in section [control] via battery_low and battery_high
control_soc = true
[mqtt]
# Your local MQTT host configuration
mqtt_host = 192.168.1.245
#mqtt_port =
#mqtt_user =
#mqtt_pwd =
[opendtu]
# The MQTT base topic your OpenDTU reports to (as configured in OpenDTU UI)
base_topic = solar
# your Inverters serial number
inverter_serial = 116491132532
# List of indices of the inverter channels/ports (as reported in the DTU) that the Solarflow Hub is connected to
# typically the index starts at 1 as 0 is the output channel of the inverter
# e.g. 1,3 or 3 or [1,3]
sf_inverter_channels = [3]
[ahoydtu]
# The MQTT base topic your AhoyDTU reports to (as configured in AhoyDTU UI)
base_topic = solar
# The inverter ID in AhoyDTU: typically 0 for the first inverter
inverter_id = 0
# List of indices of the inverter channels/ports (as reported in the DTU) that the Solarflow Hub is connected to
# typically the index starts at 1 as 0 is the output channel of the inverter
# e.g. 1,3 or 3 or [1,3]
sf_inverter_channels = [3]
# the max output power of your inverter, used to calculate correct absolute values
#inverter_max_power = 2000
# The name of the inverter in AhoyDTU
#inverter_name = AhoyDTU
[smartmeter]
# The MQTT base topic your Hichi, Tasmota, generic smartmeter reader reports to
base_topic = tele/E220/SENSOR
# if the published value at the base_topic is a JSON type then these accessors are used to get the power values
# e.g. if Smartmeter reader posts { "Power": {"Power_curr": 120, "Total_in": 12345.6} }
cur_accessor = Power.Power_curr
total_accessor = Power.Total_in
# rapid change difference defines the difference in W that has to be detected on the smartmeter readings to consider it a fast drop or rise in demand.
# this helps a faster adjustment in switching various limits e.g. when a water boiler is turned on/off
rapid_change_diff = 500
zero_offset = 20
[poweropti]
# Username and password for you Powerfox API to get readings (internet connection required)
poweropti_user = <PowerFox API user>
poweropti_password = <Powerfox API password>
rapid_change_diff = 500
zero_offset = 20
[shellyem3]
# The MQTT base topic your Shelly 3EM (Pro) is posting it's telemetry data to
# Note: you have to configure your Shelly to use MQTT
base_topic = shellies/shellyem3/
rapid_change_diff = 500
zero_offset = 20
[control]
min_charge_power = 125
max_discharge_power = 150
max_inverter_limit = 800
limit_inverter = true
inverter_min_limit = 10
discharge_during_daytime = false
sunrise_offset = 60
sunset_offset = 60
battery_low = 2
battery_high = 100