839 B
839 B
layout | title | description | date | sidebar | comments | sharing | footer |
---|---|---|---|---|---|---|---|
page | Command line switches support | Instructions how to have a switch call command line commands. | 2015-06-10 22:41 | false | false | true | true |

To enable it, add the following lines to your configuration.yaml
:
# Example configuration.yaml entry
switch:
platform: command_switch
switches:
- kitchen_light:
oncmd: switch_command on kitchen
offcmd: switch_command off kitchen