-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
executable file
·45 lines (38 loc) · 1.95 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
## Enable HomeKit support
ENABLE_HAP = True
## Temperature sensor settings
ENABLE_TEMPERATURE_SENSOR = True
TEMPERATURE_SENSOR_PIN = 4
## HTTP Server settings
ENABLE_HTTP = True
## Disabling this flag will disable sheduler. No more scheduled commands will be executed.
ENABLE_SCHEDULER = True
DEVICE_NAME = "Attic A/C" # Used as label in mobile app.
MIN_TEMPERATURE = 17 # Min temperature settable
MAX_TEMPERATURE = 30 # Max temperature settable
DEFAULT_TARGET_TEMPERATURE = 25
DEFAULT_TARGET_HEATINGCOOLINGSTATE = 0
DEFAULT_CURRENT_HEATINGCOOLINGSTATE = 0
HTTP_LOG_EVERY_REQUEST = False # Print in console every http request.
IR_TX_FREQUENCY = 38000
IR_TX_GPIO_PIN = 25
#See 'docs\ir_commands.txt'
IR_COMMANDS = {
"AC_OFF": "101100100100110101111011100001001110000000011111",
"AC_ON_17DEG_AUTO": "101100100100110100011111111000000000100011110111",
"AC_ON_18DEG_AUTO": "101100100100110100011111111000000001100011100111",
"AC_ON_19DEG_AUTO": "101100100100110100011111111000000011100011000111",
"AC_ON_20DEG_AUTO": "101100100100110100011111111000000010100011010111",
"AC_ON_21DEG_AUTO": "101100100100110100011111111000000110100010010111",
"AC_ON_22DEG_AUTO": "101100100100110100011111111000000111100010000111",
"AC_ON_23DEG_AUTO": "101100100100110100011111111000000101100010100111",
"AC_ON_24DEG_AUTO": "101100100100110100011111111000000100100010110111",
"AC_ON_25DEG_AUTO": "101100100100110100011111111000001100100000110111",
"AC_ON_26DEG_AUTO": "101100100100110100011111111000001101100000100111",
"AC_ON_27DEG_AUTO": "101100100100110100011111111000001001100001100111",
"AC_ON_28DEG_AUTO": "101100100100110100011111111000001000100001110111",
"AC_ON_29DEG_AUTO": "101100100100110100011111111000001010100001010111",
"AC_ON_30DEG_AUTO": "101100100100110100011111111000001011100001000111",
"AC_FLAG_TURBO": "101101010100101011110101000010101010001001011101",
"AC_FLAG_SWING": "101100100100110101101011100101001110000000011111"
}