Site updated at 2016-03-12 19:38:21 UTC
This commit is contained in:
parent
f1e3204aa7
commit
9690c7de8e
106 changed files with 2221 additions and 1195 deletions
|
@ -203,6 +203,22 @@ This switch will shutdown your host immediately, there will be no confirmation.
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue