Skip to content

Commit 7ac8c00

Browse files
authored
Update cover.command_line.markdown
Wrong config commands
1 parent c85ef82 commit 7ac8c00

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/_components/cover.command_line.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ cover:
2222
- platform: command_line
2323
covers:
2424
Garage door:
25-
open_cmd: move_command up kitchen
26-
close_cmd: move_command down kitchen
27-
stop_cmd: move_command stop kitchen
28-
state_cmd: state_command kitchen
25+
opencmd: move_command up kitchen
26+
closecmd: move_command down kitchen
27+
stopcmd: move_command stop kitchen
28+
statecmd: state_command kitchen
2929
value_template: {% raw %}>
3030
{% if value == 'open' %}
3131
100
@@ -39,8 +39,8 @@ Configuration variables:
3939
4040
- **covers** (*Required*): The array that contains all command line covers.
4141
- **entry** (*Required*): Name of the command line cover. Multiple entries are possible.
42-
- **open_cmd** (*Required*): The command to open the cover.
43-
- **close_cmd** (*Required*): The action to close the cover.
44-
- **stop_cmd** (*Required*): The action to stop the cover.
45-
- **state_cmd** (*Optional*): If given, this will act as a sensor that runs in the background and updates the state of the cover. If the command returns a `0` the indicates the cover is fully closed, whereas a 100 indicates the cover is fully open.
42+
- **opencmd** (*Required*): The command to open the cover.
43+
- **closecmd** (*Required*): The action to close the cover.
44+
- **stopcmd** (*Required*): The action to stop the cover.
45+
- **statecmd** (*Optional*): If given, this will act as a sensor that runs in the background and updates the state of the cover. If the command returns a `0` the indicates the cover is fully closed, whereas a 100 indicates the cover is fully open.
4646
- **value_template** (*optional - default: '{% raw %}{{ value }}{% endraw%}'*): if specified, `state_cmd` will ignore the result code of the command but the template evaluating will indicate the position of the cover. For example, if your `state_cmd` returns a string "open", using `value_template` as in the example config above will allow you to translate that into the valid state `100`.

0 commit comments

Comments
 (0)