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

Add support for setting cover target position and tilt #242

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

manuelkasper
Copy link

@manuelkasper manuelkasper commented Mar 10, 2024

This adds two new feature flags to Cover:

  • SetPositionFeature
    • In addition to the device reporting its current position, if this feature is enabled, then Home Assistant can also set a target position (0-100, onSetPositionCommand) instead of only sending up/down/stop commands.
    • Must be used together with PositionFeature.
  • TiltFeature
    • For covers that can also tilt (independently of setting the position). Enables reporting the current tilt level to Home Assistant, and setting a target tilt level (0-100, onTiltCommand) from Home Assistant.

See also #47

The various feature combinations look as follows in the UI:

No features

1 - no feature

PositionFeature

2 - only positionfeature

SetPositionFeature (+ PositionFeature)

3 - setpositionfeature

TiltFeature

4 - tiltfeature

All features

5 - setpos and tilt

@manuelkasper manuelkasper marked this pull request as ready for review March 10, 2024 15:07
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.

None yet

2 participants