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

<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:** [May 4, 2020, 4:53pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/142 "2020-05-04T16:53:28Z")

</div>

Hi Adrian,

Thanks for your mail. Yes , Hikvision works for me now. Thanks except my Ebell doorbell doesn’t working. Your app recognized the ip address but when i installed the camera i got the message “socket hang up”

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [May 4, 2020, 8:50pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/143 "2020-05-04T20:50:48Z")

</div>

Hi Adrian, came back with my experience. Is there any reason the app shoots motion detections like every 3 or 4 minutes, despite the Dahua app shows me only real deteced motions? I had to disable motion flow as it was constantly giving the notofication 😀

 ![Screenshot_2020-05-04-22-53-11-230_app.homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/016b648154f115e356b4c7ebfba895eb4dc4ba93.jpeg)

---

<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:** [May 4, 2020, 9:17pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/144 "2020-05-04T21:17:38Z")

</div>

Could you enable the logging, restart the app and send it to me after few ‘false’ detections have occurred.  
By restarting the app it shows me the event types, etc. that are reported and the notification method.

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [May 4, 2020, 9:22pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/145 "2020-05-04T21:22:10Z")

</div>

Done 😉 thank 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:** [May 4, 2020, 10:11pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/146 "2020-05-04T22:11:08Z")

</div>

Ok, I can see the cameras do not support pullpoints so they are using the new push events, which is still work in progress  
The camera also supports lots of event types and at the moment the push notifications are not telling me what generated the event so any one of them is treated as motion.  
As luck would have it I received my HikVision camera today which has exactly the same issues.

I have tracked it down to the subscribe request not setting the required filters and response types. However the protocol specification is extremely difficult to read as it is spread over many documents (some ONVIF and some OASIS) plus they introduce terms without any explanation.

So I will fix it, as I don’t like to be defeated, but it might take some time.

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [May 4, 2020, 10:49pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/147 "2020-05-04T22:49:24Z")

</div>

Good luck Adrian. Where can I send you some beers? I didnt find any paypal.

---

<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:** [May 5, 2020, 5:44am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/148 "2020-05-05T05:44:23Z")

</div>

> [@Daniel\_S](#):
>
> Good luck Adrian

Thanks, I think I will need it 😉

> [@Daniel\_S](#):
>
> Where can I send you some beers? I didnt find any paypal

Very kind of you but do this for ‘fun’ 🤔 🤪 so just the gesture makes it worthwhile.

---

<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:** [May 5, 2020, 2:37pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/149 "2020-05-05T14:37:14Z")

</div>

Hi Adrian, I think i have a another problem. When i move before the camera then has movealarm blinking red. By me it doesn’t work. Even the movement event time is from three days ago. See screenshot

 ![Screenshot_20200505-162858_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/e/3ecc76fb28b1dd44cb1d520a655e01fff93b84ab.jpeg)

---

<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:** [May 5, 2020, 2:53pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/150 "2020-05-05T14:53:07Z")

</div>

Is motion enabled on the screen to the left?

---

<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:** [May 5, 2020, 2:58pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/151 "2020-05-05T14:58:55Z")

</div>

You mean this screen. Yes

 ![Screenshot_20200505-165700_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/3/e3bc71ac20111e56af5e960a1af9d15faf6584d7.jpeg)

---

<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:** [May 5, 2020, 3:18pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/152 "2020-05-05T15:18:59Z")

</div>

If you switch it off and back on does it start working again?  
I have a feeling the camera is using the new Push events which I am working on at the moment.  
One of the issues is the call back is not reestablished if there is a loss of connection to the camera. There are a few other issues as well that I am gettings to grips with. So hopefully won’t be too long for a fix if it is what I suspect.

---

<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:** [May 5, 2020, 3:33pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/153 "2020-05-05T15:33:46Z")

</div>

Hi. When i switch it on and off it doesn’t working

---

<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:** [May 5, 2020, 3:34pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/154 "2020-05-05T15:34:52Z")

</div>

I will wat. Thanks

---

<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:** [May 6, 2020, 12:47am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/155 "2020-05-06T00:47:31Z")

</div>

New test version (0.0.23) with updated Push event code. Hopefully this should be fully working now.

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [May 6, 2020, 5:48am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/156 "2020-05-06T05:48:58Z")

</div>

Man, you are enthusiast, you worked until late night! I will give it a test and let you know.👍

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [May 6, 2020, 8:02am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/157 "2020-05-06T08:02:05Z")

</div>

Wow man, now it works as it should. Will be testing for some time, but is seems ok now.  
I am telling you, give us the paypal button and i want to send you some beers on me. I know in Czech you would have more beers than in the UK but you deserve some pints 😉 🍺🍻

---

<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:** [May 6, 2020, 8:14am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/158 "2020-05-06T08:14:16Z")

</div>

> [@Daniel\_S](#):
>
> you worked until late night! I

I find it difficult to sleep if I have a problem to solve as it just mulls over in my mind 🤪  
Plus I only get the evenings and weekends to play as I have to do my day job.

Hopefully, this version should behave properly with push events. I eventually figured out that I was sending the correct subscribe message and the reason for not getting anything back was the way Athom implemented the callbacks. They only pass through JSON data and the ONVIF protocol uses XML. So I have now setup a separate listener on a different port to process the push message. That means I can get information about the event so I know what action need to be taken, e.g. is it a motion event and is it turning on or off.  
Also, having the new HikVision camera I can see that some ‘motion’ messages come in as ‘IsInside’ instead of ‘IsMotion’ depending on how the camera is setup. I now accept these as valid motion events. I have a feeling there might be some more such as line crossing and possibly face detected but I haven’t managed to capture those yet to see what is actually sent. So there might be another update at some point to include these.

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [May 6, 2020, 8:17am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/159 "2020-05-06T08:17:54Z")

</div>

Cool, many thanks for your siccesfull efforts so far. It came to my mind if its possible to implement motion mark on the tile, like standard motion detectors have.

 ![Screenshot_2020-05-06-10-12-18-557_app.homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f0f43b08ddc305f0a291b6e808fc7a105315060d.jpeg)  
I can now remove the motion sensors outdoor. They give false triggers in daylight anyways.

---

<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:** [May 6, 2020, 8:48am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/160 "2020-05-06T08:48:05Z")

</div>

> [@Daniel\_S](#):
>
> mplement motion mark on the tile, like standard motion detectors have

Now you mention it, I’m surprised they are not there as I used the standard motion capability. I will look into that.

---

<div class="post-metadata">

**Author:** ![Daniel\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_s/32/24881_2.png) [@Daniel\_S](https://community.homey.app/u/Daniel_S)\
**Post date:** [May 6, 2020, 9:08am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/161 "2020-05-06T09:08:07Z")

</div>

Thanks, I double checked it to be sure. it doesnt work.

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

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