mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Add vlc example
This commit is contained in:
parent
0f540db4ed
commit
43c201ef01
@ -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"
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user