From 388cdf4e94efd1bb72714b5d536d90d249ce6316 Mon Sep 17 00:00:00 2001 From: emufan Date: Mon, 1 Nov 2021 19:13:30 +0100 Subject: [PATCH] Add classes for new Homematic devicetypes/devices (HmIP-SMI, HmIP-DRSI1) (#57521) * Update const.py Add new classes according to pyhomatic 0.1.75 * Update binary_sensor.py --- homeassistant/components/homematic/binary_sensor.py | 2 ++ homeassistant/components/homematic/const.py | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homematic/binary_sensor.py b/homeassistant/components/homematic/binary_sensor.py index c57e4cd15c7..b25fb2949aa 100644 --- a/homeassistant/components/homematic/binary_sensor.py +++ b/homeassistant/components/homematic/binary_sensor.py @@ -26,7 +26,9 @@ SENSOR_TYPES_CLASS = { "TiltSensor": None, "WeatherSensor": None, "IPContact": DEVICE_CLASS_OPENING, + "MotionIP": DEVICE_CLASS_MOTION, "MotionIPV2": DEVICE_CLASS_MOTION, + "MotionIPContactSabotage": DEVICE_CLASS_MOTION, "IPRemoteMotionV2": DEVICE_CLASS_MOTION, } diff --git a/homeassistant/components/homematic/const.py b/homeassistant/components/homematic/const.py index 8aaa3ea21ac..78e00985c9f 100644 --- a/homeassistant/components/homematic/const.py +++ b/homeassistant/components/homematic/const.py @@ -47,6 +47,7 @@ HM_DEVICE_TYPES = { "IOSwitch", "IOSwitchNoInhibit", "IPSwitch", + "IPSwitchRssiDevice", "RFSiren", "IPSwitchPowermeter", "HMWIOSwitch", @@ -80,6 +81,8 @@ HM_DEVICE_TYPES = { "SwitchPowermeter", "Motion", "MotionV2", + "MotionIPV2", + "MotionIPContactSabotage", "RemoteMotion", "MotionIP", "ThermostatWall", @@ -114,7 +117,6 @@ HM_DEVICE_TYPES = { "IPBrightnessSensor", "IPGarage", "UniversalSensor", - "MotionIPV2", "IPMultiIO", "IPThermostatWall2", "IPRemoteMotionV2", @@ -151,6 +153,7 @@ HM_DEVICE_TYPES = { "Motion", "MotionV2", "MotionIP", + "MotionIPV2", "MotionIPContactSabotage", "RemoteMotion", "WeatherSensor", @@ -165,7 +168,6 @@ HM_DEVICE_TYPES = { "IPPassageSensor", "SmartwareMotion", "IPWeatherSensorPlus", - "MotionIPV2", "WaterIP", "IPMultiIO", "TiltIP",