Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions content/components/cover/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down