diff --git a/homeassistant/components/overkiz/cover.py b/homeassistant/components/overkiz/cover.py index 9a49d2c2c496f7..3d1eb1edf501a1 100644 --- a/homeassistant/components/overkiz/cover.py +++ b/homeassistant/components/overkiz/cover.py @@ -210,6 +210,41 @@ class OverkizCoverDescription(CoverEntityDescription): is_closed_state=OverkizState.CORE_OPEN_CLOSED_PEDESTRIAN, stop_command=OverkizCommand.STOP, ), + # Needs override since OpenCloseGateWithPedestrianPosition reports + # core:OpenClosedPedestrianState instead of core:OpenClosedState + # uiClass is Gate + OverkizCoverDescription( + key=UIWidget.OPEN_CLOSE_GATE_WITH_PEDESTRIAN_POSITION, + device_class=CoverDeviceClass.GATE, + open_command=OverkizCommand.OPEN, + close_command=OverkizCommand.CLOSE, + is_closed_state=OverkizState.CORE_OPEN_CLOSED_PEDESTRIAN, + stop_command=OverkizCommand.STOP, + ), + # Needs override since OpenCloseSlidingGateWithPedestrianPosition reports + # core:OpenClosedPedestrianState instead of core:OpenClosedState + # uiClass is Gate + OverkizCoverDescription( + key=UIWidget.OPEN_CLOSE_SLIDING_GATE_WITH_PEDESTRIAN_POSITION, + device_class=CoverDeviceClass.GATE, + open_command=OverkizCommand.OPEN, + close_command=OverkizCommand.CLOSE, + is_closed_state=OverkizState.CORE_OPEN_CLOSED_PEDESTRIAN, + stop_command=OverkizCommand.STOP, + ), + # Needs override since PositionableGateWithPedestrianPosition reports + # core:OpenClosedPedestrianState instead of core:OpenClosedState + # uiClass is Gate + OverkizCoverDescription( + key=UIWidget.POSITIONABLE_GATE_WITH_PEDESTRIAN_POSITION, + device_class=CoverDeviceClass.GATE, + open_command=OverkizCommand.OPEN, + close_command=OverkizCommand.CLOSE, + is_closed_state=OverkizState.CORE_OPEN_CLOSED_PEDESTRIAN, + current_position_state=OverkizState.CORE_CLOSURE, + set_position_command=OverkizCommand.SET_CLOSURE, + stop_command=OverkizCommand.STOP, + ), # Needs override to support this Generic device (rts:GenericRTSComponent) # uiClass is Generic (not mapped to cover as this is a Generic device class) OverkizCoverDescription( @@ -319,6 +354,9 @@ class OverkizCoverDescription(CoverEntityDescription): close_command=OverkizCommand.CLOSE, is_closed_state=OverkizState.CORE_OPEN_CLOSED, stop_command=OverkizCommand.STOP, + current_tilt_position_state=OverkizState.CORE_SLATE_ORIENTATION, + set_tilt_position_command=OverkizCommand.SET_ORIENTATION, + stop_tilt_command=OverkizCommand.STOP, ), OverkizCoverDescription( key=UIClass.SCREEN,