mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Corrected code syntax (#13188)
This commit is contained in:
parent
49e617df30
commit
855ccbaeb4
@ -86,7 +86,7 @@ which is controllable through REST.
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
switch:
|
switch:
|
||||||
platform: command_line
|
- platform: command_line
|
||||||
switches:
|
switches:
|
||||||
arest_pin_four:
|
arest_pin_four:
|
||||||
command_on: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/1"
|
command_on: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/1"
|
||||||
@ -112,7 +112,7 @@ This switch will shutdown your host immediately, there will be no confirmation.
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
switch:
|
switch:
|
||||||
platform: command_line
|
- platform: command_line
|
||||||
switches:
|
switches:
|
||||||
home_assistant_system_shutdown:
|
home_assistant_system_shutdown:
|
||||||
command_off: "/usr/sbin/poweroff"
|
command_off: "/usr/sbin/poweroff"
|
||||||
@ -126,7 +126,7 @@ This switch will control a local VLC media player
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
switch:
|
switch:
|
||||||
platform: command_line
|
- platform: command_line
|
||||||
switches:
|
switches:
|
||||||
vlc:
|
vlc:
|
||||||
command_on: "cvlc 1.mp3 vlc://quit &"
|
command_on: "cvlc 1.mp3 vlc://quit &"
|
||||||
@ -143,7 +143,7 @@ which checks the current state of motion detection.
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
switch:
|
switch:
|
||||||
platform: command_line
|
- platform: command_line
|
||||||
switches:
|
switches:
|
||||||
foscam_motion:
|
foscam_motion:
|
||||||
command_on: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'
|
command_on: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user