-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Initial documentation for cover templates #2842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite a few mistakes that will need to be corrected before merge.
@@ -0,0 +1,77 @@ | |||
--- | |||
layout: page | |||
title: "Template Light" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be cover.
--- | ||
layout: page | ||
title: "Template Light" | ||
description: "Instructions how to integrate Template lights into Home Assistant." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be cover.
layout: page | ||
title: "Template Light" | ||
description: "Instructions how to integrate Template lights into Home Assistant." | ||
date: 2016-05-18 20:32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update date to actual date of creation?
logo: home-assistant.png | ||
--- | ||
|
||
The `template` platform creates covers that combine components and provides the ability to run scripts or invoke services for each of the open, close, stop, position, and tilt commands of a cover. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The template
platform can create.
|
||
Configuration variables: | ||
|
||
- **coverss** array (*Required*): List of your coverss. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cover instead of coverss?
- **coverss** array (*Required*): List of your coverss. | ||
- **friendly_name** (*Optional*): Name to use in the Frontend. | ||
- **value_template** (*Optional*): Defines a [template](/topics/templating/) to get the state of the cover. Legal valules are open/true or closed/false. Either value_template or position_template must be specified. | ||
- **position_template** (*Optional*): Defines a [template](/topics/templating/) to get the state of the cover. Legal values are numbers between 0 (closed and 100 (open). Either value_template or position_template must be specified. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(closed is missing closing ).
- **stop_cover** (*Required*): Defines an [action](/getting-started/automation/) to run when the cover is stopped. | ||
- **set_cover_position** (*Optional*): Defines an [action](/getting-started/automation/) to run when the cover is set to a specific value (between 0 and 100). | ||
- **set_cover_tilt_position** (*Optional*): Defines an [action](/getting-started/automation/) to run when the cover tilt is set to a specific value (between 0 and 100). | ||
- **entity_id** (*Optional*): Add a list of entity IDs so the switch only reacts to state changes of these entities. This will reduce the number of times the light will try to update it's state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
light insteadcover.
|
||
## {% linkable_title Examples %} | ||
|
||
In this section you will find some real life examples of how to use this light. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Light instead of cover
Thank you for taking the time to review this |
@PhracturedBlue No problem. Looks good and can be merged when parent PR is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and can be merged when parent PR is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🐦
Description:
Documentation for cover templates
Pull request in home-assistant (if applicable): home-assistant/core#8100