[APP][Pro] Support for ONVIF compatible cameras (Release 2.0.41)

Sorry I haven’t been involved in the recent discussion about the Imou cameras but as I don’t have them I don’t have much to contribute. If you could both send me the start up logs of those cameras I can compare them to see if I can spot anything.
Also, it could just be down to firmware versions of the cameras as I think I have only seen the revision of one camera so far. Maybe try contacting Imou to see if there is new firmware that will fix the problems.

These are my Homey camera settings:
I can see a snapshot but the push messages about a movement are not received or understood by the Homey app.

Hi Adrian,
For of, thank you very much for your work! Really appreciated!
The firmware check gives a respons that the latest is on the camera.
Here is the log copy, but Im not sure if this is what you need.
Log ID: 2020-11-25T16:57:53.045Z
App version 1.1.18

+0:0:0.000: !!! SOAP: Error returned. Reason: Resource Unknown, Detail:
+0:0:0.011: !!! renew error: ONVIF SOAP Fault: Resource Unknown
Error: ONVIF SOAP Fault: Resource Unknown
at /lib/onvif/lib/utils.js:109:13
at Parser. (/node_modules/xml2js/lib/parser.js:304:18)
at Parser.emit (events.js:311:20)
at SAXParser.onclosetag (/node_modules/xml2js/lib/parser.js:262:26)
at emit (/node_modules/sax/lib/sax.js:624:35)
at emitNode (/node_modules/sax/lib/sax.js:629:5)
at closeTag (/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/node_modules/xml2js/lib/parser.js:5:59)
at Object.exports.parseString (/node_modules/xml2js/lib/parser.js:369:19)
at parseSOAPString (/lib/onvif/lib/utils.js:61:10)
at IncomingMessage. (/lib/onvif/lib/cam.js:304:5)
at IncomingMessage.emit (events.js:323:22)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

+0:0:0.006: !!! _eventPull renew error: 192.168.1.70 - ONVIF SOAP Fault: Resource Unknown
Error: ONVIF SOAP Fault: Resource Unknown
at /lib/onvif/lib/utils.js:109:13
at Parser. (/node_modules/xml2js/lib/parser.js:304:18)
at Parser.emit (events.js:311:20)
at SAXParser.onclosetag (/node_modules/xml2js/lib/parser.js:262:26)
at emit (/node_modules/sax/lib/sax.js:624:35)
at emitNode (/node_modules/sax/lib/sax.js:629:5)
at closeTag (/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/node_modules/xml2js/lib/parser.js:5:59)
at Object.exports.parseString (/node_modules/xml2js/lib/parser.js:369:19)
at parseSOAPString (/lib/onvif/lib/utils.js:61:10)
at IncomingMessage. (/lib/onvif/lib/cam.js:304:5)
at IncomingMessage.emit (events.js:323:22)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

+0:31:40.821: !!! SOAP: Error returned. Reason: Resource Unknown, Detail:
+0:0:0.006: !!! renew error: ONVIF SOAP Fault: Resource Unknown
Error: ONVIF SOAP Fault: Resource Unknown
at /lib/onvif/lib/utils.js:109:13
at Parser. (/node_modules/xml2js/lib/parser.js:304:18)
at Parser.emit (events.js:311:20)
at SAXParser.onclosetag (/node_modules/xml2js/lib/parser.js:262:26)
at emit (/node_modules/sax/lib/sax.js:624:35)
at emitNode (/node_modules/sax/lib/sax.js:629:5)
at closeTag (/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/node_modules/xml2js/lib/parser.js:5:59)
at Object.exports.parseString (/node_modules/xml2js/lib/parser.js:369:19)
at parseSOAPString (/lib/onvif/lib/utils.js:61:10)
at IncomingMessage. (/lib/onvif/lib/cam.js:304:5)
at IncomingMessage.emit (events.js:323:22)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

+0:0:0.003: !!! _eventPull renew error: 192.168.1.70 - ONVIF SOAP Fault: Resource Unknown
Error: ONVIF SOAP Fault: Resource Unknown
at /lib/onvif/lib/utils.js:109:13
at Parser. (/node_modules/xml2js/lib/parser.js:304:18)
at Parser.emit (events.js:311:20)
at SAXParser.onclosetag (/node_modules/xml2js/lib/parser.js:262:26)
at emit (/node_modules/sax/lib/sax.js:624:35)
at emitNode (/node_modules/sax/lib/sax.js:629:5)
at closeTag (/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/node_modules/xml2js/lib/parser.js:323:31)
at Parser.parseString (/node_modules/xml2js/lib/parser.js:5:59)
at Object.exports.parseString (/node_modules/xml2js/lib/parser.js:369:19)
at parseSOAPString (/lib/onvif/lib/utils.js:61:10)
at IncomingMessage. (/lib/onvif/lib/cam.js:304:5)
at IncomingMessage.emit (events.js:323:22)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

Thank you.

That log shows me it is failing to renew the pull events but not why.

Could you set the log level to Basic Information and then restart the app so that it captures the start-up process. Then send the log by clicking on the Send Log button.
Then switch off the motion option, clear the log, switch the motion back on and then send the log again.

Dear Adrian,
2 x log send.
Thank you.

Here it is, from ipc-g26e


But like i said, I’ve not done anything special with them, i just chose the camera i want to add, enter user and password, and connect.
That’s it.

The Imou Bullet Lite has the same problems. Everything seems to work but motion detection does not trigger and is instantly deactivated when setting up the camera.

Although it does work with the dauha app. But the app uses a different card it says when VideoMotionStart. But that does the same thing as motion detection.

Could you send me the log when set to Basic Information. If you can clear the log and then turn on motion detection for the camera in question then send the log.
The more information I get the better the chance I can see if there is something I can fix

Thank you Adrian just sent it to you :slight_smile:

Hopefully it’s usefull :pray:t2:

I have the same problem with C26E :frowning: I want to turn on / off the motion alarm using Homey. And not using their Imou application

Hmm, the log that I think is from you seems to start to turn on the events but I don’t see it registering.
Could you change the log level to Full Information and do the same again, also leave it about 30 seconds longer before sending.

Are you saying that the option in the Homey app is not turning it on or don’t you see have the option?

the option to turn on motion detection is here, but it does nothing.

Can you look in the Advanced options and try changing to prefer Pull events to see if that helps.

Also send me the logs with both options so I can see what it’s doing.

Sent you a full log Adrian. Changing to prefer pills did nothing for me unfortunately.

I can see that the pull requests are working to the point that they register and get a valid response. So it seems the camera is just not sending any events. I presume you tried to move about in front of the camera to create motion events?

Unfortunately the other logs are flooding with the heartbeat polling so I do need to stop those when logging is enabled.

pull events didn’t help either. I sent the log. Thank you very much for your help, I really appreciate it

For what i have understood, you want to…
As an example…
Homey disable Alarm notification from the imou app on your phone when you arrive home?

Am I right?

I mean, for example, to turn on or off the motion detection alarm camera using the button. I have a camera inside and I don’t want to have the motion alarm on all the time. I would like to be able to control this through Homey. Maybe it’s not even possible, I don’t know

That’s not possible.
When you turn on or off motion on your camera on homey, it only enables/disable the motion alarm on homey itself, it will not change the motion alarm on the Imou official app

1 Like

@Ricardo_Nunes is correct. The Homey app can only subscribe to notifications events. When it subscribes to the motion events it will be notified.
The Imou app will do the same.

Sorry I didn’t understand your question before but I thought you meant the button wasn’t turning on notifications in Homey.

1 Like