Skip to content

Commit eb2cc62

Browse files
chrom3fabaff
authored andcommitted
Basic Cover documentation (home-assistant#951)
* Added more content + documentation * Update cover.markdown * Update cover.markdown
1 parent ad0aa58 commit eb2cc62

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

source/_components/cover.markdown

+54
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,57 @@ footer: true
1111

1212
Home Assistant can give you an interface to control covers such as
1313
rollershutters and garage doors.
14+
## {% linkable_title Services %}
15+
16+
### {% linkable_title Cover control services %}
17+
Available services: `cover.open_cover`, `cover.close_cover`, `cover.stop_cover`, `cover.open_cover_tilt`, `cover.close_cover_tilt`, `cover.stop_cover_tilt`
18+
19+
| Service data attribute | Optional | Description |
20+
| ---------------------- | -------- | ----------- |
21+
| `entity_id` | yes | String or list of strings that point at `entity_id`'s of covers. Else targets all.
22+
23+
### {% linkable_title Service `cover.set_cover_position` %}
24+
25+
Set cover position of one or multiple covers.
26+
27+
| Service data attribute | Optional | Description |
28+
| ---------------------- | -------- | ----------- |
29+
| `entity_id` | yes | String or list of strings that point at `entity_id`'s of covers. Else targets all.
30+
| `position` | no | Integer between 0 and 100.
31+
32+
#### {% linkable_title Automation example %}
33+
34+
```yaml
35+
automation:
36+
trigger:
37+
platform: time
38+
after: "07:15:00"
39+
action:
40+
- service: cover.set_cover_position
41+
data:
42+
entity_id: cover.demo
43+
position: 50
44+
```
45+
46+
### {% linkable_title Service `cover.set_cover_tilt_position` %}
47+
48+
Set cover tilt position of one or multiple covers.
49+
50+
| Service data attribute | Optional | Description |
51+
| ---------------------- | -------- | ----------- |
52+
| `entity_id` | yes | String or list of strings that point at `entity_id`'s of covers. Else targets all.
53+
| `position` | no | Integer between 0 and 100.
54+
55+
#### {% linkable_title Automation example %}
56+
57+
```yaml
58+
automation:
59+
trigger:
60+
platform: time
61+
after: "07:15:00"
62+
action:
63+
- service: cover.set_cover_tilt_position
64+
data:
65+
entity_id: cover.demo
66+
position: 50
67+
```

0 commit comments

Comments
 (0)