# Get value from Foscam ipcamera

**URL:** <https://community.homey.app/t/get-value-from-foscam-ipcamera/16850>\
**Category:** Questions & Help\
**Created:** [August 14, 2019, 12:22pm UTC](https://community.homey.app/t/get-value-from-foscam-ipcamera/16850 "2019-08-14T12:22:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeroen\_Kokhuis](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_kokhuis/32/12592_2.png) [@Jeroen\_Kokhuis](https://community.homey.app/u/Jeroen_Kokhuis)\
**Post date:** [August 14, 2019, 12:22pm UTC](https://community.homey.app/t/get-value-from-foscam-ipcamera/16850/1 "2019-08-14T12:22:20Z")

</div>

Hello,

I recently bought a Homey Pro and I’m trying to get the same flows which I had on Openhab(Rules). But I cannot figure out how I can get the value of a xml output:

```
<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%2Fhi6745.myfoscam.org%3A88</url>
    <upnpState>0</upnpState>
    <isWifiConnected>0</isWifiConnected>
    <wifiConnectedAP></wifiConnectedAP>
    <infraLedState>0</infraLedState>
</CGI_Result>

```

I want to value of motionDetectAlarm as a trigger in a flow.  
Can anyonen help me with that?

Thanks
