-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
25 lines (24 loc) · 2.25 KB
/
config.py
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
# Sunflower config
TIMEZONE = 1 # Number of hours difference between UTC (positive or negative number)
DST = True # If True, enable automatic DST time setting. False: No DST correction used.
NTP_HOST = "1.europe.pool.ntp.org" # NTP timeserver hostname
IP_PV = "xxx.xxx.xxx.xxx" # IP or hostname pv inverter Fronius, change to your your configuration
IP_WB = "xxx.xxx.xxx.xxx" # IP or hostname go-e charger, change to your configuration
CAR_BAT_SIZE = 50 # Car battery maximum capacity in kWh, used for percentage calculation
I_MIN = 6 # Minimum charging current for car in ampere (usually 6 A)
I_MAX = 16 # Maximum charging current allowed, electric installation and charger type. 16 A is for 11 kW charger.
I_MAX_1P = 16 # Maximum current limit for 1 phase, set to country limit if less than I_MAX
WB_METERED = True # True if the wallbox power is included in the grid meter power value. Depends on meter wiring in electric setup.
CYCLE = 6 # Seconds to wait between cycles while charging (how close to follow the power generation)
WAIT = 60 # Seconds to wait if there is no pv power or no car connected
WAIT_PHASE_CHANGE = 15 # Seconds to wait after phase change: May be removed if future
SHORT_CYCLES = 6 # Number of program cycles to use for average calculation of short period grid power: Equals 36 s with default 6 s CYCLE
LONG_CYCLES = 20 # Number of program cycles to use for average calculation of long period grid power: Equals 120 s with default 6 s CYCLE
SCREEN_REFRESH = 120 # Seconds between badger screen updates (not used for status updates e.g. phase change)
# Power values defined below are negative for excess pv and positive for grid consumption
P_MIN_1P = -1440 # Minimum power in W for 1p charging ampere calculation (I_MIN x U max), no need to change
P_MIN_3P = -4320 # Minimum power in W for 3p charging ampere calculation (I_MIN x U max), no need to change
SWITCH_3P = -4200 # Power threshold in W to switch for 3 phase charging
SWITCH_1P = -3800 # Power threshold in W to switch for 1 phase charging
SWITCH_ON = -1300 # Power threshold in W to start charging when average of LONG_CYCLES is below (more power available)
SWITCH_OFF = -900 # Power threshold in W to stop charging when average of LONG_CYCLE is above (less power available), default allows up to 400 W grid consumption.