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

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 3, 2020, 1:16pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/223 "2020-08-03T13:16:05Z")

</div>

Of course I can.

Yes, basically I have a door with a display on the inside that shows all 4 channels with a recorder and hdd inside of it. Full name is DHI-XVR4104C-S2

I send the log via homey app :

Log ID: 2020-08-03T13:07:58.755Z  
App version 0.1.2

---

<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:** [August 3, 2020, 2:01pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/224 "2020-08-03T14:01:36Z")

</div>

The log shows some promise for possibly selecting the channel that the snapshot comes from. Unfortunately the event information I log doesn’t show the source of the motion.

So I will have a look later to see if I can add more diagnostics to the event capture to see if any other information is presented. If I can then I will publish a test version for you to use to capture that.

Then I will need to work out if I need to make each channel a separate device in Homey or somehow incorporate all the channels into one. Each way has pros and cons so I need to weigh them up.

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 3, 2020, 2:23pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/225 "2020-08-03T14:23:41Z")

</div>

Sounds great, thank you. Let me know if you need anything else on my end.

---

<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:** [August 4, 2020, 5:24am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/226 "2020-08-04T05:24:25Z")

</div>

Why dont you link those two cams to Homey directly? You will have the views you need.

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 4, 2020, 7:50am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/227 "2020-08-04T07:50:46Z")

</div>

Because I can’t. They work as a single IP camera.

---

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

</div>

I have published a test version where you can select the channel number in the advanced settings page of the device. Can you try that and tell me if changing the channel number does actually select a different cammer in the Now image?

> **[ONVIF Camera](https://homey.app/en-gb/app/com.onvif/ONVIF-Camera/test/)**
>
> Use an ONVIF compatible camera so Homey can improve your home security

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 4, 2020, 10:37pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/229 "2020-08-04T22:37:09Z")

</div>

It works!  
Tried all 4 channels and they all work for snapshots.  
I guess this is just an experiment. Would it be possible to set it up so I get a push with a snapshot from correct channel?

---

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

</div>

Yes, it’s just an experiment to see if it works, so now I know that it is possible.  
Do you currently get motion events in the app from all the cameras or just one?

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 5, 2020, 8:34am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/231 "2020-08-05T08:34:28Z")

</div>

I will test motion events from other channels after work and will let you know.

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 5, 2020, 10:41am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/232 "2020-08-05T10:41:41Z")

</div>

Tested it a bit.

If I set snapshot to “Now” I get a snapshot from a correct channel depending on which one I set in the advanced settings. However if I set snapshot to “Motion event” then no matter what channel I set in the advanced settings, I only get a snapshot from the main 1st channel.

Edit: scratch that, “Motion event” behaves the same as “Now”.  
So if I set any channel, that’s the channel I get a snapshot of no matter which channel had the motion alarm triggered.

---

<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:** [August 5, 2020, 11:06am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/233 "2020-08-05T11:06:38Z")

</div>

> [@Sierra](#):
>
> Edit: scratch that, “Motion event” behaves the same as “Now”.  
> So if I set any channel, that’s the channel I get a snapshot of no matter which channel had the motion alarm triggered.

That is what I expected as far as the captured image goes.  
What I would like to know is if ALL the cameras trigger a motion event?

So could you walk past camera 1 and check the motion alarm triggers. If it does, wait for it to become inactive again and then walk past camera 2, etc, etc, etc 😉

If all the cameras do trigger an event then I will publish another version tonight that logs the full message from the push notification to see if the channel is specified somewhere. If it is then I can extract it and act accordingly. If it’s not then I need to think harder.

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 5, 2020, 11:22am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/234 "2020-08-05T11:22:20Z")

</div>

Just walked in front of all the cameras and it seems like they all trigger motion alarm.

---

<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:** [August 5, 2020, 11:28am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/235 "2020-08-05T11:28:38Z")

</div>

Excellent. Now I just need to find a way to determine which one 😃  
If I can’t find any way to determine which camera triggered the motion then I might have to setup an image for each and capture from them all. However that might put too much load on Homey so it’s not ideal and I would think you would prefer to know which camera triggered.

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 5, 2020, 11:44am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/236 "2020-08-05T11:44:50Z")

</div>

Great. Let me know when you want me to test it.  
It would be nice to receive a snapshot from a correct camera for the motion evens though, yes. Just see what you can do 🙂 I’m glad you are helping at all 😃

---

<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:** [August 5, 2020, 8:49pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/237 "2020-08-05T20:49:54Z")

</div>

I have published a new test version. This will log extra data from the push notification to see if the channel number is included. Once you have updated can you turn on logging in the ONVIF app configuration page and then trigger motion events from the cameras. Once you have some data in the log could you send it to me please.

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 5, 2020, 9:51pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/238 "2020-08-05T21:51:22Z")

</div>

I tried to trigger all 4 channels.

Her you go: 7a90db4e-2f0e-40e0-922a-63cd254b93f3

---

<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:** [August 5, 2020, 10:20pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/239 "2020-08-05T22:20:26Z")

</div>

Looks promising. I can see what appears to be (sort of) the channel number in one of the properties.  
“source”: “00000” or “00100” or “00200” or “00300”. So I can work with that. I will get on to it tomorrow evening.

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 5, 2020, 10:32pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/240 "2020-08-05T22:32:15Z")

</div>

Awesome! I’m gonna hit the bed myself.  
Let me know if more tests are needed.

---

<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:** [August 8, 2020, 5:21pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/241 "2020-08-08T17:21:01Z")

</div>

@Sierra OK, new test version is available. As I don’t have a way to test this myself I might have broken the push events completely and the pairing might fail. It has taken a fair bit of recoding to implement and a few different failed methods before reaching this stage.

In theory you should see an extra stage when you add a device where you can select each channel. So you get to select the IP then login and then select the channels.  
So you will need to delete the existing camera from Homey and add again. At the end of the process you should have a camera device for each camera.  
I would be interested to see the logs from the add process and events just to make sure things are going as expected.

---

<div class="post-metadata">

**Author:** ![Sierra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sierra/32/22284_2.png) [@Sierra](https://community.homey.app/u/Sierra)\
**Post date:** [August 8, 2020, 5:48pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/242 "2020-08-08T17:48:44Z")

</div>

Hey!

I just downloaded the new test version.  
Prior to doing that I made sure to delete the camera and previous version of the app just in case.

After I launched the app, it found my ip camera, then I clicked next and was met with a login/password screen, and then on the next screen where I supposedly had to pick the channels, it said choose devices you want to add with no options, it was just blank and I couldn’t click anything except next, and then it just added to my devices as usual.

Log ID: 2020-08-08T17:42:45.310Z  
App version 1.0.0

 ![Screenshot_20200808-204256](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a831b67832d0fa57ed5ab98a253aba1a68faa29e.jpeg) ![Screenshot_20200808-204304](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/c/cc31589b8fdb49f3ec3e9138fe20c8d98856623a.jpeg) ![Screenshot_20200808-204324](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/b/4bf3fabaaffeabf09365b0d0075c2ac38687ba78.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=11)

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