esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
416 stars 26 forks source link

Alternative stop action for covers with a momentary switch control #2601

Open csomyy opened 8 months ago

csomyy commented 8 months ago

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

tigertop commented 3 months ago

Hi I have the same situation. Did you come up with a solution?