# \[APP\]\[Pro\] Support for ONVIF compatible cameras (Release 2.0.70, Test 2.0.70)

**URL:** <https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377>\
**Category:** Apps\
**Created:** [April 14, 2020, 4:57pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377 "2020-04-14T16:57:37Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 26, 2020, 9:14am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/101 "2020-04-26T09:14:53Z")

</div>

The reply I got back from FOSCAM was:

> Hi Adrian,
> 
> Thank uo for getting in touch, unfortunately motion detection will not work through ONVIF and this is common with most manufacturer.
> 
> Usually the basics work like live viewing and recording but anything else extra like motion which is software based may not.
> 
> Kind Regards  
> Foscam UK

So it seems they do the motion detection in their app and not in the camera. I’m not sure I agree with the statement about ‘common with most manufacturer’ though but my experience is only based on a few cameras.

Luckily I picked up a ‘box damaged’ camera cheap from Amazon so I didn’t waste too much money to discover this.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [April 26, 2020, 9:18am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/102 "2020-04-26T09:18:20Z")

</div>

Ah, ok. The statement that motion is software based is not true. The camera does onboard motion detection. I use that to record streams to the sd card, and that works very well. The camera can also send an email on motion, and more fancy stuff. So it beats me why they didnt implement it in Onvif.

Anyhow, thx for your research🍻

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 26, 2020, 9:42am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/103 "2020-04-26T09:42:12Z")

</div>

> [@Gruijter](#):
>
> The camera does onboard motion detection

I can’t find a way to prove or disprove that 😉  
The only way I can access the camera is through their app (apart from snapshots) so I have no way of knowing where that processing is being done.  
I haven’t put an SD card in the camera yet so I don’t know what that unlocks but all I can do is get notifications on my phone when motion is detected but where does that come from 🤔  
If you find out anything then let me know as I would also like to make this work.

---

<div class="post-metadata">

**Author:** ![Octo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/octo/32/8498_2.png) [@Octo](https://community.homey.app/u/Octo)\
**Post date:** [April 26, 2020, 9:45am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/104 "2020-04-26T09:45:34Z")

</div>

Adrian, I installed 0.0.16. I get the same error messages as at 0.015. I sent the log. The motion detection has stopped responding since version 0.0.14, in version 0.0.13 it worked.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 26, 2020, 10:00am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/105 "2020-04-26T10:00:16Z")

</div>

OK, I will keep investigating.  
Regards motion detection, I am not seeing that being switched on in the log. There should be the message ‘###### Waiting for events ######’ coming up just after ‘Supported Events:…’ if motion is switched on.

---

<div class="post-metadata">

**Author:** ![Octo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/octo/32/8498_2.png) [@Octo](https://community.homey.app/u/Octo)\
**Post date:** [April 26, 2020, 10:06am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/106 "2020-04-26T10:06:53Z")

</div>

Adrian, you’re right. I forgot to turn it on in the app. motion detection works.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 26, 2020, 10:11am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/107 "2020-04-26T10:11:17Z")

</div>

I have found that the call to listen for events was in the adding camera section and not the general connect to camera section so it events would be enabled when adding a camera (but I think the option is switched off at that point) and also when the option is toggled. But it would not be called when the app starts up. So I that will be changed in the next update.

Can you confirm if the ‘NOW’ image is working or are both the ‘NOW’ and MOTION EVENT’ still broken?

---

<div class="post-metadata">

**Author:** ![Octo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/octo/32/8498_2.png) [@Octo](https://community.homey.app/u/Octo)\
**Post date:** [April 26, 2020, 10:17am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/108 "2020-04-26T10:17:50Z")

</div>

Motion event works but Now event does not

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 26, 2020, 10:21am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/109 "2020-04-26T10:21:06Z")

</div>

When you say ‘event’ do you mean image, as in are you seeing the images themselves?  
The reason I ask is the log only shows an error for the event image and not the now image.

---

<div class="post-metadata">

**Author:** ![Octo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/octo/32/8498_2.png) [@Octo](https://community.homey.app/u/Octo)\
**Post date:** [April 26, 2020, 10:25am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/110 "2020-04-26T10:25:32Z")

</div>

![Ton 1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/5/858eb4e334719463c650c53312cf6d0503592622.png)

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 26, 2020, 10:28am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/111 "2020-04-26T10:28:01Z")

</div>

And you say motion event works, so does that means you see an image there or just the alarm indicator activates?

---

<div class="post-metadata">

**Author:** ![Octo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/octo/32/8498_2.png) [@Octo](https://community.homey.app/u/Octo)\
**Post date:** [April 26, 2020, 10:34am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/112 "2020-04-26T10:34:00Z")

</div>

I don’t see an image

 ![Ton 2.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/3/d3adf358425583def1ce918032ba454a3b45afd3.jpeg) ![Ton 3.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/0/60e0e7b018ca1ec9bb2d45fc1f19b61ea549f613.jpeg)

---

<div class="post-metadata">

**Author:** ![Octo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/octo/32/8498_2.png) [@Octo](https://community.homey.app/u/Octo)\
**Post date:** [April 26, 2020, 11:11am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/113 "2020-04-26T11:11:08Z")

</div>

Adrian I see the choice Motion Event in Ben’s post 4 days ago. I don’t have this choice

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 26, 2020, 11:33am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/114 "2020-04-26T11:33:56Z")

</div>

I had sort of come to that conclusion 🙂  
That confirms to me that the image is not working for either method.  
I will continue to search for answers.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 27, 2020, 10:35am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/115 "2020-04-27T10:35:01Z")

</div>

There is a new test version (0.0.17) that allows the snapshot URL to be overridden in the advanced settings. If the new setting is blank then the app will use the URL that is returned from the ONVIF getSnapshotURL function. However, if this URL does not work then you can enter the full URL to one that ‘hopefully’ does work.  
If the URL requires your login credentials then you can either enter directly them as part of the URL or you can use #USERNAME# and #PASSWORD# as placeholders that are replaced with the previously defined user name and password.

@Octo maybe you can try this to see if another URL works for you.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 27, 2020, 12:46pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/116 "2020-04-27T12:46:17Z")

</div>

Another test version (0.0.18) that adds ‘Authorization’: ‘Basic …’ headers to the image fetch commands.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 27, 2020, 9:20pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/117 "2020-04-27T21:20:46Z")

</div>

Yet another test version (0.0.19) that:

- Added the Authorization’: ‘Basic …’ headers to the event image fetch commands (previous version only added it to the NOW image).
- Added an option to the advanced settings to switch Authorization html headers on / off. If you see the ‘Forbidden’ or ‘Unauthorised’ error message in the snapshot view then switch this option on.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 27, 2020, 11:27pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/118 "2020-04-27T23:27:00Z")

</div>

I have added a description / instructions for the app to the first post.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 29, 2020, 2:33pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/119 "2020-04-29T14:33:36Z")

</div>

A new test version is available (0.0.20) that adds Digest Authorization with auto detection when non, Basic, Digest headers are required.  
Hopefully this should solve some of the ‘Unauthorised’ errors when fetching the snapshots form some cameras.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [April 29, 2020, 2:59pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/120 "2020-04-29T14:59:29Z")

</div>

Hi Adrian, just to let you and everyone know that your Onvif camera app works great together with my new app for face recognition. It is pending approval in the appstore at the moment 🙂

[https://community.homey.app/t/29058](https://community.homey.app/t/29058)

![large](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/c/3c0e73e1e5828eab6f5c7cb05f8aeae6c90e55e1.jpeg)

[Previous page](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377.md?page=5)

[Next page](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377.md?page=7)
