core/homeassistant/components/lcn/const.py

63 lines
2.1 KiB
Python
Raw Normal View History

"""Constants for the LCN component."""
import re
DOMAIN = 'lcn'
DATA_LCN = 'lcn'
DEFAULT_NAME = 'pchk'
# Regex for address validation
PATTERN_ADDRESS = re.compile('^((?P<conn_id>\\w+)\\.)?s?(?P<seg_id>\\d+)'
'\\.(?P<type>m|g)?(?P<id>\\d+)$')
CONF_CONNECTIONS = 'connections'
CONF_SK_NUM_TRIES = 'sk_num_tries'
CONF_OUTPUT = 'output'
CONF_DIM_MODE = 'dim_mode'
CONF_DIMMABLE = 'dimmable'
CONF_TRANSITION = 'transition'
CONF_MOTOR = 'motor'
2019-03-16 03:10:56 +00:00
CONF_SOURCE = 'source'
DIM_MODES = ['STEPS50', 'STEPS200']
2019-03-16 03:10:56 +00:00
OUTPUT_PORTS = ['OUTPUT1', 'OUTPUT2', 'OUTPUT3', 'OUTPUT4']
2019-03-16 03:10:56 +00:00
RELAY_PORTS = ['RELAY1', 'RELAY2', 'RELAY3', 'RELAY4',
'RELAY5', 'RELAY6', 'RELAY7', 'RELAY8',
'MOTORONOFF1', 'MOTORUPDOWN1', 'MOTORONOFF2', 'MOTORUPDOWN2',
'MOTORONOFF3', 'MOTORUPDOWN3', 'MOTORONOFF4', 'MOTORUPDOWN4']
2019-03-16 03:10:56 +00:00
MOTOR_PORTS = ['MOTOR1', 'MOTOR2', 'MOTOR3', 'MOTOR4']
2019-03-16 03:10:56 +00:00
LED_PORTS = ['LED1', 'LED2', 'LED3', 'LED4', 'LED5', 'LED6',
'LED7', 'LED8', 'LED9', 'LED10', 'LED11', 'LED12']
LOGICOP_PORTS = ['LOGICOP1', 'LOGICOP2', 'LOGICOP3', 'LOGICOP4']
VARIABLES = ['VAR1ORTVAR', 'VAR2ORR1VAR', 'VAR3ORR2VAR',
'TVAR', 'R1VAR', 'R2VAR',
'VAR1', 'VAR2', 'VAR3', 'VAR4', 'VAR5', 'VAR6',
'VAR7', 'VAR8', 'VAR9', 'VAR10', 'VAR11', 'VAR12']
SETPOINTS = ['R1VARSETPOINT', 'R2VARSETPOINT']
THRESHOLDS = ['THRS1', 'THRS2', 'THRS3', 'THRS4', 'THRS5',
'THRS2_1', 'THRS2_2', 'THRS2_3', 'THRS2_4',
'THRS3_1', 'THRS3_2', 'THRS3_3', 'THRS3_4',
'THRS4_1', 'THRS4_2', 'THRS4_3', 'THRS4_4']
S0_INPUTS = ['S0INPUT1', 'S0INPUT2', 'S0INPUT3', 'S0INPUT4']
VAR_UNITS = ['', 'LCN', 'NATIVE',
'CELSIUS', '\u00b0CELSIUS', '\u00b0C',
'KELVIN', '\u00b0KELVIN', '\u00b0K',
'FAHRENHEIT', '\u00b0FAHRENHEIT', '\u00b0F'
'LUX_T', 'LX_T',
'LUX_I', 'LUX', 'LX',
'M/S', 'METERPERSECOND',
'%', 'PERCENT',
'PPM',
'VOLT', 'V',
'AMPERE', 'AMP', 'A',
'DEGREE', '\u00b0']