mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 09:23:17 -04:00
Report Overkiz Uno awnings as closed when retracted (#180478)
This commit is contained in:
@@ -89,6 +89,18 @@ COVER_DESCRIPTIONS: list[OverkizCoverDescription] = [
|
||||
is_closed_state=OverkizState.CORE_OPEN_CLOSED,
|
||||
),
|
||||
# Needs override to omit is_closed_state, since OpenClosedState is unreliable
|
||||
# uiClass is Awning
|
||||
OverkizCoverDescription(
|
||||
key=UIWidget.POSITIONABLE_HORIZONTAL_AWNING_UNO,
|
||||
device_class=CoverDeviceClass.AWNING,
|
||||
current_position_state=OverkizState.CORE_DEPLOYMENT,
|
||||
set_position_command=OverkizCommand.SET_DEPLOYMENT,
|
||||
open_command=OverkizCommand.DEPLOY,
|
||||
close_command=OverkizCommand.UNDEPLOY,
|
||||
stop_command=OverkizCommand.STOP,
|
||||
invert_position=False,
|
||||
),
|
||||
# Needs override to omit is_closed_state, since OpenClosedState is unreliable
|
||||
# uiClass is RollerShutter
|
||||
OverkizCoverDescription(
|
||||
key=UIWidget.POSITIONABLE_ROLLER_SHUTTER_UNO,
|
||||
|
||||
@@ -375,6 +375,260 @@
|
||||
"uiClass": "Awning"
|
||||
}
|
||||
},
|
||||
{
|
||||
"deviceURL": "io://1234-1234-1234/5928358",
|
||||
"available": true,
|
||||
"synced": true,
|
||||
"type": 1,
|
||||
"states": [
|
||||
{
|
||||
"type": 3,
|
||||
"name": "core:StatusState",
|
||||
"value": "available"
|
||||
},
|
||||
{
|
||||
"type": 3,
|
||||
"name": "core:DiscreteRSSILevelState",
|
||||
"value": "good"
|
||||
},
|
||||
{
|
||||
"type": 1,
|
||||
"name": "core:RSSILevelState",
|
||||
"value": 88
|
||||
},
|
||||
{
|
||||
"type": 1,
|
||||
"name": "core:DeploymentState",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"type": 11,
|
||||
"name": "core:ManufacturerSettingsState",
|
||||
"value": {
|
||||
"currentPosition": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": 3,
|
||||
"name": "core:OpenClosedState",
|
||||
"value": "open"
|
||||
},
|
||||
{
|
||||
"type": 1,
|
||||
"name": "core:TargetClosureState",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"type": 6,
|
||||
"name": "core:MovingState",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"type": 3,
|
||||
"name": "core:NameState",
|
||||
"value": "Pergola Awning"
|
||||
},
|
||||
{
|
||||
"type": 1,
|
||||
"name": "core:Memorized1PositionState",
|
||||
"value": 105
|
||||
}
|
||||
],
|
||||
"label": "Pergola Awning",
|
||||
"subsystemId": 0,
|
||||
"attributes": [
|
||||
{
|
||||
"type": 3,
|
||||
"name": "core:Manufacturer",
|
||||
"value": "Somfy"
|
||||
},
|
||||
{
|
||||
"type": 3,
|
||||
"name": "core:FirmwareRevision",
|
||||
"value": "5071665X10\u0003"
|
||||
}
|
||||
],
|
||||
"enabled": true,
|
||||
"controllableName": "io:HorizontalAwningIOComponent",
|
||||
"definition": {
|
||||
"states": [
|
||||
{
|
||||
"name": "core:AdditionalStatusState"
|
||||
},
|
||||
{
|
||||
"name": "core:DeploymentState"
|
||||
},
|
||||
{
|
||||
"name": "core:DiscreteRSSILevelState"
|
||||
},
|
||||
{
|
||||
"name": "core:ManufacturerSettingsState"
|
||||
},
|
||||
{
|
||||
"name": "core:Memorized1PositionState"
|
||||
},
|
||||
{
|
||||
"name": "core:MovingState"
|
||||
},
|
||||
{
|
||||
"name": "core:NameState"
|
||||
},
|
||||
{
|
||||
"name": "core:OpenClosedState"
|
||||
},
|
||||
{
|
||||
"name": "core:RSSILevelState"
|
||||
},
|
||||
{
|
||||
"name": "core:SecuredPositionState"
|
||||
},
|
||||
{
|
||||
"name": "core:StatusState"
|
||||
},
|
||||
{
|
||||
"name": "core:TargetClosureState"
|
||||
}
|
||||
],
|
||||
"widgetName": "PositionableHorizontalAwningUno",
|
||||
"type": "ACTUATOR",
|
||||
"commands": [
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "advancedRefresh",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"commandName": "close",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "delayedStopIdentify",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"commandName": "deploy",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "down",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "getName",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "identify",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "keepOneWayControllersAndDeleteNode",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "my",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "open",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "pairOneWayController",
|
||||
"paramsSig": "p1,*p2"
|
||||
},
|
||||
{
|
||||
"commandName": "refreshMemorized1Position",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"nparams": 2,
|
||||
"commandName": "runManufacturerSettingsCommand",
|
||||
"paramsSig": "p1,p2"
|
||||
},
|
||||
{
|
||||
"commandName": "sendIOKey",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "setClosure",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "setConfigState",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "setDeployment",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "setMemorized1Position",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "setName",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "setPosition",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "setSecuredPosition",
|
||||
"paramsSig": "p1"
|
||||
},
|
||||
{
|
||||
"commandName": "startIdentify",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "stop",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "stopIdentify",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "undeploy",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "unpairAllOneWayControllers",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"commandName": "unpairAllOneWayControllersAndDeleteNode",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "unpairOneWayController",
|
||||
"paramsSig": "p1,*p2"
|
||||
},
|
||||
{
|
||||
"commandName": "up",
|
||||
"nparams": 0
|
||||
},
|
||||
{
|
||||
"nparams": 1,
|
||||
"commandName": "wink",
|
||||
"paramsSig": "p1"
|
||||
}
|
||||
],
|
||||
"uiClass": "Awning"
|
||||
}
|
||||
},
|
||||
{
|
||||
"deviceURL": "io://1234-1234-1234/16516299",
|
||||
"available": true,
|
||||
|
||||
@@ -2638,6 +2638,60 @@
|
||||
'state': 'closed',
|
||||
})
|
||||
# ---
|
||||
# name: test_cover_entities_snapshot[local_somfy_connexoon_europe.json][cover.pergola_awning-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': list([
|
||||
None,
|
||||
]),
|
||||
'area_id': None,
|
||||
'capabilities': None,
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'cover',
|
||||
'entity_category': None,
|
||||
'entity_id': 'cover.pergola_awning',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'object_id_base': None,
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <CoverDeviceClass.AWNING: 'awning'>,
|
||||
'original_icon': None,
|
||||
'original_name': None,
|
||||
'platform': 'overkiz',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': <CoverEntityFeature: 15>,
|
||||
'translation_key': None,
|
||||
'unique_id': 'io://1234-1234-1234/5928358',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_cover_entities_snapshot[local_somfy_connexoon_europe.json][cover.pergola_awning-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<CoverEntityStateAttribute.CURRENT_POSITION: 'current_position'>: 0,
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'awning',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Pergola Awning',
|
||||
<CoverEntityStateAttribute.IS_CLOSED: 'is_closed'>: True,
|
||||
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CoverEntityFeature: 15>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'cover.pergola_awning',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'closed',
|
||||
})
|
||||
# ---
|
||||
# name: test_cover_entities_snapshot[local_somfy_connexoon_europe.json][cover.terrace_awning-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': list([
|
||||
|
||||
Reference in New Issue
Block a user