# \[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:** 5

<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 25, 2020, 7:23am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/81 "2020-04-25T07:23:48Z")

</div>

Adrian, I bought a new camera a Dahua DH-SD22204t-GN-W. your App found this camera in version 006 but no longer in version 010 and also not in version 011 for the last two I sent you an error report. I can’t enter a username or passwd anywhere. The Camera works with the Dahua app.

I have reinstalled version 006 and the camera is found again

in 006 the snapshot does not work because there is an incorrect SnapShot URL in the error log

---

<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 25, 2020, 7:42am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/82 "2020-04-25T07:42:11Z")

</div>

Hi @Octo  
Thanks for sending the reports. That has tested that feature for me and hopefully helped me find the cause of the problem. It seems that camera returns a null port which was causing an issue in the latest versions.

A new test version (0.0.12) is now available that should fix that.

Oops, I have just read the last bit of your message. I will guess that is also an issue with the null port so I will investigate.

---

<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 25, 2020, 7:51am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/83 "2020-04-25T07:51:43Z")

</div>

Adrian, 012 sees the camera again, an error report has been sent. good luck 🙂

---

<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 25, 2020, 8:24am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/84 "2020-04-25T08:24:41Z")

</div>

This one is not so obvious so I have created a new test version (0.0.13) that puts some extra log messages through the suspect section of the code to narrow down the problem area.  
Thanks for your patience and testing.

---

<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 25, 2020, 8:37am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/85 "2020-04-25T08:37:43Z")

</div>

Adrian 013 installed. Snapshot window now appears but no Snapshot, invalid\_content\_type. New error log sent.

I tested the URL [http://xxx.xxx.xxx.xx/onvifsnapshot/media\_service/snapshot?channel=1&subtype=0](http://xxx.xxx.xxx.xx/onvifsnapshot/media_service/snapshot?channel=1&subtype=0) in my brouser and that works after entering username and password

---

<div class="post-metadata">

**Author:** ![Ben](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ben/32/12538_2.png) [@Ben](https://community.homey.app/u/Ben)\
**Post date:** [April 25, 2020, 9:27am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/86 "2020-04-25T09:27:19Z")

</div>

I test the new version 0.0.9 and i have the same problem. i didn’t have the screen with motion event and change it to NOW nothing. Even the Has Motion i changed from yes to no and no to yes. Nothing changed.The screen Motion Event didn’t apear.

---

<div class="post-metadata">

**Author:** ![Ben](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ben/32/12538_2.png) [@Ben](https://community.homey.app/u/Ben)\
**Post date:** [April 25, 2020, 9:55am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/87 "2020-04-25T09:55:19Z")

</div>

I installed 0.0.13 Motion event screen works now but i got the message “object response” on the screen. Even the log Works again. I have send you the log.

---

<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 25, 2020, 5:52pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/88 "2020-04-25T17:52:27Z")

</div>

> [@Octo](#):
>
> I tested the URL [http://xxx.xxx.xxx.xx/onvifsnapshot/media\_service/snapshot?channel=1&subtype=0](http://xxx.xxx.xxx.xx/onvifsnapshot/media_service/snapshot?channel=1&subtype=0) in my brouser and that works after entering username and password

Could you try entering in your browser:  
[http://xxx.xxx.xxx.xx/onvifsnapshot/media\_service/snapshot?channel=1&subtype=0&usr=admin&pwd=YOUR\_PASSWORD](http://xxx.xxx.xxx.xx/onvifsnapshot/media_service/snapshot?channel=1&subtype=0&usr=admin&pwd=YOUR_PASSWORD)  
Obviously replace xx… with the camera IP and YOUR\_PASSWORD with the password for the camera.  
Normally the call to getSnapshotURI returns the full URL but it appears on your camera it is not including the user name and password.  
If it works in the browser with the username and password on the end of the URL then I can try and detect when it is missing and add it to the returned string.

---

<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 25, 2020, 6:02pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/89 "2020-04-25T18:02:42Z")

</div>

> [@Ben](#):
>
> I have send you the log

The log shows (assuming I am looking at the correct log) your camera is dropping off the network a lot so I’m not sure if that is causing the problems.

I have now ordered a Hikvision camera to try so hopefully that will help get to the bottom of the issues.

---

<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 25, 2020, 6:06pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/90 "2020-04-25T18:06:56Z")

</div>

tested and t 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 25, 2020, 6:18pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/91 "2020-04-25T18:18:13Z")

</div>

> [@Octo](#):
>
> ested and t works

That’s good. I will try to detect if the login details are missing from the snapshot URL and append them when required.  
Life would be much easier if all the cameras were consistent 🙂

---

<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 25, 2020, 6:22pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/92 "2020-04-25T18:22:02Z")

</div>

It is already difficult to choose the right camera. Onvif on Chinese cameras is also strange

in the Brouser on my PC the link works but on my Ipad I still have to enter username and password, this in Siri and also in Google Chrome

This URL works immediately in Siri on the Ipad  
[http://xxx.xxx.xxx.xx/cgi-bin/snapshot.cgi?chn=0&u=username&p=paswd](http://xxx.xxx.xxx.xx/cgi-bin/snapshot.cgi?chn=0&u=username&p=paswd)

not always, I don’t understand anymore 🤪 🙃

in google crome on the Ipad the link works, in siri a username and passwd must be entered

---

<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 25, 2020, 7:27pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/93 "2020-04-25T19:27:24Z")

</div>

OK, new test version (0.0.14) available. This adds the user name and password on the end of the URI if it was not found.  
Hopefully it won’t break it for others as I have found that my three types of camera come back with various combinations of pwd or password and usr or user.  
I have also added the full URL object to the log as it contains other information on my cameras, nothng useful, but maybe yours has something I can more reliably detect to know it requires the credentials appended.

---

<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 25, 2020, 7:39pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/94 "2020-04-25T19:39:29Z")

</div>

Adrian, update to 0.0.14 snapshot scean in the app is gone, log sent.  
app reinstalled still no snapshot screan, log sent again

---

<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, 1:34am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/95 "2020-04-26T01:34:12Z")

</div>

New test version (0.0.15).  
Improved error reporting and fixed a typo that might have been the problem you experienced.

---

<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, 7:47am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/96 "2020-04-26T07:47:22Z")

