Add HmIP-SMO to Homematic IP (#22802)

This commit is contained in:
Markus Jankowski 2019-04-07 09:43:07 +02:00 committed by Jason Hu
parent 8c17b2f7dd
commit c8eebb6b4a
2 changed files with 6 additions and 4 deletions

View File

@ -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.""" """Set up the HomematicIP Cloud binary sensor from a config entry."""
from homematicip.aio.device import ( from homematicip.aio.device import (
AsyncDevice, AsyncShutterContact, AsyncMotionDetectorIndoor, AsyncDevice, AsyncShutterContact, AsyncMotionDetectorIndoor,
AsyncSmokeDetector, AsyncWaterSensor, AsyncRotaryHandleSensor, AsyncMotionDetectorOutdoor, AsyncSmokeDetector, AsyncWaterSensor,
AsyncMotionDetectorPushButton, AsyncWeatherSensor, AsyncRotaryHandleSensor, AsyncMotionDetectorPushButton,
AsyncWeatherSensorPlus, AsyncWeatherSensorPro) AsyncWeatherSensor, AsyncWeatherSensorPlus, AsyncWeatherSensorPro)
from homematicip.aio.group import ( from homematicip.aio.group import (
AsyncSecurityGroup, AsyncSecurityZoneGroup) AsyncSecurityGroup, AsyncSecurityZoneGroup)
@ -43,6 +43,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
if isinstance(device, (AsyncShutterContact, AsyncRotaryHandleSensor)): if isinstance(device, (AsyncShutterContact, AsyncRotaryHandleSensor)):
devices.append(HomematicipShutterContact(home, device)) devices.append(HomematicipShutterContact(home, device))
if isinstance(device, (AsyncMotionDetectorIndoor, if isinstance(device, (AsyncMotionDetectorIndoor,
AsyncMotionDetectorOutdoor,
AsyncMotionDetectorPushButton)): AsyncMotionDetectorPushButton)):
devices.append(HomematicipMotionDetector(home, device)) devices.append(HomematicipMotionDetector(home, device))
if isinstance(device, AsyncSmokeDetector): if isinstance(device, AsyncSmokeDetector):

View File

@ -28,7 +28,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
AsyncHeatingThermostat, AsyncHeatingThermostatCompact, AsyncHeatingThermostat, AsyncHeatingThermostatCompact,
AsyncTemperatureHumiditySensorWithoutDisplay, AsyncTemperatureHumiditySensorWithoutDisplay,
AsyncTemperatureHumiditySensorDisplay, AsyncMotionDetectorIndoor, AsyncTemperatureHumiditySensorDisplay, AsyncMotionDetectorIndoor,
AsyncTemperatureHumiditySensorOutdoor, AsyncMotionDetectorOutdoor, AsyncTemperatureHumiditySensorOutdoor,
AsyncMotionDetectorPushButton, AsyncLightSensor, AsyncMotionDetectorPushButton, AsyncLightSensor,
AsyncPlugableSwitchMeasuring, AsyncBrandSwitchMeasuring, AsyncPlugableSwitchMeasuring, AsyncBrandSwitchMeasuring,
AsyncFullFlushSwitchMeasuring, AsyncWeatherSensor, AsyncFullFlushSwitchMeasuring, AsyncWeatherSensor,
@ -49,6 +49,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
devices.append(HomematicipTemperatureSensor(home, device)) devices.append(HomematicipTemperatureSensor(home, device))
devices.append(HomematicipHumiditySensor(home, device)) devices.append(HomematicipHumiditySensor(home, device))
if isinstance(device, (AsyncMotionDetectorIndoor, if isinstance(device, (AsyncMotionDetectorIndoor,
AsyncMotionDetectorOutdoor,
AsyncMotionDetectorPushButton, AsyncMotionDetectorPushButton,
AsyncWeatherSensor, AsyncWeatherSensor,
AsyncWeatherSensorPlus, AsyncWeatherSensorPlus,