mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update switch.command_line.markdown (#1436)
There are several mistakes in the examples: upper case and spaces are not allowed in identifier. See the issue here: https://community.home-assistant.io/t/command-line-switch-possible-documentation-issue/6218/3
This commit is contained in:
parent
66a907f01c
commit
5730af01ed
@ -73,7 +73,7 @@ This switch will shutdown your host immediately, there will be no confirmation.
|
||||
switch:
|
||||
platform: command_line
|
||||
switches:
|
||||
Home Assistant system shutdown:
|
||||
home_assistant_system_shutdown:
|
||||
command_off: "/usr/sbin/poweroff"
|
||||
```
|
||||
|
||||
@ -87,7 +87,7 @@ This switch will control a local VLC media player ([Source](https://community.ho
|
||||
switch:
|
||||
platform: command_line
|
||||
switches:
|
||||
VLC:
|
||||
vlc:
|
||||
command_on: "cvlc 1.mp3 vlc://quit &"
|
||||
command_off: "pkill vlc"
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user