Expose ThreeWayWindowHandle direction as sensor in Overkiz integration (#73784)

* Expose ThreeWayWindowHandle direction as sensor

* Compile translations
This commit is contained in:
Mick Vleeshouwer 2022-06-21 17:31:26 +02:00 committed by GitHub
parent eac7c5f177
commit 28cc0b9fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 3 deletions

View File

@ -118,3 +118,4 @@ class OverkizDeviceClass(StrEnum):
PRIORITY_LOCK_ORIGINATOR = "overkiz__priority_lock_originator" PRIORITY_LOCK_ORIGINATOR = "overkiz__priority_lock_originator"
SENSOR_DEFECT = "overkiz__sensor_defect" SENSOR_DEFECT = "overkiz__sensor_defect"
SENSOR_ROOM = "overkiz__sensor_room" SENSOR_ROOM = "overkiz__sensor_room"
THREE_WAY_HANDLE_DIRECTION = "overkiz__three_way_handle_direction"

View File

@ -3,7 +3,7 @@
"name": "Overkiz (by Somfy)", "name": "Overkiz (by Somfy)",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/overkiz", "documentation": "https://www.home-assistant.io/integrations/overkiz",
"requirements": ["pyoverkiz==1.4.1"], "requirements": ["pyoverkiz==1.4.2"],
"zeroconf": [ "zeroconf": [
{ {
"type": "_kizbox._tcp.local.", "type": "_kizbox._tcp.local.",

View File

@ -366,6 +366,12 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
native_unit_of_measurement=PERCENTAGE, native_unit_of_measurement=PERCENTAGE,
entity_registry_enabled_default=False, entity_registry_enabled_default=False,
), ),
# ThreeWayWindowHandle/WindowHandle
OverkizSensorDescription(
key=OverkizState.CORE_THREE_WAY_HANDLE_DIRECTION,
name="Three Way Handle Direction",
device_class=OverkizDeviceClass.THREE_WAY_HANDLE_DIRECTION,
),
] ]
SUPPORTED_STATES = {description.key: description for description in SENSOR_DESCRIPTIONS} SUPPORTED_STATES = {description.key: description for description in SENSOR_DESCRIPTIONS}

View File

@ -36,6 +36,11 @@
"low_battery": "Low battery", "low_battery": "Low battery",
"maintenance_required": "Maintenance required", "maintenance_required": "Maintenance required",
"no_defect": "No defect" "no_defect": "No defect"
},
"overkiz__three_way_handle_direction": {
"closed": "Closed",
"open": "Open",
"tilt": "Tilt"
} }
} }
} }

View File

@ -36,6 +36,11 @@
"overkiz__sensor_room": { "overkiz__sensor_room": {
"clean": "Clean", "clean": "Clean",
"dirty": "Dirty" "dirty": "Dirty"
},
"overkiz__three_way_handle_direction": {
"closed": "Closed",
"open": "Open",
"tilt": "Tilt"
} }
} }
} }

View File

@ -1720,7 +1720,7 @@ pyotgw==1.1b1
pyotp==2.6.0 pyotp==2.6.0
# homeassistant.components.overkiz # homeassistant.components.overkiz
pyoverkiz==1.4.1 pyoverkiz==1.4.2
# homeassistant.components.openweathermap # homeassistant.components.openweathermap
pyowm==3.2.0 pyowm==3.2.0

View File

@ -1169,7 +1169,7 @@ pyotgw==1.1b1
pyotp==2.6.0 pyotp==2.6.0
# homeassistant.components.overkiz # homeassistant.components.overkiz
pyoverkiz==1.4.1 pyoverkiz==1.4.2
# homeassistant.components.openweathermap # homeassistant.components.openweathermap
pyowm==3.2.0 pyowm==3.2.0