Skip to content

Commit 206638c

Browse files
committed
add cover conditions
1 parent 90fd6c3 commit 206638c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

content/components/cover/_index.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,38 @@ fields are read-only, if you want to act on the cover, use the `make_call()` met
229229
}
230230
```
231231

232+
## Conditions
233+
234+
{{< anchor "cover-is_open_condition" >}}
235+
236+
### `cover.is_open`
237+
238+
This [Condition](/automations/actions#all-conditions) checks if the cover is completely open (COVER_OPEN).
239+
240+
```yaml
241+
# In some trigger:
242+
on_...:
243+
if:
244+
condition:
245+
cover.is_open: my_cover
246+
```
247+
248+
{{< anchor "cover-is_closed_condition" >}}
249+
250+
### `cover.is_closed`
251+
252+
This [Condition](/automations/actions#all-conditions) checks if the cover is completely closed (COVER_CLOSED).
253+
254+
```yaml
255+
# In some trigger:
256+
on_...:
257+
if:
258+
condition:
259+
cover.is_closed: my_cover
260+
```
261+
262+
## Triggers
263+
232264
{{< anchor "cover-on_open_trigger" >}}
233265

234266
### `cover.on_open` Trigger

0 commit comments

Comments
 (0)