From 43c201ef0114d0a99edeb6563a3ecf2d2ef07682 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Jan 2016 12:16:57 +0100 Subject: [PATCH] Add vlc example --- source/_components/switch.command_switch.markdown | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/_components/switch.command_switch.markdown b/source/_components/switch.command_switch.markdown index 3f5d46d40c2..79f8244fd4c 100644 --- a/source/_components/switch.command_switch.markdown +++ b/source/_components/switch.command_switch.markdown @@ -68,3 +68,17 @@ switch: offcmd: "/usr/sbin/poweroff" ``` +### {% linkable_title Control your VLC player %} + +This switch will control a local VLC media player ([Source](https://automic.us/forum/viewtopic.php?f=4&t=144)). + + +```yaml +# Example configuration.yaml entry +switch: + platform: command_switch + switches: + VLC: + oncmd: "cvlc 1.mp3 vlc://quit &" + offcmd: "pkill vlc" +```