AdyRock / com.onvif

Homey app for ONVIF cameras
GNU General Public License v3.0
5 stars 5 forks source link

Motion on Interlogix TVB-5403 #54

Open melando opened 1 year ago

melando commented 1 year ago

Hi I have added the camera Interlogix TVB-540 and it won't detect motion. I have tried different Motion Notification types without result.

Screenshot_20230514-114511_Homey

Screenshot_20230514-114647_Homey

Log: Log ID: 2023-05-14T09:32:25.038Z App version 2.0.40

9:32:25.038: Fetching (192.168.1.22) NOW image with no Auth from: http://192.168.1.22/onvif-http/snapshot?Profile_2 9:32:25.074: SnapShot fetch result (192.168.1.22): Status: false, Message: Unauthorized, Code: 401

9:32:25.076: Fetching (192.168.1.22) NOW image with Basic Auth. From: http://192.168.1.22/onvif-http/snapshot?Profile_2 9:32:26.110: SnapShot fetch result (192.168.1.22): Status: true, Message: OK, Code: 200

9:32:26.297: Now Image Updated (192.168.1.22) 9:32:28.372: Fetching (192.168.1.22) NOW image with Basic Auth. From: http://192.168.1.22/onvif-http/snapshot?Profile_2 9:32:29.208: SnapShot fetch result (192.168.1.22): Status: true, Message: OK, Code: 200

9:32:29.437: Now Image Updated (192.168.1.22) 9:33:13.536: Fetching (192.168.1.22) NOW image with Basic Auth. From: http://192.168.1.22/onvif-http/snapshot?Profile_2 9:33:14.589: SnapShot fetch result (192.168.1.22): Status: true, Message: OK, Code: 200

9:33:14.805: Now Image Updated (192.168.1.22) 9:33:33.902: Fetching (192.168.1.22) NOW image with Basic Auth. From: http://192.168.1.22/onvif-http/snapshot?Profile_2 9:33:34.431: SnapShot fetch result (192.168.1.22): Status: true, Message: OK, Code: 200

9:33:34.591: Now Image Updated (192.168.1.22) 9:33:58.792: Fetching (192.168.1.22) NOW image with Basic Auth. From: http://192.168.1.22/onvif-http/snapshot?Profile_2 9:33:59.622: SnapShot fetch result (192.168.1.22): Status: true, Message: OK, Code: 200

AdyRock commented 1 year ago

Is the motion turned on ![Uploading Screenshot_20230514_120828_Homey.jpg…]()

melando commented 1 year ago

Yes, in Homey and also in the cameras web interface.

AdyRock commented 1 year ago

The log has no motion messages showing. Can you set the log level to Detailed Information and then restart the app. Once the app has started (about 30 seconds), Send the log.

melando commented 1 year ago

Sent :-)

melando commented 1 year ago

Log after turning motion off and on:

19:12:48.293: Switch motion detection Off (192.168.1.22) 19:12:48.299: App.unsubscribe: 192.168.1.22 19:12:48.305: App.unsubscribe: Found entry for 192.168.1.22 19:12:48.312: App.unsubscribe: Unregister entry for 192.168.1.22 19:12:48.316: Unsubscribe push event (192.168.1.22): http://192.168.1.22/onvif/Events/SubManager_2023-05-14T19:05:55Z_1 19:12:48.366: Push unsubscribe response (192.168.1.22): [ { "unsubscribeResponse": [ "" ] } ] 19:12:52.333: Switch motion detection On (192.168.1.22) 19:12:52.347:

registering Push events (192.168.1.22)

19:12:52.355: App.subscribeToCamPushEvents: 192.168.1.22 19:12:52.368: App.subscribeToCamPushEvents: Registering 192.168.1.22 19:12:52.377: Setting up Push events (192.168.1.22) on: http://192.168.1.75:9998/onvif/events/192.168.1.22 19:12:52.420: Subscribe response (192.168.1.22): 192.168.1.22 - Info: [ { "subscribeResponse": [ { "subscriptionReference": [ { "address": [ "http://192.168.1.22/onvif/Events/SubManager_2023-05-14T19:12:51Z_0" ] } ], "currentTime": [ "2023-05-14T19:12:51Z" ], "terminationTime": [ "2023-05-14T19:17:51Z" ] } ] } ] 19:12:52.435: Push renew every (192.168.1.22): 300s @ http://192.168.1.22/onvif/Events/SubManager_2023-05-14T19:12:51Z_0 19:12:52.442:

Waiting for Push events (192.168.1.22)

19:13:45.274: Sending log 19:13:46.803: Message sent: 50e11c0d-6e91-67af-e037-2d67e7b3fbcc@ady.duckdns.org

AdyRock commented 1 year ago

Well, it all looks fine, so I'm not sure why events aren't being sent. Have you tried to trigger the motion while logging is enabled like this?

melando commented 1 year ago

Yes i have tried i don't think it shows in the log...

Screenshot_20230521-115943_Homey Screenshot_20230521-125606_TeamViewer

10:58:3.914: Switch motion detection Off (Inngangsdør) 10:58:3.915: App.unsubscribe: Inngangsdør 10:58:3.918: App.unsubscribe: Found entry for 192.168.1.22 10:58:3.919: App.unsubscribe: Unregister entry for 192.168.1.22 10:58:3.922: Unsubscribe push event (192.168.1.22): http://192.168.1.22/onvif/Events/SubManager_2023-05-19T07:14:16Z_0 10:58:4.091: Push unsubscribe response (192.168.1.22): [ { "unsubscribeResponse": [ "" ] } ] 10:58:8.941: Switch motion detection On (Inngangsdør) 10:58:8.943:

registering Push events (Inngangsdør)

10:58:8.944: App.subscribeToCamPushEvents: Inngangsdør 10:58:8.946: App.subscribeToCamPushEvents: Registering 192.168.1.22 10:58:8.947: Setting up Push events (Inngangsdør) on: http://192.168.1.46:9998/onvif/events/192.168.1.22 10:58:8.970: Subscribe response (Inngangsdør): 192.168.1.22 - Info: [ { "subscribeResponse": [ { "subscriptionReference": [ { "address": [ "http://192.168.1.22/onvif/Events/SubManager_2023-05-21T10:58:06Z_0" ] } ], "currentTime": [ "2023-05-21T10:58:06Z" ], "terminationTime": [ "2023-05-21T11:03:06Z" ] } ] } ] 10:58:8.972: Push renew every (Inngangsdør): 300s @ http://192.168.1.22/onvif/Events/SubManager_2023-05-21T10:58:06Z_0 10:58:8.974:

Waiting for Push events (Inngangsdør)

melando commented 1 year ago

Screenshot_20230521-135404_Homey

The motion detection is on in the app and on the web interface for the camera. But it sais the onvif camera has turned it off.