Sese-Schneider / ha-cover-time-based

Integration which allows cover control based on time.
MIT License
6 stars 7 forks source link

✨ Feature: Added support for button based cover controls #17

Open wouterdebruijn opened 2 months ago

wouterdebruijn commented 2 months ago

Summary

This PR introduces the is_button variable to the cover configuration. When set to true, this simulates a momentary button press, where the associated switch is temporarily set to a high state, as opposed to flipping a persistent switch.

Rationale

This feature is beneficial for remote-controlled window covers that have been adapted for HomeAssistant integration. These covers typically expect button presses for operation and only stop when a dedicated stop button is pressed. This PR enables the simulation of such button presses, making the integration compatible for these types of setups.

Changes