Skip to content
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

Fully customize cover open/close texts and support "stopped" status #1335

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

billsq
Copy link
Contributor

@billsq billsq commented Sep 30, 2023

This PR is mainly for addressing issues with zinguo.motor.mk01.

The current implementation's open and close texts are too wide. They can't differentiate between stationary status open/close, and moving status opening/closing. The custom config list is just appending with the default texts, which is not helpful at all.

This PR changed the code to fully take the custom config list if available, and fall back to the default texts when no custom config found.

Additionally, this motor has no current position property, but does have a "Stopped" status. We can use this status to generate a fake 50% position so that we can use Home Assistant GUI to further open or close the cover.

billsq and others added 2 commits September 30, 2023 22:54
…an't differentiate between open/close and opening/closing.

Generate a fake middle position when the motor controller is "stopped", to allow Home Assistant GUI to show both open and close buttons.
@al-one al-one merged commit bfcf402 into al-one:master Oct 12, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants