You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/cover.command_line.markdown
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,10 @@ cover:
22
22
- platform: command_line
23
23
covers:
24
24
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
29
29
value_template: {% raw %}>
30
30
{% if value == 'open' %}
31
31
100
@@ -39,8 +39,8 @@ Configuration variables:
39
39
40
40
- **covers** (*Required*): The array that contains all command line covers.
41
41
- **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.
46
46
- **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