</div>

Adrian, updated to 0.0.15 snapshot screen is back. error message unauthorized. app and error log is empty. reinstalled the app, error message remains. an error log that I have forwarded to you. what I find strange is that since testing this camera I have to login to the homey forum again and again.

---

<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, 8:40am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/97 "2020-04-26T08:40:15Z")

</div>

Hmm, Interesting! The getSnapshotURL function is returning:

> 2020-04-26T07:36:30.827Z: Snap URL: {  
> “uri”: “[http://192.168.192.24/onvifsnapshot/media\_service/snapshot?channel=1&subtype=0](http://192.168.192.24/onvifsnapshot/media_service/snapshot?channel=1&subtype=0)”,  
> “invalidAfterConnect”: true,  
> “invalidAfterReboot”: true,  
> “timeout”: “PT0S”  
> }

I found this online for another camera:

> Everfocus has some other peculiar behavior with their GetUri responses. They return with both invalidAfterConnect and invalidAfterReboot flags set to true, which ONVIF says should always be set to false. This means that you need to call GetUri for every snapshot you request, even though it returns the same uri. If you don’t you get a 404.

So there maybe something in that which explains the problem. I will try changing the mechanism to get the URI just before each snapshot to see if that works.

---

<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, 8:44am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/98 "2020-04-26T08:44:48Z")

</div>

Great and good luck 🙂

---

<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, 8:56am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/99 "2020-04-26T08:56:12Z")

</div>

OK a new test version is available. I’m not sure if it will fix the issue as the camera is not complying to the standards so the fix is also ‘non-standard’ 😉

---

<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:07am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/100 "2020-04-26T09:07:24Z")

</div>

> [@Adrian\_Rockall](#):
>
> FOSCAM FI9900EP V5 (does not support motion detection via ONVIF)

Hi @Adrian_Rockall do you know why motion detection does not work? I have this camera and it is a real bummer the motion trigger doesnt work on onvif.

[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=4)

[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=6)
