-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_config.toml
26 lines (24 loc) · 1.71 KB
/
example_config.toml
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
# Configuration file
LOG_FILE = 'PVCharge.log' # Log file name to use
LOG_LEVEL = "INFO" # Default INFO, change to DEBUG to diagnose issues
PREVENT_NON_SOLAR_CHARGE = "False" # Default for after-hours charging, unless changed via MQTT
ENABLE_TESLA_PROXY = "False" # Optionally enable TeslaBleHttpProxy (requires additional parameter in .env, and a running proxy)
# MQTT Control topics
TOPIC_PREVENT_NON_SOLAR_CHARGE = "topic_base/prevent_non_solar_charge"
TOPIC_CHARGE_DELAY = "topic_base/charge_delay" # Commands: "delay" = delay charge for 1 hour, ## = minutes to delay charge, (other text, i.e. "cancel") = resume normal charge
TOPIC_TESLAMATE_GEOFENCE = "teslamate/cars/$car_id/geofence"
TOPIC_TESLAMATE_PLUGGED_IN = "teslamate/cars/$car_id/plugged_in"
TOPIC_TESLAMATE_BATTERY_LEVEL = "teslamate/cars/$car_id/battery_level"
TOPIC_TESLAMATE_CHARGE_LIMIT_SOC = "teslamate/cars/$car_id/charge_limit_soc"
TOPIC_TESLAMATE_STATE = "teslamate/cars/$car_id/state"
# MQTT Status topics
TOPIC_STATUS = "topic_base/status"
TOPIC_CHARGE_RATE = "topic_base/new_charge_rate"
# Control loop parameters
MIN_CHARGE = 7 # Slowest allowed charge rate (Amps)
MIN_SOLAR = 500 # Minimum generation to enable polling (Watts)
SLOW_POLLING = 120 # Charging disabled, control topic check interval (seconds)
FAST_POLLING = 2 # Charging enabled, loop delay (seconds)
DELAYED_START_TIME = 10 # When Energy is Available how long do we wait before starting charge (seconds)
DELAYED_STOP_TIME = 90 # When Available Energy is Reduced how long do we wait before stopping charge (seconds)
REPORT_DELAY = 60 # Send status string to MQTT every x (seconds)