arduino-home-assistant icon indicating copy to clipboard operation
arduino-home-assistant copied to clipboard

Add support for setting cover target position and tilt

Open manuelkasper opened this issue 1 year ago • 0 comments

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 https://github.com/dawidchyrzynski/arduino-home-assistant/issues/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 avatar Mar 10 '24 14:03 manuelkasper