-
-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Fix is_closed state for DynamicGarageDoor in Overkiz
#170052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zweckj
merged 7 commits into
home-assistant:dev
from
iMicknl:fix/overkiz-dynamic-garage-door-169971
May 8, 2026
+451
−1
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ffc9c3c
Fix DynamicGarageDoor unknown state in Overkiz cover
iMicknl c5529ca
Fix Overkiz cover descriptions for GarageDoor UIClass and update posi…
iMicknl c8eb37c
Add OGP DynamicGarageDoor variant to test suite and clean up
iMicknl 0919ba0
Fix snapshot bloat: keep one entry per fixture file in SNAPSHOT_FIXTURES
iMicknl ed71c4b
Add PositionableGarageDoorWithPartialPosition widget override
iMicknl 0c6738e
Clarify comments for PositionableGarageDoor and PositionableGarageDoo…
iMicknl b2ca823
Add position control
iMicknl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,6 +124,32 @@ class OverkizCoverDescription(CoverEntityDescription): | |
| close_tilt_command_args=(15, 1), # position (1-127), speed (1-15) | ||
| stop_tilt_command=OverkizCommand.STOP, | ||
| ), | ||
| # Needs override since PositionableGarageDoor reports | ||
| # core:OpenClosedUnknownState instead of core:OpenClosedState | ||
| # uiClass is GarageDoor | ||
| OverkizCoverDescription( | ||
| key=UIWidget.POSITIONABLE_GARAGE_DOOR, | ||
| device_class=CoverDeviceClass.GARAGE, | ||
| current_position_state=OverkizState.CORE_CLOSURE, | ||
| set_position_command=OverkizCommand.SET_CLOSURE, | ||
| open_command=OverkizCommand.OPEN, | ||
| close_command=OverkizCommand.CLOSE, | ||
| stop_command=OverkizCommand.STOP, | ||
| is_closed_state=OverkizState.CORE_OPEN_CLOSED_UNKNOWN, | ||
| ), | ||
|
Comment on lines
+127
to
+139
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will fix this in a follow-up PR, good catch. Not related to this change and previous behavior. |
||
| # Needs override since PositionableGarageDoorWithPartialPosition reports | ||
| # core:OpenClosedPartialState instead of core:OpenClosedState | ||
| # uiClass is GarageDoor | ||
| OverkizCoverDescription( | ||
| key=UIWidget.POSITIONABLE_GARAGE_DOOR_WITH_PARTIAL_POSITION, | ||
| device_class=CoverDeviceClass.GARAGE, | ||
| current_position_state=OverkizState.CORE_CLOSURE, | ||
| set_position_command=OverkizCommand.SET_CLOSURE, | ||
| open_command=OverkizCommand.OPEN, | ||
| close_command=OverkizCommand.CLOSE, | ||
| stop_command=OverkizCommand.STOP, | ||
| is_closed_state=OverkizState.CORE_OPEN_CLOSED_PARTIAL, | ||
| ), | ||
| # Needs override to support this Generic device (rts:GenericRTSComponent) | ||
| # uiClass is Generic (not mapped to cover as this is a Generic device class) | ||
| OverkizCoverDescription( | ||
|
|
@@ -200,7 +226,7 @@ class OverkizCoverDescription(CoverEntityDescription): | |
| set_position_command=OverkizCommand.SET_CLOSURE, | ||
| open_command=OverkizCommand.OPEN, | ||
| close_command=OverkizCommand.CLOSE, | ||
| is_closed_state=OverkizState.CORE_OPEN_CLOSED_UNKNOWN, | ||
| is_closed_state=OverkizState.CORE_OPEN_CLOSED, | ||
| stop_command=OverkizCommand.STOP, | ||
| ), | ||
| OverkizCoverDescription( | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.