[APP][Pro] Support for ONVIF compatible cameras (Release 2.0.60, Test 2.0.60)

which version?
I got an update to 0.0.39 this morning but in this version there nothing is changed, there is no option in homey to check for app updates (as far as i know).

But do you understand what i mean?
When i press a camera i get to see a picture, but this picture is not an actual snapshot og the camera form the moment i open the camera. It can be a snapshot of hours/days ago when last motion was detected.
When i select pulldown and i choose snapshot an actual snapshot of that moment is shown.

I would like that if i choose a camera that always the actual snapshot is shown, not a motion snapshot from the past.

1 Like

I have uploaded version 0.0.40 to test. So go to the normal download page but then add test/ to the end of the URL e.g. https://homey.app/en-gb/app/com.onvif/ONVIF-Camera/test/

I started of with that my motion sensor is not working and I guess it just not supported. So I changed my plan and installed my own motion sensor instead. I have a question @Adrian_Rockall about the snapshot function. My problem is that I want to send a picture when we get new visitors ringing the doorbell which would work nice if our door was in a clear view from the camera. It is sadly not. Meaning that I have to snap a picture like 2 meters before they reach the bell. I have a flow that triggers from the motion sensor running the “Update now snapshot”. Then when they ring the bell I want to send the picture. But running Send “Now” will trigger a new snapshot so the one I “saved” is gone. Feels like Now and Snapshot should be two different tags. So one where you can save stuff like the motion sensor and then Now which is always the latest. Or am I missing something?

Sorry it’s taken so long @Ludvig but I have been gong over and over the code to try to find a reason it would crash the way you say. Sadly I have not been successful with that. If possible could you send a Homey diagnostics log from the app settings wheel as soon after the crash as possible?

Hopefully the new test version will solve your flow problem though.
I have added a new flow action card, “Update Motion snapshot” that simulates motion being detected. So you can add this to the Then section of your flow that detects motion from your other sensor.
I have also added a flow condition card, “Motion image is ready within
”, that you can add to the doorbell pressed flow in the And section to make sure the new image is ready in the Motion Event image tag before the send action card.

Mm my take is that the camera say it has support for motion which is has. However not over Onvif. So when your app try to enable it i guess it sets your app in some kind of mode however since it’s not really support you end up in a loop or something. I saw in some earlier screenshot you had a manual disable. I guess that option could be good to just avoid confusion. But no biggi.

Just tried the motion snapshot and that works perfect. With my own motion sensor I can then achieve what I want. Also a good thing is that notifications in homey is a bit buggy. Once you looked at them they are gone. At least I don’t know where to find them again. So it’s super simple to press wrong then the image is gone. But now I can just trigger the flow again and get the image back.

Great work and thanks for the fix

1 Like

It’s great the updated is working for you. If you want to see the image that was captured then you can open the camera and view the Motion Event image by selecting it in the drop list on the image screen.

If you can send me any diagnostics of the crash I would be grateful as I don’t like to think there is a way the app can crash even if it is caused by an unsupported camera feature. It should either work or just ignore it. I did receive a log from the app at the same time as you posted the first message and if that is yours then it all looks like it should work.

A yes. Thats why the update was great. Since before the image was lost when checking now image. Now there are several ways seeing it.

Yes that was my initial log. That’s however before the crash. The problem I have is that when enabling it the log function in onvif stops working and the device gets timeouts and the image just spinning. Have to remove the device after I try this. So normally the homey app don’t crash. Just the device and onvif app. Don’t know how I can collect something usfull for you. Maybe I can run your app from console in dev mode and check for outputs?

Ah, yes, it’s a pain for you if you have to remove the device so I understand if you just want to leave it. But if you don’t mind then once it fails, go to the ONVIF app, touch the wheel in the top right corner and then touch on Create Diagnostics Report. Most of the time that just sends an empty report to me but I have had some useful information from that when the app has crashed. I appreciate your help and patients.

Its the least I can do. I’m away in a trip now but will try it out when I’m back home.

1 Like

Hi Adrian, I am back here to report. After today update the cameras stopped saving the motion screenshots. It gets the alert but no new motion pictures. My last picture from 11:42, update 12:02. After then no picture saved. Thanks for your efforts!!

Thanks for letting me know. I have pushed a test version with a fix and requested it is published.

It is back. You are amazing and fast. I confirm that your app also work with Milesight 360 panoramatic camera :+1:

1 Like

@Adrian_Rockall
Stupid question: is there any way to stream the camera in the Homey app?

Not a stupid question at all, but unfortunately the answer is no. Homey has no support for video streams and I doubt it ever will as it probably doesn’t have the processing power to provide that.

What camera could someone advice for outdoor with url/jpg support and onvif motion detection. In the price range around 40-50euro

Could this be an option

I have made a simple app to be used with this app. It Uploads the image token captured to a website. Example if you want to store motion shots online. My usecase is that I have added a Aqara motion sensor next to my main entrence. When its triggers I call Onvif to capture a motion image. I then upload this to a my server where I have a simple gallery to view the history. I also push it to the phone if somebody presses the Ring Button on my door but since Homey is not storing them I wanted a gallery of images. Hope this adds some value to people that think like me: Image Poster App för Homey | Homey

1 Like

Hey, great app! I’m using v0.1.2 and it works fine with my Dahua DHI-XVR camera.

I have a question : I use another app together with ONVIF app caller PiP, it sends a snapshot to my TV if the motion is captured by the camera. I got 2 channels on my camera and in the app I can only view channel 1 for a snapshot, so if channel 2 camera captures motion, I can still only see channel 1 snapshot in the app and PiP app also pushes only channel 1 snapshot.

Anyway to be able to switch between channels?

Thanks, I’m glad you find it useful.
I’m a bit confused about the channels though as normally they are just different resolutions for the same live video stream and the snapshot is a still image served by the camera upon request from the main stream. Are you saying that your camera sees different views on each channel, as in it has two lenses?

Yes. I live in the apartment and I get 2 camera feeds from the buttom 2 floors when someone calls my apartment so I can grant access, plus I installed 2 more cameras, one in front of my door and second one by the elevators. So I have 4 channels in total available as 1 ip camera, if that makes any sense. What I want to achieve is only use 2 channels in front of my door and elevators and have motions snapshot be accurate relative to each other.

My front door cam is channel 1 and elevator cam is channel 2. When elevator cam (ch2) captures motion, I receive a snapshot from front door cam (ch1).

Here is a screenshot to make it easier to understand

I see now, the Dahua DHI-XVR is a camera recorder box. I was thinking it was a standalone camera. I will investigate further too see what I can do.
Also. could you turn on the logging feature of the ONVIF app, then restart the app so it captures the connection traffic and then send the log to me. Hopefully I can see if the system sends anything back to tell me about the channels.