Add vlc example
This commit is contained in:
parent
0f540db4ed
commit
43c201ef01
1 changed files with 14 additions and 0 deletions
|
@ -68,3 +68,17 @@ switch:
|
||||||
offcmd: "/usr/sbin/poweroff"
|
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"
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue