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

<div class="post-metadata">

**Author:** ![Marc\_Straat](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marc_straat/32/71941_2.png) [@Marc\_Straat](https://community.homey.app/u/Marc_Straat)\
**Post date:** [July 21, 2023, 10:00am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1053 "2023-07-21T10:00:56Z")

</div>

The last log I sent to you is were I disabled ONVIF authentication on my NVR, so username password should not be needed. Still no connection to the cameras.  
Any Ideas?

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 10:45am UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1054 "2023-07-21T10:45:23Z")

</div>

> [@Adrian\_Rockall](#):
>
> The URL looks good, so it should work.  
> If you put that in a browser do you see a snapshot?

Yes, indeed. But the browser accepts the self-signed certificate while ONVIF app does not. 🥴

You should disable TLS validation in the app to accept the certificate. Possibly through an option in the connection screen.

---

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

</div>

I’m not sure what version you are using but I added the settings to disable certificate errors in version 26

```auto
  "2.0.26": {
    "en": "Set option to ignore certificate errors to allow for self-signed https connection for snapshot."
  },

```

```auto
        if (this.snapUri.indexOf('https:') == 0)
        {
            agent = new https.Agent({ rejectUnauthorized: false });
        }

```

So, I’m not sure why it’s not working. That is working on my Somfy app for local access.  
I can’t remember if you sent me the log with the failure in it?

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 12:46pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1056 "2023-07-21T12:46:22Z")

</div>

![1000029694](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/0/a0ec3ca8ac0e4af35642ee0734a67d3367eb1336.jpeg)

> Log ID: 2023-07-21T12:42:32.448Z  
> App version 2.0.30
> 
> 12:42:32.448: ==== Discovery Starting ====  
> 12:42:41.462: ==== Discovery Finished ====  
> 12:42:41.463: Discovered:   
> 12:43:9.571: Login-----  
> 12:43:9.573: --------------------------  
> 12:43:9.576: Connect to Camera 192.168.1.225:8000 - admin  
> 12:43:9.598:  
> \_request (192.168.1.225): {  
> “hostname”: “192.168.1.225”,  
> “port”: 8000,  
> “path”: “/onvif/device\_service”,  
> “agent”: false,  
> “timeout”: 15000,  
> “headers”: {  
> “Content-Type”: “application/soap+xml; charset: utf-8; action="[http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime\](http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime%5C)”",  
> “Content-Length”: 261,  
> “charset”: “utf-8”  
> },  
> “method”: “POST”  
> }  
> \<s:Envelope xmlns:s=“[http://www.w3.org/2003/05/soap-envelope](http://www.w3.org/2003/05/soap-envelope)”\>\<s:Body xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)” xmlns:xsd=“[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)”\>\</s:Body\>\</s:Envelope\>
> 
> 12:43:9.615: Request error (192.168.1.225): connect ECONNREFUSED 192.168.1.225:8000  
> Error: connect ECONNREFUSED 192.168.1.225:8000  
> at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)  
> 12:43:9.620: getSystemDateAndTime error (192.168.1.225):connect ECONNREFUSED 192.168.1.225:8000  
> Error: connect ECONNREFUSED 192.168.1.225:8000  
> at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)  
> 12:43:9.624: Connection Failed for 192.168.1.225 Port: 8000 Username: admin

---

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

</div>

OK, that’s not a certificate error. The camera is just rejecting the connection and it’s not using https at that point.

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 12:55pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1058 "2023-07-21T12:55:10Z")

</div>

Maybe that’s just it, it may require https.  
Not responding to http calls?

---

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

</div>

Maybe. The new version of the ONVIF library I use has added an option for HTTPS connections, so I will see what I can do to use 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:** [July 21, 2023, 1:05pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1060 "2023-07-21T13:05:49Z")

</div>

Could you set the log level to “Basic Information” and try to add the camera again. It should show a section for:

`9:58:15.876: Reply from { "hostname": "192.168.1.18", "port": "80", "path": "/onvif/device_service", "urn": "urn:uuid:xxxxxxxxxxx", "href": "[http://192.168.2.18:80/onvif/device_service](http://192.168.1.18/onvif/device_service)" }`

I would be interested to see if the href shows https that I can use to determine if the secure option needs to be used or mot.

Edit: Not sure why the forum is altering the preformatted text, so it will look a bit different in the log.

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 1:08pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1061 "2023-07-21T13:08:38Z")

</div>

> Log ID: 2023-07-21T13:06:56.804Z  
> App version 2.0.30
> 
> 13:6:56.804: Discovered:   
> 13:7:21.329: Connection Failed for 192.168.1.225 Port: 8000 Username: admin

---

<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:** [July 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/1062 "2023-07-21T13:09:55Z")

</div>

Hmm, could you updated to the test version?  
Maybe I changed the logging option since the release.

---

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

</div>

Actually it could be the way the forum has changed the log. Could you send the log using the button on the settings page?

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 1:16pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1064 "2023-07-21T13:16:04Z")

</div>

Sent to developer.

> Log ID: 2023-07-21T13:13:22.400Z  
> App version 2.0.41
> 
> 13:13:22.400: Discovered:   
> 13:14:7.169: Request error (192.168.1.225): connect ECONNREFUSED 192.168.1.225:8000  
> Error: connect ECONNREFUSED 192.168.1.225:8000  
> at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
> 
> 13:14:7.177: Connection Failed for 192.168.1.225 Port: 8000 Username: admin

---

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

</div>

Sorry, I don’t know what is going on as the log is missing lots of information. Could you try setting it to Detailed Information and repeat.

---

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

</div>

Ahha, I think I just twigged. It seems no cameras are being discovered, so did you add one manually?

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 1:28pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1067 "2023-07-21T13:28:41Z")

</div>

Yes, manually. No camera discovered.

> [@Adrian\_Rockall](#):
>
> [http://192.168.2.18:80/onvif/device\_service](http://192.168.2.18:80/onvif/device_service)

It may be the http call that fails and would really need https…

---

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

</div>

Is the camera on the same subnet as Homey?  
Just wondering why it’s not being discovered.

---

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

</div>

And are you sure the ONVIF port is 8000?

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 1:56pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1070 "2023-07-21T13:56:32Z")

</div>

Same LAN and subnet, yes.  
(I’m able to browse it, right?)

Reolink states ONVIF port is 8000.  
Tried a range of other ports without success.

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 2:19pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1071 "2023-07-21T14:19:42Z")

</div>

OK, Success!  
I’m so happy!

The ONVIF access (and RTSP) was DISABLED by default.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bf1b7cca1ded32172de4289af47cbd576fe2c552.png)

Just Enable RTSP under Network settings Advanced and cameras are discoverable!

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [July 21, 2023, 3:52pm UTC](https://community.homey.app/t/app-pro-support-for-onvif-compatible-cameras-release-2-0-70-test-2-0-70/28377/1072 "2023-07-21T15:52:00Z")

</div>

Really fun this, already created a set of flows. 😋

But struggeling with Reolinks AI and Person detection.  
By default it’s any motion but the RLC-510WA cameras detects Persons or Vehicles also.

So how to manage these notifications in ONVIF setup?

Notification types seems locked to ‘MOTION’.  
Do I change Motion notification to use?  
ANALYTICSSERVICE or what, and is there Event Object ID related to this?

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

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