* Config flow for elkm1 * As entity ids can now be changed, the “alarm_control_panel” attribute “changed_by_entity_id” is now “changed_by_keypad” and will show the name of the Elk keypad instead of the entity id. * An auto configure mode has been introduced which avoids the need to setup the complex include and exclude filters. This functionality still exists when configuring from yaml for power users who want more control over which entities elkm1 generates. * restore _has_all_unique_prefixes * preserve legacy behavior of creating alarm_control_panels that have no linked keypads when auto_configure is False * unroll loop
31 lines
750 B
Python
31 lines
750 B
Python
"""Support the ElkM1 Gold and ElkM1 EZ8 alarm/integration panels."""
|
|
|
|
from elkm1_lib.const import Max
|
|
|
|
DOMAIN = "elkm1"
|
|
|
|
CONF_AUTO_CONFIGURE = "auto_configure"
|
|
CONF_AREA = "area"
|
|
CONF_COUNTER = "counter"
|
|
CONF_ENABLED = "enabled"
|
|
CONF_KEYPAD = "keypad"
|
|
CONF_OUTPUT = "output"
|
|
CONF_PLC = "plc"
|
|
CONF_SETTING = "setting"
|
|
CONF_TASK = "task"
|
|
CONF_THERMOSTAT = "thermostat"
|
|
CONF_ZONE = "zone"
|
|
CONF_PREFIX = "prefix"
|
|
|
|
|
|
ELK_ELEMENTS = {
|
|
CONF_AREA: Max.AREAS.value,
|
|
CONF_COUNTER: Max.COUNTERS.value,
|
|
CONF_KEYPAD: Max.KEYPADS.value,
|
|
CONF_OUTPUT: Max.OUTPUTS.value,
|
|
CONF_PLC: Max.LIGHTS.value,
|
|
CONF_SETTING: Max.SETTINGS.value,
|
|
CONF_TASK: Max.TASKS.value,
|
|
CONF_THERMOSTAT: Max.THERMOSTATS.value,
|
|
CONF_ZONE: Max.ZONES.value,
|
|
}
|