1.7 KiB
1.7 KiB
Smart Close Cover
Helper script to intelligently close a cover entity when the sun is below the horizon after waiting for its window to be closed. Useful in time-based cover automations.
General
This script chains a window entity to a cover for the action of closing the cover once if the sun is down. You can optionally specify extra actions to be executed once the cover starts closing for example to activate a scene or send a notification. If the window hasn't been closed after a configurable period of 14 hours, the script execution is, canceled because the sun is probably up again.
Inputs
| Name | Description | Default |
|---|---|---|
| Cover Entity | Required. The cover entity to close | |
| Window Entity | Required. The window to wait for if open at the time this script is triggered | |
| Close Duration (s) | The duration in seconds that the window needs to be closed before the cover is reset | 4 |
| extra_actions | Extra Actions to run when the cover starts closing |