Thanks…
Here is the openhab item
Number nCam1Alarm "Motion Detected [(%d)]" { http="<http://192.168.0.xxx:port/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=xxxxxxx&pwd=xxxxxxxx:4000:REGEX(.*?<motionDetectAlarm>(.*?)</motionDetectAlarm>.*)]" }
This is the result from the call when the http command is executed from a web browser.
<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%2Fik5078.myfoscam.org%3A89</url>
<upnpState>1</upnpState>
<isWifiConnected>0</isWifiConnected>
<wifiConnectedAP></wifiConnectedAP>
<infraLedState>1</infraLedState>
</CGI_Result>
This worked in openhab 1.x…when motion was detected and the value changed to 2.
this rule never fires:
rule “cam 1 motion detect”
when
Item nCam1Alarm changed
then
…
Thanks in advance.
Kim