mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 02:07:15 +00:00
Fixed typo in cover automation (#2922)
This commit is contained in:
parent
aa67b14e3b
commit
5380823190
@ -13,7 +13,7 @@ ha_iot_class: "Local Push"
|
|||||||
logo: home-assistant.png
|
logo: home-assistant.png
|
||||||
---
|
---
|
||||||
|
|
||||||
The `template` platform can create 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.
|
The `template` platform can create 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.
|
||||||
|
|
||||||
To enable Template covers in your installation, add the following to your `configuration.yaml` file:
|
To enable Template covers in your installation, add the following to your `configuration.yaml` file:
|
||||||
|
|
||||||
@ -65,13 +65,13 @@ cover:
|
|||||||
value_template: "{% raw %}{{ sensor.garage_door }}{% endraw %}"
|
value_template: "{% raw %}{{ sensor.garage_door }}{% endraw %}"
|
||||||
open_cover:
|
open_cover:
|
||||||
service: switch.turn_on
|
service: switch.turn_on
|
||||||
entity_is: switch.garage_door
|
entity_id: switch.garage_door
|
||||||
close_cover:
|
close_cover:
|
||||||
service: switch.turn_off
|
service: switch.turn_off
|
||||||
entity_is: switch.garage_door
|
entity_id: switch.garage_door
|
||||||
stop_cover:
|
stop_cover:
|
||||||
service: switch.turn_on
|
service: switch.turn_on
|
||||||
entity_is: switch.garage_door
|
entity_id: switch.garage_door
|
||||||
icon_template: "{% raw %}{% if not is_state('sensor.garage_door', 'on') %}mdi:garage-open{% else %}mdi:garage{% endif %}{% endraw %}"
|
icon_template: "{% raw %}{% if not is_state('sensor.garage_door', 'on') %}mdi:garage-open{% else %}mdi:garage{% endif %}{% endraw %}"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user