From a146b528dff2d95ea16da9ed734dd8b68c6cef93 Mon Sep 17 00:00:00 2001 From: Danny Tsang <567982+dannytsang@users.noreply.github.com> Date: Fri, 12 May 2023 05:58:38 +0100 Subject: [PATCH] Added example for cover control services. (#27366) Replaced HTML with Markdown syntax. Added tool tips. --- source/_integrations/cover.markdown | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/source/_integrations/cover.markdown b/source/_integrations/cover.markdown index 57a5cba4ee1..9e7ed821706 100644 --- a/source/_integrations/cover.markdown +++ b/source/_integrations/cover.markdown @@ -15,7 +15,7 @@ Home Assistant can give you an interface to control covers such as rollershutter ## Device Class -The way these sensors are displayed in the frontend can be modified in the [customize section](/docs/configuration/customizing-devices/). The following device classes are supported for covers: +The way these {% term sensors %} are displayed in the {% term frontend %} can be modified in the [customize section](/docs/configuration/customizing-devices/). The following device classes are supported for covers: - **None**: Generic cover. This is the default and doesn't need to be set. - **awning**: Control of an awning, such as an exterior retractable window, door, or patio cover. @@ -31,7 +31,8 @@ The way these sensors are displayed in the frontend can be modified in the [cust Here are a few examples of this representation in the UI: -

Example of various device classes icons in `open` and `closed` state. The open image in this example has `state_color: true` specified in the Entities card configuration to receive the icon coloring.

+![List of cover examples](/images/screenshots/cover_classes_icons.png) +Example of various device classes icons in `open` and `closed` state. The open image in this example has `state_color: true` specified in the Entities card configuration to receive the icon coloring. ## Services @@ -43,6 +44,19 @@ Available services: `cover.open_cover`, `cover.close_cover`, `cover.stop_cover`, | ---------------------- | -------- | ----------- | | `entity_id` | yes | String or list of strings that point at `entity_id`'s of covers. Use `entity_id: all` to target all. +#### Automation example + +```yaml +automation: + trigger: + platform: time + at: "07:15:00" + action: + - service: cover.open_cover + target: + entity_id: cover.demo +``` + ### Service `cover.set_cover_position` Set cover position of one or multiple covers.