mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-05 10:38:58 +00:00
2.1 KiB
2.1 KiB
layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_category | ha_release |
---|---|---|---|---|---|---|---|---|---|---|
page | Command line Rollershutter | Instructions how to have rollershutters call command line commands. | 2016-02-22 13:45 | true | false | true | true | command_line.png | Deprecated | 0.14 |
**This platform has been deprecated in favor of a "[cover](/components/cover.command_line/)" platform and will be removed in the future. Please use the cover platform.**
A rollershutter
platform that issues specific commands when it is moved up, down and stopped. This might very well become our most powerful platform as it allows anyone to integrate any type of rollershutter into Home Assistant that can be controlled from the command line, including calling other scripts!
To enable command_rollershutter in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
rollershutter:
- platform: command_line
rollershutters:
Kitchen Rollershutter:
upcmd: move_command up kitchen
downcmd: move_command down kitchen
stopcmd: move_command stop kitchen
statecmd: state_command kitchen
value_template: '{% raw %}{{ value }}{% endraw %}'
Configuration variables:
- rollershutters (Required): The array that contains all command rollershutters.
- entry (Required): Name of the command rollershutter. Multiple entries are possible.
- upcmd (Required): The action to take for move up.
- downcmd (Required): The action to take for move down.
- stopcmd (Required): The action to take for stop.
- statecmd (Optional): If given, this command will be run. Returning a result code
0
will indicate that the rollershutter is fully closed, returning a result code100
will indicate that the rollershutter is fully open. - value_template (Optional - default: '{% raw %}{{ value }}{% endraw %}'): If specified, statecmd will ignore the result code of the command but the template evaluating will indicate the position of the rollershutter.
- entry (Required): Name of the command rollershutter. Multiple entries are possible.