Skip to content

Commit 4ebe77c

Browse files
ctaloifabaff
authored andcommitted
Revised on, off and state parameters (home-assistant#1827)
Updated on, of and state parameters to reflect [docs](https://home-assistant.io/components/switch.command_line/)
1 parent a47b93b commit 4ebe77c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/_cookbook/foscam_away_mode_PTZ.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ switch:
2525
switches:
2626
#Switch for Foscam Motion Detection
2727
foscam_motion:
28-
oncmd: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'
29-
offcmd: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=admin&pwd=password"'
30-
statecmd: 'curl -k --silent "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=password" | grep -oP "(?<=isEnable>).*?(?=</isEnable>)"'
28+
command_on: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'
29+
command_off: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=admin&pwd=password"'
30+
command_state: 'curl -k --silent "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=password" | grep -oP "(?<=isEnable>).*?(?=</isEnable>)"'
3131
value_template: '{% raw %}{{ value == "1" }}{% endraw %}'
3232
```
3333

0 commit comments

Comments
 (0)