Add vlc example

This commit is contained in:
Fabian Affolter 2016-01-10 12:16:57 +01:00
parent 0f540db4ed
commit 43c201ef01

View File

@ -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"
```