forked from pdugas/recteq
-
Notifications
You must be signed in to change notification settings - Fork 2
/
const.py
53 lines (36 loc) · 1.12 KB
/
const.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
49
50
51
52
53
"""Constants for the Recteq integration."""
import homeassistant.const as hac
PROJECT = 'Recteq Custom Integration'
VERSION_TUPLE = (0, 0, 4)
VERSION = __version__ = '%d.%d.%d' % VERSION_TUPLE
__author__ = 'Paul Dugas <[email protected]>'
ISSUE_LINK = 'https://github.com/mochman/recteq/issues'
DOMAIN = 'recteq'
PLATFORMS = ['climate', 'sensor']
DPS_POWER = '1'
DPS_TARGET = '101'
DPS_ACTUAL = '102'
DPS_PROBEA = '104'
DPS_PROBEB = '105'
ATTR_POWER = 'power' # read/write
ATTR_TARGET = 'target' # read/write
ATTR_ACTUAL = 'actual' # read-only
ATTR_PROBEA = 'probe_a' # read-only
ATTR_PROBEB = 'probe_b' # read-only
POWER_ON = True
POWER_OFF = False
PROTOCOL_3_1 = '3.1'
PROTOCOL_3_3 = '3.3'
PROTOCOLS = [PROTOCOL_3_1, PROTOCOL_3_3]
LEN_DEVICE_ID = 22
LEN_LOCAL_KEY = 16
CONF_NAME = hac.CONF_NAME
CONF_IP_ADDRESS = hac.CONF_IP_ADDRESS
CONF_DEVICE_ID = 'device_id'
CONF_LOCAL_KEY = 'local_key'
CONF_PROTOCOL = 'protocol'
CONF_FORCE_FAHRENHEIT = 'force_fahrenheit'
DEFAULT_PROTOCOL = PROTOCOL_3_3
STR_INVALID_PREFIX = 'invalid_'
STR_PLEASE_CORRECT = 'please_correct'
FORCE_FAHRENHEIT = True