Bump dependency for HomematicIP Cloud to 0.13.1 (#45475)

This commit is contained in:
SukramJ 2021-01-25 13:19:11 +01:00 committed by GitHub
parent bf8d17f1b5
commit 104107dd95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 260 additions and 6 deletions

View File

@ -12,6 +12,7 @@ from homematicip.aio.device import (
AsyncMotionDetectorPushButton,
AsyncPluggableMainsFailureSurveillance,
AsyncPresenceDetectorIndoor,
AsyncRainSensor,
AsyncRotaryHandleSensor,
AsyncShutterContact,
AsyncShutterContactMagnetic,
@ -127,7 +128,9 @@ async def async_setup_entry(
entities.append(HomematicipSmokeDetector(hap, device))
if isinstance(device, AsyncWaterSensor):
entities.append(HomematicipWaterDetector(hap, device))
if isinstance(device, (AsyncWeatherSensorPlus, AsyncWeatherSensorPro)):
if isinstance(
device, (AsyncRainSensor, AsyncWeatherSensorPlus, AsyncWeatherSensorPro)
):
entities.append(HomematicipRainSensor(hap, device))
if isinstance(
device, (AsyncWeatherSensor, AsyncWeatherSensorPlus, AsyncWeatherSensorPro)

View File

@ -3,7 +3,7 @@
"name": "HomematicIP Cloud",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/homematicip_cloud",
"requirements": ["homematicip==0.13.0"],
"requirements": ["homematicip==0.13.1"],
"codeowners": ["@SukramJ"],
"quality_scale": "platinum"
}

View File

@ -3,6 +3,7 @@ from typing import Any, Dict
from homematicip.aio.device import (
AsyncBrandSwitchMeasuring,
AsyncDinRailSwitch,
AsyncDinRailSwitch4,
AsyncFullFlushInputSwitch,
AsyncFullFlushSwitchMeasuring,
@ -45,6 +46,8 @@ async def async_setup_entry(
elif isinstance(device, AsyncWiredSwitch8):
for channel in range(1, 9):
entities.append(HomematicipMultiSwitch(hap, device, channel=channel))
elif isinstance(device, AsyncDinRailSwitch):
entities.append(HomematicipMultiSwitch(hap, device, channel=1))
elif isinstance(device, AsyncDinRailSwitch4):
for channel in range(1, 5):
entities.append(HomematicipMultiSwitch(hap, device, channel=channel))

View File

@ -771,7 +771,7 @@ homeassistant-pyozw==0.1.10
homeconnect==0.6.3
# homeassistant.components.homematicip_cloud
homematicip==0.13.0
homematicip==0.13.1
# homeassistant.components.horizon
horimote==0.4.1

View File

@ -403,7 +403,7 @@ homeassistant-pyozw==0.1.10
homeconnect==0.6.3
# homeassistant.components.homematicip_cloud
homematicip==0.13.0
homematicip==0.13.1
# homeassistant.components.google
# homeassistant.components.remember_the_milk

View File

@ -22,7 +22,7 @@ async def test_hmip_load_all_supported_devices(hass, default_mock_hap_factory):
test_devices=None, test_groups=None
)
assert len(mock_hap.hmip_device_by_entity_id) == 250
assert len(mock_hap.hmip_device_by_entity_id) == 253
async def test_hmip_remove_device(hass, default_mock_hap_factory):

View File

@ -14,6 +14,255 @@
}
},
"devices": {
"3014F7110000RAIN_SENSOR": {
"availableFirmwareVersion": "1.0.18",
"connectionType": "HMIP_RF",
"firmwareVersion": "1.0.18",
"firmwareVersionInteger": 65554,
"functionalChannels": {
"0": {
"busConfigMismatch": null,
"coProFaulty": false,
"coProRestartNeeded": false,
"coProUpdateFailure": false,
"configPending": false,
"deviceId": "3014F7110000RAIN_SENSOR",
"deviceOverheated": false,
"deviceOverloaded": false,
"devicePowerFailureDetected": false,
"deviceUndervoltage": false,
"dutyCycle": false,
"functionalChannelType": "DEVICE_BASE",
"groupIndex": 0,
"groups": [
"00000000-0000-0000-0000-000000000042"
],
"index": 0,
"label": "",
"lowBat": null,
"multicastRoutingEnabled": false,
"powerShortCircuit": null,
"routerModuleEnabled": false,
"routerModuleSupported": false,
"rssiDeviceValue": -91,
"rssiPeerValue": null,
"shortCircuitDataLine": null,
"supportedOptionalFeatures": {
"IFeatureBusConfigMismatch": false,
"IFeatureDeviceCoProError": false,
"IFeatureDeviceCoProRestart": false,
"IFeatureDeviceCoProUpdate": false,
"IFeatureDeviceIdentify": false,
"IFeatureDeviceOverheated": false,
"IFeatureDeviceOverloaded": false,
"IFeatureDevicePowerFailure": false,
"IFeatureDeviceTemperatureOutOfRange": false,
"IFeatureDeviceUndervoltage": false,
"IFeatureMulticastRouter": false,
"IFeaturePowerShortCircuit": false,
"IFeatureRssiValue": true,
"IFeatureShortCircuitDataLine": false,
"IOptionalFeatureDutyCycle": true,
"IOptionalFeatureLowBat": false
},
"temperatureOutOfRange": false,
"unreach": false
},
"1": {
"deviceId": "3014F7110000RAIN_SENSOR",
"functionalChannelType": "RAIN_DETECTION_CHANNEL",
"groupIndex": 1,
"groups": [
"00000000-0000-0000-0000-000000000043"
],
"index": 1,
"label": "",
"rainSensorSensitivity": 50.0,
"raining": true
}
},
"homeId": "00000000-0000-0000-0000-000000000001",
"id": "3014F7110000RAIN_SENSOR",
"label": "Regensensor",
"lastStatusUpdate": 1610893608747,
"liveUpdateState": "LIVE_UPDATE_NOT_SUPPORTED",
"manufacturerCode": 1,
"modelId": 412,
"modelType": "HmIP-SRD",
"oem": "eQ-3",
"permanentlyReachable": true,
"serializedGlobalTradeItemNumber": "3014F7110000RAIN_SENSOR",
"type": "RAIN_SENSOR",
"updateState": "UP_TO_DATE"
},
"3014F7110DIN_RAIL_SWITCH": {
"availableFirmwareVersion": "1.6.0",
"connectionType": "HMIP_RF",
"firmwareVersion": "1.6.0",
"firmwareVersionInteger": 67072,
"functionalChannels": {
"0": {
"busConfigMismatch": null,
"coProFaulty": false,
"coProRestartNeeded": false,
"coProUpdateFailure": false,
"configPending": null,
"deviceId": "3014F7110DIN_RAIL_SWITCH",
"deviceOverheated": false,
"deviceOverloaded": false,
"devicePowerFailureDetected": false,
"deviceUndervoltage": false,
"dutyCycle": null,
"functionalChannelType": "DEVICE_BASE",
"groupIndex": 0,
"groups": [
],
"index": 0,
"label": "",
"lowBat": null,
"multicastRoutingEnabled": false,
"powerShortCircuit": null,
"routerModuleEnabled": false,
"routerModuleSupported": false,
"rssiDeviceValue": null,
"rssiPeerValue": null,
"shortCircuitDataLine": null,
"supportedOptionalFeatures": {
"IFeatureBusConfigMismatch": false,
"IFeatureDeviceCoProError": false,
"IFeatureDeviceCoProRestart": false,
"IFeatureDeviceCoProUpdate": false,
"IFeatureDeviceIdentify": true,
"IFeatureDeviceOverheated": true,
"IFeatureDeviceOverloaded": false,
"IFeatureDevicePowerFailure": true,
"IFeatureDeviceTemperatureOutOfRange": false,
"IFeatureDeviceUndervoltage": false,
"IFeatureMulticastRouter": false,
"IFeaturePowerShortCircuit": false,
"IFeatureRssiValue": true,
"IFeatureShortCircuitDataLine": false,
"IOptionalFeatureDutyCycle": true,
"IOptionalFeatureLowBat": false
},
"temperatureOutOfRange": false,
"unreach": null
},
"1": {
"binaryBehaviorType": "NORMALLY_CLOSE",
"deviceId": "3014F7110DIN_RAIL_SWITCH",
"functionalChannelType": "MULTI_MODE_INPUT_SWITCH_CHANNEL",
"groupIndex": 1,
"groups": [
],
"index": 1,
"label": "OUT (1)",
"multiModeInputMode": "KEY_BEHAVIOR",
"on": null,
"profileMode": null,
"userDesiredProfileMode": "AUTOMATIC"
}
},
"homeId": "00000000-0000-0000-0000-000000000001",
"id": "3014F7110DIN_RAIL_SWITCH",
"label": "Schaltaktor f\u00fcr Hutschienenmontage \u2013 1-fach",
"lastStatusUpdate": 0,
"liveUpdateState": "LIVE_UPDATE_NOT_SUPPORTED",
"manufacturerCode": 1,
"modelId": 422,
"modelType": "HmIP-DRSI1",
"oem": "eQ-3",
"permanentlyReachable": true,
"serializedGlobalTradeItemNumber": "3014F7110DIN_RAIL_SWITCH",
"type": "DIN_RAIL_SWITCH",
"updateState": "UP_TO_DATE"
},
"3014F711PUSH_BUTTON_FLAT": {
"availableFirmwareVersion": "2.2.8",
"connectionType": "HMIP_RF",
"firmwareVersion": "2.2.8",
"firmwareVersionInteger": 131592,
"functionalChannels": {
"0": {
"busConfigMismatch": null,
"coProFaulty": false,
"coProRestartNeeded": false,
"coProUpdateFailure": false,
"configPending": false,
"deviceId": "3014F711PUSH_BUTTON_FLAT",
"deviceOverheated": false,
"deviceOverloaded": false,
"devicePowerFailureDetected": false,
"deviceUndervoltage": false,
"dutyCycle": false,
"functionalChannelType": "DEVICE_BASE",
"groupIndex": 0,
"groups": [
],
"index": 0,
"label": "",
"lowBat": false,
"multicastRoutingEnabled": false,
"powerShortCircuit": null,
"routerModuleEnabled": false,
"routerModuleSupported": false,
"rssiDeviceValue": -70,
"rssiPeerValue": null,
"shortCircuitDataLine": null,
"supportedOptionalFeatures": {
"IFeatureBusConfigMismatch": false,
"IFeatureDeviceCoProError": false,
"IFeatureDeviceCoProRestart": false,
"IFeatureDeviceCoProUpdate": false,
"IFeatureDeviceIdentify": false,
"IFeatureDeviceOverheated": false,
"IFeatureDeviceOverloaded": false,
"IFeatureDevicePowerFailure": false,
"IFeatureDeviceTemperatureOutOfRange": false,
"IFeatureDeviceUndervoltage": false,
"IFeatureMulticastRouter": false,
"IFeaturePowerShortCircuit": false,
"IFeatureRssiValue": true,
"IFeatureShortCircuitDataLine": false,
"IOptionalFeatureDutyCycle": true,
"IOptionalFeatureLowBat": true
},
"temperatureOutOfRange": false,
"unreach": false
},
"1": {
"deviceId": "3014F711PUSH_BUTTON_FLAT",
"functionalChannelType": "SINGLE_KEY_CHANNEL",
"groupIndex": 1,
"groups": [
],
"index": 1,
"label": ""
},
"2": {
"deviceId": "3014F711PUSH_BUTTON_FLAT",
"functionalChannelType": "SINGLE_KEY_CHANNEL",
"groupIndex": 1,
"groups": [
],
"index": 2,
"label": ""
}
},
"homeId": "00000000-0000-0000-0000-000000000001",
"id": "3014F711PUSH_BUTTON_FLAT",
"label": "Wandtaster",
"lastStatusUpdate": 1610331234765,
"liveUpdateState": "LIVE_UPDATE_NOT_SUPPORTED",
"manufacturerCode": 1,
"modelId": 431,
"modelType": "HmIP-WRCC2",
"oem": "eQ-3",
"permanentlyReachable": false,
"serializedGlobalTradeItemNumber": "3014F711PUSH_BUTTON_FLAT",
"type": "PUSH_BUTTON_FLAT",
"updateState": "UP_TO_DATE"
},
"3014F711A000000BAD0CAAAA": {
"availableFirmwareVersion": "2.2.18",
"connectionType": "HMIP_LAN",
@ -1172,7 +1421,6 @@
"3014F7110000000HmIPFSI16": {
"availableFirmwareVersion": "0.0.0",
"connectionType": "HMIP_RF",
"connectionType": "HMIP_RF",
"firmwareVersion": "1.16.2",
"firmwareVersionInteger": 69634,
"functionalChannels": {