From 206638c0335b9d7d713272d428519fa0982f1537 Mon Sep 17 00:00:00 2001 From: Tom Tchilov Date: Sun, 23 Nov 2025 12:21:52 +0100 Subject: [PATCH] add cover conditions --- content/components/cover/_index.md | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/content/components/cover/_index.md b/content/components/cover/_index.md index 57dfc82686..c572a89502 100644 --- a/content/components/cover/_index.md +++ b/content/components/cover/_index.md @@ -229,6 +229,38 @@ fields are read-only, if you want to act on the cover, use the `make_call()` met } ``` +## Conditions + +{{< anchor "cover-is_open_condition" >}} + +### `cover.is_open` + +This [Condition](/automations/actions#all-conditions) checks if the cover is completely open (COVER_OPEN). + +```yaml +# In some trigger: +on_...: + if: + condition: + cover.is_open: my_cover +``` + +{{< anchor "cover-is_closed_condition" >}} + +### `cover.is_closed` + +This [Condition](/automations/actions#all-conditions) checks if the cover is completely closed (COVER_CLOSED). + +```yaml +# In some trigger: +on_...: + if: + condition: + cover.is_closed: my_cover +``` + +## Triggers + {{< anchor "cover-on_open_trigger" >}} ### `cover.on_open` Trigger