Д
Size: a a a
Д
ДЦ
l
M
core-ssh:~# /usr/bin/curl -s -X GET 'http://192.168.15.21:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=mike&pwd=PASS' | grep -o -e '<motionDetectAlarm>\d</motionDetectAlarm>'
<motionDetectAlarm>1</motionDetectAlarm>
core-ssh:~#
binary_sensor:
- platform: command_line
name: Камера на этаже PIR
command: /usr/bin/curl -s -X GET 'http://192.168.15.21:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=mike&pwd=PASS' | grep -o -e '<motionDetectAlarm>\d</motionDetectAlarm>'
device_class: motion
payload_on: '<motionDetectAlarm>2</motionDetectAlarm>'
payload_off: '<motionDetectAlarm>1</motionDetectAlarm>'
command_timeout: 20
ДЦ
ДЦ
core-ssh:~# /usr/bin/curl -s -X GET 'http://192.168.15.21:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=mike&pwd=PASS' | grep -o -e '<motionDetectAlarm>\d</motionDetectAlarm>'
<motionDetectAlarm>1</motionDetectAlarm>
core-ssh:~#
binary_sensor:
- platform: command_line
name: Камера на этаже PIR
command: /usr/bin/curl -s -X GET 'http://192.168.15.21:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=mike&pwd=PASS' | grep -o -e '<motionDetectAlarm>\d</motionDetectAlarm>'
device_class: motion
payload_on: '<motionDetectAlarm>2</motionDetectAlarm>'
payload_off: '<motionDetectAlarm>1</motionDetectAlarm>'
command_timeout: 20
ДЦ
M
<CGI_Result>
<result>0</result>
<IOAlarm>0</IOAlarm>
<motionDetectAlarm>1</motionDetectAlarm>
<soundAlarm>1</soundAlarm>
<record>0</record>
<sdState>0</sdState>
<sdFreeSpace>0k</sdFreeSpace>
<sdTotalSpace>0k</sdTotalSpace>
<ntpState>1</ntpState>
<ddnsState>0</ddnsState>
<url>http%3A%2F%.myfoscam.org%3A88</url>
<upnpState>0</upnpState>
<isWifiConnected>1</isWifiConnected>
<wifiConnectedAP>ofnet</wifiConnectedAP>
<infraLedState>0</infraLedState>
</CGI_Result>
l
ДЦ
M
ДЦ
<CGI_Result>
<result>0</result>
<IOAlarm>0</IOAlarm>
<motionDetectAlarm>1</motionDetectAlarm>
<soundAlarm>1</soundAlarm>
<record>0</record>
<sdState>0</sdState>
<sdFreeSpace>0k</sdFreeSpace>
<sdTotalSpace>0k</sdTotalSpace>
<ntpState>1</ntpState>
<ddnsState>0</ddnsState>
<url>http%3A%2F%.myfoscam.org%3A88</url>
<upnpState>0</upnpState>
<isWifiConnected>1</isWifiConnected>
<wifiConnectedAP>ofnet</wifiConnectedAP>
<infraLedState>0</infraLedState>
</CGI_Result>
M
ДЦ
M
ДЦ
l
l
l