Site updated at 2016-04-19 15:18:32 UTC
This commit is contained in:
parent
ac382b0429
commit
917d94c81f
14 changed files with 29 additions and 28 deletions
|
@ -182,18 +182,19 @@ This switch will shutdown your host immediately, there will be no confirmation.
|
|||
<h3><a class="title-link" name="control-foscam-motion-sensor" href="#control-foscam-motion-sensor"></a> Control Foscam Motion Sensor</h3>
|
||||
|
||||
<p>This switch will control the motion sensor of Foscam Webcams which Support CGI Commands (<a href="http://www.ipcamcontrol.net/files/Foscam%20IPCamera%20CGI%20User%20Guide-V1.0.4.pdf">Source</a>). This switch supports statecmd, which checks the current state of motion detection.<br />
|
||||
```yaml<br />
|
||||
# Example configuration.yaml entry<br />
|
||||
# Replace admin and password with an “Admin” priviledged Foscam user<br />
|
||||
# Replace ipaddress with the local IP address of your Foscam<br />
|
||||
switch:<br />
|
||||
platform: command_line<br />
|
||||
switches:<br />
|
||||
foscam_motion:<br />
|
||||
oncmd: ‘curl -k “https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password”’<br />
|
||||
offcmd: ‘curl -k “https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=admin&pwd=password”’<br />
|
||||
statecmd: ‘curl -k –silent “https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=password” | grep -oP “(?<=isEnable>).*?(?=</isEnable>)”’<br />
|
||||
value_template: ‘’</p>
|
||||
<code>yaml
|
||||
# Example configuration.yaml entry
|
||||
# Replace admin and password with an "Admin" priviledged Foscam user
|
||||
# Replace ipaddress with the local IP address of your Foscam
|
||||
switch:
|
||||
platform: command_line
|
||||
switches:
|
||||
foscam_motion:
|
||||
oncmd: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'
|
||||
offcmd: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=admin&pwd=password"'
|
||||
statecmd: 'curl -k --silent "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=password" | grep -oP "(?<=isEnable>).*?(?=</isEnable>)"'
|
||||
value_template: ''
|
||||
</code></p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue