The previous iAlarm integration has been removed because it used webscraping #43010. Since then, the pyialarm library has been updated to use the iAlarm API instead. With this commit I reintroduce the iAlarm integration, leveraging the new HA config flow. Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
22 lines
492 B
Python
22 lines
492 B
Python
"""Constants for the iAlarm integration."""
|
|
from pyialarm import IAlarm
|
|
|
|
from homeassistant.const import (
|
|
STATE_ALARM_ARMED_AWAY,
|
|
STATE_ALARM_ARMED_HOME,
|
|
STATE_ALARM_DISARMED,
|
|
STATE_ALARM_TRIGGERED,
|
|
)
|
|
|
|
DATA_COORDINATOR = "ialarm"
|
|
|
|
DEFAULT_PORT = 18034
|
|
|
|
DOMAIN = "ialarm"
|
|
|
|
IALARM_TO_HASS = {
|
|
IAlarm.ARMED_AWAY: STATE_ALARM_ARMED_AWAY,
|
|
IAlarm.ARMED_STAY: STATE_ALARM_ARMED_HOME,
|
|
IAlarm.DISARMED: STATE_ALARM_DISARMED,
|
|
IAlarm.TRIGGERED: STATE_ALARM_TRIGGERED,
|
|
}
|