From c8eebb6b4a5fbefec0f4fc6621bf9466e34de6b6 Mon Sep 17 00:00:00 2001 From: Markus Jankowski Date: Sun, 7 Apr 2019 09:43:07 +0200 Subject: [PATCH] Add HmIP-SMO to Homematic IP (#22802) --- .../components/homematicip_cloud/binary_sensor.py | 7 ++++--- homeassistant/components/homematicip_cloud/sensor.py | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/homematicip_cloud/binary_sensor.py b/homeassistant/components/homematicip_cloud/binary_sensor.py index 071b4a0a3fb..44c17282dda 100644 --- a/homeassistant/components/homematicip_cloud/binary_sensor.py +++ b/homeassistant/components/homematicip_cloud/binary_sensor.py @@ -30,9 +30,9 @@ async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the HomematicIP Cloud binary sensor from a config entry.""" from homematicip.aio.device import ( AsyncDevice, AsyncShutterContact, AsyncMotionDetectorIndoor, - AsyncSmokeDetector, AsyncWaterSensor, AsyncRotaryHandleSensor, - AsyncMotionDetectorPushButton, AsyncWeatherSensor, - AsyncWeatherSensorPlus, AsyncWeatherSensorPro) + AsyncMotionDetectorOutdoor, AsyncSmokeDetector, AsyncWaterSensor, + AsyncRotaryHandleSensor, AsyncMotionDetectorPushButton, + AsyncWeatherSensor, AsyncWeatherSensorPlus, AsyncWeatherSensorPro) from homematicip.aio.group import ( AsyncSecurityGroup, AsyncSecurityZoneGroup) @@ -43,6 +43,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): if isinstance(device, (AsyncShutterContact, AsyncRotaryHandleSensor)): devices.append(HomematicipShutterContact(home, device)) if isinstance(device, (AsyncMotionDetectorIndoor, + AsyncMotionDetectorOutdoor, AsyncMotionDetectorPushButton)): devices.append(HomematicipMotionDetector(home, device)) if isinstance(device, AsyncSmokeDetector): diff --git a/homeassistant/components/homematicip_cloud/sensor.py b/homeassistant/components/homematicip_cloud/sensor.py index 2038433df4f..5f345f419fa 100644 --- a/homeassistant/components/homematicip_cloud/sensor.py +++ b/homeassistant/components/homematicip_cloud/sensor.py @@ -28,7 +28,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): AsyncHeatingThermostat, AsyncHeatingThermostatCompact, AsyncTemperatureHumiditySensorWithoutDisplay, AsyncTemperatureHumiditySensorDisplay, AsyncMotionDetectorIndoor, - AsyncTemperatureHumiditySensorOutdoor, + AsyncMotionDetectorOutdoor, AsyncTemperatureHumiditySensorOutdoor, AsyncMotionDetectorPushButton, AsyncLightSensor, AsyncPlugableSwitchMeasuring, AsyncBrandSwitchMeasuring, AsyncFullFlushSwitchMeasuring, AsyncWeatherSensor, @@ -49,6 +49,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): devices.append(HomematicipTemperatureSensor(home, device)) devices.append(HomematicipHumiditySensor(home, device)) if isinstance(device, (AsyncMotionDetectorIndoor, + AsyncMotionDetectorOutdoor, AsyncMotionDetectorPushButton, AsyncWeatherSensor, AsyncWeatherSensorPlus,