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

<div class="post-metadata">

**Author:** ![mhemil](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mhemil/32/93782_2.png) [@mhemil](https://community.homey.app/u/mhemil)\
**Post date:** [December 12, 2023, 11:44am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1315 "2023-12-12T11:44:31Z")

</div>

The log is continuously updated with all sorts of information from my two cameras. One error message is “response.currentTime.getTime” is not a function.

---

<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:** [December 12, 2023, 11:58am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1316 "2023-12-12T11:58:04Z")

</div>

Could you send the log so I can analyse what is going on.

---

<div class="post-metadata">

**Author:** ![mhemil](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mhemil/32/93782_2.png) [@mhemil](https://community.homey.app/u/mhemil)\
**Post date:** [December 12, 2023, 12:03pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1317 "2023-12-12T12:03:31Z")

</div>

I’m clicking send log in the app, but obviously, you don’t receive it.

---

<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:** [December 12, 2023, 12:33pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1318 "2023-12-12T12:33:50Z")

</div>

I have now got a log. I can see the error so will need to investigate that.  
However, I can see motion events coming in, but there are things in the format that I haven’t seen before, so when I get home I will take a closer look at everything to try and figure out what is going 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:** [December 12, 2023, 11:14pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1319 "2023-12-12T23:14:15Z")

</div>

So, it seems your camera sends `response.CurrentTime` instead of `response.currentTime` and java is case sensitive. I have published a new test version to cope with that.

Also, it looks like you need to set the ‘ONVIF Motion Notification to use’ to 'MOTIONALARM (State) in the device advance settings and then it should detected the motion.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 13, 2023, 6:31am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1320 "2023-12-13T06:31:20Z")

</div>

> [@Adrian\_Rockall](#):
>
> java

JavaScript 🫣

---

<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:** [December 13, 2023, 6:52am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1321 "2023-12-13T06:52:54Z")

</div>

Lazy typing 😁

---

<div class="post-metadata">

**Author:** ![mhemil](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mhemil/32/93782_2.png) [@mhemil](https://community.homey.app/u/mhemil)\
**Post date:** [December 13, 2023, 6:59am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1322 "2023-12-13T06:59:29Z")

</div>

Yes!! It works. Amazing. Thank you so much👍🏻

---

<div class="post-metadata">

**Author:** ![mhemil](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mhemil/32/93782_2.png) [@mhemil](https://community.homey.app/u/mhemil)\
**Post date:** [December 13, 2023, 6:43pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1323 "2023-12-13T18:43:40Z")

</div>

What’s the difference between “sensor” and “camera” under Motion Trigger → Device Class ?

---

<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:** [December 13, 2023, 7:32pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1324 "2023-12-13T19:32:58Z")

</div>

It’s for things like dashboards and Alexa, etc. Sometimes they will only accept one or the other class. Originally the app class was Camera, but to be able to use the motion detection in some external applications it needed to be a Sensor.  
So, it has no real affect to Homey but allows flexibility when integrating into to other ecosystems.

---

<div class="post-metadata">

**Author:** ![Astrapowerrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/astrapowerrr/32/78916_2.png) [@Astrapowerrr](https://community.homey.app/u/Astrapowerrr)\
**Post date:** [December 13, 2023, 7:36pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1325 "2023-12-13T19:36:16Z")

</div>

when i want to use the analytics setup from my dahua camera setup.  
like, human detection or vehicle. do i need to setup in my nvr also?  
do ii think correct that the setting inside my nvr copies to what signals are caught by your app?

hope i explained myself correct.

---

<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:** [December 13, 2023, 7:50pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1326 "2023-12-13T19:50:22Z")

</div>

I’m not sure. If you have connected directly to the camera then I don’t think so, but if you have connected to the NVR then I guess so.

---

<div class="post-metadata">

**Author:** ![Astrapowerrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/astrapowerrr/32/78916_2.png) [@Astrapowerrr](https://community.homey.app/u/Astrapowerrr)\
**Post date:** [December 13, 2023, 7:52pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1327 "2023-12-13T19:52:08Z")

</div>

I’ll go investigate tomorrow if it’s not raining whole day.  
to be continued

EDIT:  
after some testing i get my notification on smd(smart motion detection)human in the IMOU app.  
but cant get it in homey to detect motion.  
tried all 4 options motion, analyticservice,motionalarm and digitalinput.

what to do? to get the detection in homey working like on my IMOU app?

---

<div class="post-metadata">

**Author:** ![Tim\_de\_Nieuwe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tim_de_nieuwe/32/79604_2.png) [@Tim\_de\_Nieuwe](https://community.homey.app/u/Tim_de_Nieuwe)\
**Post date:** [December 20, 2023, 10:05am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1328 "2023-12-20T10:05:01Z")

</div>

Hi All,

I have connected my ONVIF Reolink camera but i got the following error message from Homey ERR\_INVALID\_PROTOCOL. Does anyone know how to solve this?

I also connected the same camera to my NAS and this works fine. So this bassicly means that the camera is sending a stream which can be seen from another device (in this case the security software on my NAS). So credentials and port settings are correct.

The camera is a Reolink video doorbell connected via LAN PoE

---

<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:** [December 20, 2023, 1:04pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1329 "2023-12-20T13:04:31Z")

</div>

Can you open the app settings page, select the Diagnostics tab and set the option to Basic Information and then get the error to occur. Then send the log so I can see where the error occurs.

---

<div class="post-metadata">

**Author:** ![Astrapowerrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/astrapowerrr/32/78916_2.png) [@Astrapowerrr](https://community.homey.app/u/Astrapowerrr)\
**Post date:** [December 20, 2023, 10:11pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1330 "2023-12-20T22:11:28Z")

</div>

Hi Adrian can you help me also with my setup? See my above post. I hope you can help me.

---

<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:** [December 20, 2023, 11:18pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1331 "2023-12-20T23:18:03Z")

</div>

Sorry, I seemed to have overlooked your post.  
Have you enabled the motion detection in the Homey app (button on the first tab)?

---

<div class="post-metadata">

**Author:** ![Astrapowerrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/astrapowerrr/32/78916_2.png) [@Astrapowerrr](https://community.homey.app/u/Astrapowerrr)\
**Post date:** [December 21, 2023, 12:40pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1332 "2023-12-21T12:40:29Z")

</div>

no problem. and for the motion detection, yes i have it enabled.

its just after i switched the xvr to smd human so AI homey wont detect motion.  
if i dont use the AI funtion the xvr makes me nuts after detection motion from sunshades etc

was a pain in the $%^to get that all working but i think it was the right way.  
now integrate in homey… hahaha

---

<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:** [December 21, 2023, 1:09pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1333 "2023-12-21T13:09:54Z")

</div>

Ok, so could you open the app settings page, select the Diagnostics Log tab and set the option to Basic Information. Then trigger motion on the camera and then send the log. I will look to see if any events are picked up.

---

<div class="post-metadata">

**Author:** ![Astrapowerrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/astrapowerrr/32/78916_2.png) [@Astrapowerrr](https://community.homey.app/u/Astrapowerrr)\
**Post date:** [December 24, 2023, 9:44am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1334 "2023-12-24T09:44:27Z")

</div>

Hi Adrian. A bit late reaction but here it is. I send you the diagnostic log with basic information, and triggered the motion.  
I hope you see any info you can you use.

Greets Marco

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

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