Files
core/homeassistant/components/rfxtrx/const.py
James Hewitt 069e70ff03 Add mode setting to RFXtrx device configuration (#67173)
This allows users to configure the modes on their RFXtrx device without
downloading additional software that only runs on Windows. It also
enables the use of modes that cannot be permanently enabled on the
device, such as for undecoded and raw messages.
2022-02-25 20:43:29 +01:00

48 lines
904 B
Python

"""Constants for RFXtrx integration."""
CONF_DATA_BITS = "data_bits"
CONF_AUTOMATIC_ADD = "automatic_add"
CONF_SIGNAL_REPETITIONS = "signal_repetitions"
CONF_OFF_DELAY = "off_delay"
CONF_VENETIAN_BLIND_MODE = "venetian_blind_mode"
CONF_PROTOCOLS = "protocols"
CONF_REPLACE_DEVICE = "replace_device"
CONST_VENETIAN_BLIND_MODE_DEFAULT = "Unknown"
CONST_VENETIAN_BLIND_MODE_EU = "EU"
CONST_VENETIAN_BLIND_MODE_US = "US"
COMMAND_ON_LIST = [
"On",
"Up",
"Stop",
"Group on",
"Open (inline relay)",
"Stop (inline relay)",
"Enable sun automation",
]
COMMAND_OFF_LIST = [
"Off",
"Group off",
"Down",
"Close (inline relay)",
"Disable sun automation",
]
COMMAND_GROUP_LIST = [
"Group on",
"Group off",
]
ATTR_EVENT = "event"
SERVICE_SEND = "send"
DEVICE_PACKET_TYPE_LIGHTING4 = 0x13
EVENT_RFXTRX_EVENT = "rfxtrx_event"
DATA_RFXOBJECT = "rfxobject"