diff --git a/homeassistant/components/tahoma/__init__.py b/homeassistant/components/tahoma/__init__.py index f14e3019ac0..1e1bbd31eae 100644 --- a/homeassistant/components/tahoma/__init__.py +++ b/homeassistant/components/tahoma/__init__.py @@ -37,6 +37,7 @@ TAHOMA_TYPES = { "io:AwningValanceIOComponent": "cover", "io:ExteriorVenetianBlindIOComponent": "cover", "io:DiscreteGarageOpenerIOComponent": "cover", + "io:DiscreteGarageOpenerWithPartialPositionIOComponent": "cover", "io:HorizontalAwningIOComponent": "cover", "io:GarageOpenerIOComponent": "cover", "io:LightIOSystemSensor": "sensor", diff --git a/homeassistant/components/tahoma/cover.py b/homeassistant/components/tahoma/cover.py index 7692e9bedf7..e13f9bb8859 100644 --- a/homeassistant/components/tahoma/cover.py +++ b/homeassistant/components/tahoma/cover.py @@ -30,6 +30,7 @@ HORIZONTAL_AWNING = "io:HorizontalAwningIOComponent" TAHOMA_DEVICE_CLASSES = { HORIZONTAL_AWNING: DEVICE_CLASS_AWNING, "io:AwningValanceIOComponent": DEVICE_CLASS_AWNING, + "io:DiscreteGarageOpenerWithPartialPositionIOComponent": DEVICE_CLASS_GARAGE, "io:DiscreteGarageOpenerIOComponent": DEVICE_CLASS_GARAGE, "io:ExteriorVenetianBlindIOComponent": DEVICE_CLASS_BLIND, "io:GarageOpenerIOComponent": DEVICE_CLASS_GARAGE, @@ -155,6 +156,11 @@ class TahomaCover(TahomaDevice, CoverDevice): self._closed = ( self.tahoma_device.active_states["core:OpenClosedState"] == "closed" ) + if "core:OpenClosedPartialState" in self.tahoma_device.active_states: + self._closed = ( + self.tahoma_device.active_states["core:OpenClosedPartialState"] + == "closed" + ) else: self._closed = False