diff --git a/homeassistant/components/binary_sensor/hikvision.py b/homeassistant/components/binary_sensor/hikvision.py index 57618ca2652..fdefc40d8fd 100644 --- a/homeassistant/components/binary_sensor/hikvision.py +++ b/homeassistant/components/binary_sensor/hikvision.py @@ -18,7 +18,7 @@ from homeassistant.const import ( CONF_SSL, EVENT_HOMEASSISTANT_STOP, EVENT_HOMEASSISTANT_START, ATTR_LAST_TRIP_TIME, CONF_CUSTOMIZE) -REQUIREMENTS = ['pyhik==0.1.9'] +REQUIREMENTS = ['pyhik==0.2.2'] _LOGGER = logging.getLogger(__name__) CONF_IGNORED = 'ignored' @@ -51,6 +51,8 @@ DEVICE_CLASS_MAP = { 'Unattended Baggage': 'motion', 'Attended Baggage': 'motion', 'Recording Failure': None, + 'Exiting Region': 'motion', + 'Entering Region': 'motion', } CUSTOMIZE_SCHEMA = vol.Schema({ diff --git a/requirements_all.txt b/requirements_all.txt index 01a2b576e5a..592afdd634f 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1053,7 +1053,7 @@ pygtt==1.1.2 pyhaversion==2.0.3 # homeassistant.components.binary_sensor.hikvision -pyhik==0.1.9 +pyhik==0.2.2 # homeassistant.components.hive pyhiveapi==0.2.17