-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
executable file
·48 lines (40 loc) · 1.32 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# mqtt broker where dsmr-reader publishes the dsmr/json topic
mqtt_broker = "127.0.0.1"
# mqtt topic for dsmr-reader messages
mqtt_p1_topic = "dsmr/json"
# The order of reading the EV charging amps is:
#
# 1: use ev_meter_url if defined
# 2: use mqtt_ev_topic if defined
# 3: use Tesla API
#
# kWh meter API url for tools like mbmd, set to None to use MQTT or Tesla API
ev_meter_url = "http://localhost:8080/api/last/ORNO3P1.1"
# mqtt topic for EV Charger kWh meter, set to None to use Tesla API
mqtt_ev_topic = "mbmd/orno3p1-1"
# Dict key for EV current values, will be appended with L1, L2 and L3
ev_current = "Current"
# Tesla.com user name
tesla_user = "[email protected]"
# Maximum current (amperage) your home connection supports
max_current = 25
# Current (amperage) that is always present in the home
# The Tesla will only be polled when amperage >= baseload + last_tesla_amps
baseload = 0
# Home charger settings: min/max current and location
# twc_safe: set amps to this level after charging session
twc_min = 1
twc_max = 24
twc_safe = 16
twc_latitude = 52.37821231816995
twc_longitude = 4.900513198963123
# Telsa sleep attempts in minutes
sleep = 15
# Track PV production?
# Can be overridden using web interface and in settings.json
pv_mode = False
# Flask web server
listen = "0.0.0.0"
port = 8088
# Print debug messages?
debug = False