mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 02:07:15 +00:00
Fix samples
This commit is contained in:
parent
ede87269af
commit
e944c6c0c1
@ -20,12 +20,12 @@ To enable a command line cover in your installation, add the following to your `
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
cover:
|
cover:
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
covers:
|
covers:
|
||||||
garage_door:
|
garage_door:
|
||||||
command_open: move_command up garage
|
command_open: move_command up garage
|
||||||
command_close: move_command down garage
|
command_close: move_command down garage
|
||||||
command_stop: move_command stop garage
|
command_stop: move_command stop garage
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -48,18 +48,18 @@ In this section you find some real life examples of how to use this sensor.
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
cover:
|
cover:
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
covers:
|
covers:
|
||||||
garage_door:
|
garage_door:
|
||||||
command_open: move_command up garage
|
command_open: move_command up garage
|
||||||
command_close: move_command down garage
|
command_close: move_command down garage
|
||||||
command_stop: move_command stop garage
|
command_stop: move_command stop garage
|
||||||
command_state: state_command garage
|
command_state: state_command garage
|
||||||
value_template: {% raw %}>
|
value_template: {% raw %}>
|
||||||
{% if value == 'open' %}
|
{% if value == 'open' %}
|
||||||
100
|
100
|
||||||
{% elif value == 'closed' %}
|
{% elif value == 'closed' %}
|
||||||
0
|
0
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user