core/homeassistant/components/ihc/const.py

41 lines
934 B
Python
Raw Normal View History

"""IHC component constants."""
2022-01-24 11:07:54 +00:00
from homeassistant.const import Platform
2022-01-23 04:33:10 +00:00
ATTR_IHC_ID = "ihc_id"
ATTR_VALUE = "value"
ATTR_CONTROLLER_ID = "controller_id"
2022-01-24 11:07:54 +00:00
AUTO_SETUP_YAML = "ihc_auto_setup.yaml"
2019-07-31 19:25:30 +00:00
CONF_AUTOSETUP = "auto_setup"
CONF_BINARY_SENSOR = "binary_sensor"
CONF_DIMMABLE = "dimmable"
CONF_INFO = "info"
CONF_INVERTING = "inverting"
CONF_LIGHT = "light"
CONF_NODE = "node"
CONF_NOTE = "note"
CONF_OFF_ID = "off_id"
CONF_ON_ID = "on_id"
CONF_POSITION = "position"
CONF_SENSOR = "sensor"
CONF_SWITCH = "switch"
CONF_XPATH = "xpath"
2022-01-23 04:33:10 +00:00
DOMAIN = "ihc"
IHC_CONTROLLER = "controller"
IHC_CONTROLLER_INDEX = "controller_index"
2022-01-24 11:07:54 +00:00
IHC_PLATFORMS = (
Platform.BINARY_SENSOR,
Platform.LIGHT,
Platform.SENSOR,
Platform.SWITCH,
)
2019-07-31 19:25:30 +00:00
SERVICE_SET_RUNTIME_VALUE_BOOL = "set_runtime_value_bool"
SERVICE_SET_RUNTIME_VALUE_FLOAT = "set_runtime_value_float"
SERVICE_SET_RUNTIME_VALUE_INT = "set_runtime_value_int"
SERVICE_PULSE = "pulse"