esphome / esphome/feature-requests
Alternative stop action for covers with a momentary switch control
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
I got covers which are controlled with momentary switches. To start i need to press and release a button in a direction. To stop, i need to press the opposite button in which the cover is actually moving. I'm using sonoff_dual_r3 switches to do this.
**Please describe your use case for this integration and alternatives you've tried:**
I tried to use lambdas (in stop.cover action) to detect the movement of the cover, but as soon as i call the stop.cover function, logically the cover is stopped and lambdas cannot detect the direction.
I would have a stop action which can detect the direction of the movement.
My ideas:
-detect the actual movement
-store the last command and use that for direction detection
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by investigating the cover stop action and how movement direction or the last command is represented for sonoff_dual_r3 switches. Compare the requested alternatives—detecting actual movement or storing the last command—and define the behavior for a momentary-switch cover. Done means a stop action can select the required opposite direction without relying on a lambda after stopping.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100