toddaustin07 / Edge-ONVIF-Driver

Supports motion detection and streaming from ONVIF-compliant IP cameras
Apache License 2.0
17 stars 2 forks source link

Smart Events (line crossing, intrusion etc) #2

Closed scottjjr closed 1 year ago

scottjjr commented 2 years ago

Hi, this is neat stuff many thanks for this!

I'd like to set up some routines based on smart events as motion is too all over the show for me. Will things like Line Crossing and Intrusion Detection be coming soon?

toddaustin07 commented 2 years ago

Hi there. Thanks for leaving the comment.

I haven't really looked into those things as of yet. I don't have cameras myself that have those features, so would be dependent on others for a lot of experimentation and testing. I'd also want to avoid building things that are brand-specific.

Take a look at this document that lays out the supported features by ONVIF profile: https://www.onvif.org/wp-content/uploads/2022/04/onvif-profile-feature-overview.pdf

Profile T has motion region events and Profile M has a line crossing counter. Do you know if those are what you are looking for? Otherwise it's possible that events that you are referring to are already being sent as part of the general event support and we simply need to look for them and act on them.

If you are willing to help me figure this out, I'm happy to work on it with you. You'd need the CLI to run logs and have the time to run many iterations of drivers until we got it right...

toddaustin07 commented 2 years ago

Just FYI, I'm working on line detection now. Hope to have it available in the next week or so.

toddaustin07 commented 1 year ago

Hi - if you are still interested, I have line detection and tamper implemented in a test driver on an alternate channel here: https://bestow-regional.api.smartthings.com/invite/qWjB96yW9lyR

joakimbergmark commented 1 year ago

Hi Todd,Thanks! Will be happy to test//JoakimSent from my iPhoneOn 12 Nov 2022, at 20:15, Todd Austin @.***> wrote: Hi - if you are still interested, I have line detection and tamper implemented in a test driver on an alternate channel here: https://bestow-regional.api.smartthings.com/invite/qWjB96yW9lyR

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

scottjjr commented 1 year ago

Hi - if you are still interested, I have line detection and tamper implemented in a test driver on an alternate channel here: https://bestow-regional.api.smartthings.com/invite/qWjB96yW9lyR

Brilliant will have a look - many thanks!

scottjjr commented 1 year ago

Hmmm so I have a general problem, the camera configured ok but then seems to become un-reachable after a few minutes. I cannot refresh it as it says unresponsive but the camera is definitively there and still on the same IP. Is there some debugging info somewhere I can use to see what’s going on?

toddaustin07 commented 1 year ago

Are you able to install the SmartThings CLI? If you have a windows machine on your LAN, it's pretty easy to do. Here is the install file.

Once you get that installed, open a command prompt window, navigate to the right directory, then make sure it is working with this command

smartthings devices

It will probably open a web page for you to authorize access to SmartThings. Once you complete that (needed only the first time you run the CLI) return to the command prompt window and you should see a list of all your devices.

With that working, you can fire up logging for the ONVIF driver:

smartthings edge:drivers:logcat

You'll be prompted for your hub IP address and the driver you want to monitor.

Once that is running, you can tap the refresh button in the app for the camera device, and you should see a bunch of activity. Post that back here and we can see what's going on.

scottjjr commented 1 year ago

Hi, as below.

It worked for about 10 minutes then stopped. When trying to refresh this happens.

Thanks.

2022-11-18T22:22:14.123254151+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler capability 2022-11-18T22:22:14.190678151+00:00 INFO ONVIF Video Camera V1.3 <Device: 0bb04db4-e68e-4fb3-8859-fafed052fbe5 (Garage Camera)> received command: {"args":{},"capability":"partyvoice23922.refresh","command":"push","component":"info","positional_args":{}} 2022-11-18T22:22:14.256780818+00:00 TRACE ONVIF Video Camera V1.3 Found CapabilityCommandDispatcher handler in onvifDriver 2022-11-18T22:22:14.272638818+00:00 INFO ONVIF Video Camera V1.3 Refresh requested 2022-11-18T22:22:14.302650818+00:00 INFO ONVIF Video Camera V1.3 Starting Device Initialization routine for Garage Camera 2022-11-18T22:22:14.423683485+00:00 INFO ONVIF Video Camera V1.3 <Device: 0bb04db4-e68e-4fb3-8859-fafed052fbe5 (Garage Camera)> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n<HTML>\n<HEAD>\n<style>\ntable, td {\n border: 1px solid black;\n border-collapse: collapse;\n font-size: 11px;\n padding: 3px;\n}\n</style>\n</HEAD>\n<BODY>\n<table>\n<tr><td>IP addr: 10.1.1.9</td></tr>\n<tr><td>Name: IPC-T281H-MU</td></tr>\n<tr><td>Hardware: IPC-T281H-MU</td></tr>\n<tr><td>Profile: Streaming</td></tr>\n<tr><td>Profile: G</td></tr>\n<tr><td>Profile: T</td></tr>\n<tr><td>urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0</td></tr>\n</table>\n</BODY>\n</HTML>\n"}} 2022-11-18T22:22:14.531814818+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetSystemDateAndTime request to http://10.1.1.9/onvif/device_service 2022-11-18T22:22:14.677526818+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 401 Unauthorized 2022-11-18T22:22:14.693040485+00:00 DEBUG ONVIF Video Camera V1.3 auth_record: 2022-11-18T22:22:14.698569818+00:00 ERROR ONVIF Video Camera V1.3 Unexpected condition: HTTP 401 returned without WWW-Authenticate header 2022-11-18T22:22:14.715374485+00:00 ERROR ONVIF Video Camera V1.3 Failed to get date/time from http://10.1.1.9/onvif/device_service (Garage Camera) 2022-11-18T22:22:14.732950818+00:00 ERROR ONVIF Video Camera V1.3 Failed to initialize device Garage Camera 2022-11-18T22:22:14.746011485+00:00 INFO ONVIF Video Camera V1.3 <Device: 0bb04db4-e68e-4fb3-8859-fafed052fbe5 (Garage Camera)> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Not responding"}} 2022-11-18T22:22:14.779817818+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled

toddaustin07 commented 1 year ago

Hi - thanks for posting your log. However to really see what could be happening, I'm going to need you to capture a log when you press the Refresh button, so I can see how your camera is being initialized. The fact that it works, and then stops working after 10 minutes makes me suspect that it may have something to do with motion event subscriptions, which renew every 10 minutes. So you'll need to let logging run at least that long after the refresh.

scottjjr commented 1 year ago

Hi, that was the logs after pushing refresh.

are you meaning I remove, add logging, then re-add the camera, and leave logging running for a while, and push refresh after I notice it’s stopped working?

toddaustin07 commented 1 year ago

Strangely, when I read this on my laptop, the log text is cut off, but if I read it from my phone, I can see the rest. Whenever you post the log data, be sure to precede it with the 3 back-ticks (```) and then end it with 3 back-ticks (```). This will ensure proper formatting.

So what I see from your log is that your camera isn't responding according to spec for HTTP digest authentication. It is returning an invalid Authorization header so that the driver can't get authorized to access the camera.

What kind of camera is this? Have you gone through all of its settings options and made sure that ONVIF is enabled? For some cameras, this is mandatory and the setting can be hard to find. Hikvision cameras, for example, even have a separate userid and password you have to configure specifically for the ONVIF interface.

One other thing you might try is a freeware app called ONVIF Device Manager. It would be interesting to see if it has any success accessing your camera either.

scottjjr commented 1 year ago

I had put the log in a code block, formating likely a result of copy/paste from CMD windows output.

Camera is a HILOOK (so Hikvision) IPC-T281H-MU.

The response is the logs is the same as the response I get in Smartthings history, expect is formated in HTML. At the start it did work as there was a entry with a lot more information, but after a while it just responds with the above.

The struggle here is it does work, and then stops working.

Unsure how the auth/tokens are handled but I suspect if you're storing and reusing then the token with no reauth mechanism, it could be expiring after ~10 min, causing 401s from that point on. There is a setting for 'timeout' on the camera which could be triggering this (see below). Note when I tried this out the first time I got the same failure after ~10 min, so this isn't new to this update.

image

More info below.

ONVIF is enabled with digest, as is HTTP. RSTP is not enabled with digest. image

image

image

Also ONVIF Device Manager appears to work fine image

scottjjr commented 1 year ago

Re-read instructions and see you explicity say to enable RSTP digest. Appears I can register fine without this set, so if it switches to rstp that it could be the issue.

Have enabled this now., although the error in the logs is from the HTTP call and I'm also having issues subscribing now. Will keep tinkering, thanks for your help.

scottjjr commented 1 year ago

Captured events from the initial connect and subscribe through to subscription renewal. You can see after initial subscription that it says it'll wait 10 min to resubscribe, and then when it tries it fails with a 401. Since then no updates have come through.

The RSTP digest did not help unfortunately.

image

image

When trying to refresh after this failure, I get this error, so it's unrecoverable after ~10 minutes. image

toddaustin07 commented 1 year ago

You let me know if your patience is getting thin! I’m happy to try and figure this out with you but it may take a fair amount of back and forth and multiple logs. Since some logs may display your private data, you might want to switch over to using a private thread back on the SmartThings community.

What I need you to do is delete the camera device and the run another device discovery while keeping logging going. Configure your authentication and other needed Settings then tap Refresh. This will show me the initial transactions with the camera and allow me to confirm what type of authorization is being set up (there are two types). That may help me figure out why authorization is failing later on.

You may be on to something, that a nonce or some other authorization element may be expiring.

scottjjr commented 1 year ago

Hi, as below. Doesn't contain the password and is on private network so am OK with the content.

''' ? Enter hub IP address with optionally appended port number: 10.1.1.4 ──────────────────────────────────────────────────────────────────

Driver Id Name

────────────────────────────────────────────────────────────────── 1 a3f99eee-5802-4edd-888d-1fac080bc02e ONVIF Video Camera V1.3 ────────────────────────────────────────────────────────────────── ? Select a driver. all connecting... connected 2022-11-25T05:15:24.386779954+00:00 TRACE ONVIF Video Camera V1.3 Setup driver onvifDriver with lifecycle handlers: DeviceLifecycleDispatcher: onvifDriver default_handlers: added: infoChanged: doConfigure: init: driverSwitched: removed: deleted: child_dispatchers:

2022-11-25T05:15:24.393352906+00:00 TRACE ONVIF Video Camera V1.3 Setup driver onvifDriver with Capability handlers: CapabilityCommandDispatcher: onvifDriver default_handlers: videoStream: startStream stopStream partyvoice23922.motionevents2: setSwitch switchOn switchOff partyvoice23922.refresh: push child_dispatchers:

2022-11-25T05:15:24.398593191+00:00 DEBUG ONVIF Video Camera V1.3 ONVIF Driver V1.3 Start 2022-11-25T05:15:24.417885499+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler environment_info 2022-11-25T05:15:24.425301205+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler environment_info 2022-11-25T05:15:24.430499470+00:00 DEBUG ONVIF Video Camera V1.3 Z-Wave hub node ID environment changed. 2022-11-25T05:15:24.467091423+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler discovery 2022-11-25T05:15:24.477809780+00:00 DEBUG ONVIF Video Camera V1.3 Discovery handler invoked 2022-11-25T05:15:24.487562987+00:00 INFO ONVIF Video Camera V1.3 Starting Discovery cycle #1 2022-11-25T05:15:24.654048855+00:00 DEBUG ONVIF Video Camera V1.3 Discovery response from: 10.1.1.9 2022-11-25T05:15:24.719488225+00:00 DEBUG ONVIF Video Camera V1.3 ProbeMatch table: 0x11b7fb0 2022-11-25T05:15:24.725042334+00:00 DEBUG ONVIF Video Camera V1.3 MetadataVersion 10 2022-11-25T05:15:24.730199912+00:00 DEBUG ONVIF Video Camera V1.3 EndpointReference table: 0x11b8000 2022-11-25T05:15:24.735431193+00:00 DEBUG ONVIF Video Camera V1.3 Address urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0 2022-11-25T05:15:24.740511732+00:00 DEBUG ONVIF Video Camera V1.3 XAddrs http://10.1.1.9/onvif/device_service http://[fd77:cc49:1093:3b70:aeb9:2fff:fe7c:ed0]/onvif/device_service 2022-11-25T05:15:24.746255602+00:00 DEBUG ONVIF Video Camera V1.3 Types dn:NetworkVideoTransmitter tds:Device 2022-11-25T05:15:24.751712663+00:00 DEBUG ONVIF Video Camera V1.3 Scopes onvif://www.onvif.org/type/video_encoder onvif://www.onvif.org/Profile/Streaming onvif://www.onvif.org/Profile/G onvif://www.onvif.org/Profile/T onvif://www.onvif.org/type/audio_encoder onvif://www.onvif.org/MAC/ac:b9:2f:7c:0e:d0 onvif://www.onvif.org/hardware/IPC-T281H-MU onvif://www.onvif.org/name/IPC-T281H-MU onvif://www.onvif.org/location/ 2022-11-25T05:15:24.758180228+00:00 INFO ONVIF Video Camera V1.3 Creating discovered IP Camera found at 10.1.1.9 2022-11-25T05:15:24.763428184+00:00 INFO ONVIF Video Camera V1.3 device_network_id = urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0 2022-11-25T05:15:24.786492377+00:00 DEBUG ONVIF Video Camera V1.3 Discovery response from: 10.1.1.9 2022-11-25T05:15:24.825263420+00:00 DEBUG ONVIF Video Camera V1.3 ProbeMatch table: 0x11cb798 2022-11-25T05:15:24.830661117+00:00 DEBUG ONVIF Video Camera V1.3 MetadataVersion 10 2022-11-25T05:15:24.835928750+00:00 DEBUG ONVIF Video Camera V1.3 EndpointReference table: 0x11cb7e8 2022-11-25T05:15:24.865015620+00:00 DEBUG ONVIF Video Camera V1.3 Address urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0 2022-11-25T05:15:24.870071146+00:00 DEBUG ONVIF Video Camera V1.3 XAddrs http://10.1.1.9/onvif/device_service http://[fd77:cc49:1093:3b70:aeb9:2fff:fe7c:ed0]/onvif/device_service 2022-11-25T05:15:24.875301760+00:00 DEBUG ONVIF Video Camera V1.3 Types dn:NetworkVideoTransmitter tds:Device 2022-11-25T05:15:24.880561389+00:00 DEBUG ONVIF Video Camera V1.3 Scopes onvif://www.onvif.org/type/video_encoder onvif://www.onvif.org/Profile/Streaming onvif://www.onvif.org/Profile/G onvif://www.onvif.org/Profile/T onvif://www.onvif.org/type/audio_encoder onvif://www.onvif.org/MAC/ac:b9:2f:7c:0e:d0 onvif://www.onvif.org/hardware/IPC-T281H-MU onvif://www.onvif.org/name/IPC-T281H-MU onvif://www.onvif.org/location/ 2022-11-25T05:15:24.886641427+00:00 DEBUG ONVIF Video Camera V1.3 Discovered device was already known 2022-11-25T05:15:26.984166333+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler device_lifecycle 2022-11-25T05:15:27.091847146+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> received lifecycle event: added 2022-11-25T05:15:27.144844632+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler device_lifecycle 2022-11-25T05:15:27.153938510+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> received lifecycle event: doConfigure 2022-11-25T05:15:27.180993364+00:00 TRACE ONVIF Video Camera V1.3 Found DeviceLifecycleDispatcher handler in onvifDriver 2022-11-25T05:15:27.186616841+00:00 INFO ONVIF Video Camera V1.3 ADDED handler: <46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> successfully added; device_network_id = urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0 2022-11-25T05:15:27.215852118+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"motion","capability_id":"motionSensor","component_id":"main","state":{"value":"inactive"}} 2022-11-25T05:15:27.238381043+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"motionSwitch","capability_id":"partyvoice23922.motionevents2","component_id":"main","state":{"value":"Off"}} 2022-11-25T05:15:27.286408712+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"linecross","capability_id":"partyvoice23922.linecross","component_id":"line","state":{"value":"inactive"}} 2022-11-25T05:15:27.327447221+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"tamper","capability_id":"tamperAlert","component_id":"tamper","state":{"value":"clear"}} 2022-11-25T05:15:27.363259785+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":" "}} 2022-11-25T05:15:27.391516906+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Not configured"}} 2022-11-25T05:15:27.411887086+00:00 DEBUG ONVIF Video Camera V1.3 ADDED handler exiting for IPCam #1 (configure!) 2022-11-25T05:15:27.420864573+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:15:27.432064503+00:00 TRACE ONVIF Video Camera V1.3 Found DeviceLifecycleDispatcher handler in onvifDriver 2022-11-25T05:15:27.437607273+00:00 DEBUG ONVIF Video Camera V1.3 INIT handler for: <urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0 (IPCam #1 (configure!))> 2022-11-25T05:15:27.450336635+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"linecross","capability_id":"partyvoice23922.linecross","component_id":"line","state":{"value":"inactive"}} 2022-11-25T05:15:27.466995627+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:15:27.479481533+00:00 TRACE ONVIF Video Camera V1.3 Found DeviceLifecycleDispatcher handler in onvifDriver 2022-11-25T05:15:27.485128355+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:15:27.505681293+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:15:27.518312606+00:00 INFO ONVIF Video Camera V1.3 Starting Device Initialization routine for IPCam #1 (configure!) 2022-11-25T05:15:27.524554725+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n

\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
\n\n\n"}} 2022-11-25T05:15:27.551707628+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetSystemDateAndTime request to http://10.1.1.9/onvif/device_service 2022-11-25T05:15:27.620097139+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:15:27.683570194+00:00 INFO ONVIF Video Camera V1.3 Hub UTC datetime: 11/25/2022 5:15:27 2022-11-25T05:15:27.689003909+00:00 INFO ONVIF Video Camera V1.3 IP cam UTC datetime: 11/25/2022 6:15:27 2022-11-25T05:15:27.694202841+00:00 WARN ONVIF Video Camera V1.3 Date/Time not synchronized with http://10.1.1.9/onvif/device_service (IPCam #1 (configure!)) 2022-11-25T05:15:27.700150480+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Responding"}} 2022-11-25T05:15:27.725426445+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:15:27 UTC
Last refresh cam: 11/25/2022 6:15:27 UTC
\n\n\n"}} 2022-11-25T05:15:27.750000392+00:00 WARN ONVIF Video Camera V1.3 Userid/Password not configured: IPCam #1 (configure!) 2022-11-25T05:15:27.755303376+00:00 ERROR ONVIF Video Camera V1.3 Failed to initialize device IPCam #1 (configure!) 2022-11-25T05:15:27.761292035+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Not responding"}} 2022-11-25T05:15:27.787687226+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:15:27.798887490+00:00 DEBUG ONVIF Video Camera V1.3 driver device thread event handled 2022-11-25T05:15:36.648885948+00:00 INFO ONVIF Video Camera V1.3 Starting Discovery cycle #2 2022-11-25T05:15:37.025767628+00:00 DEBUG ONVIF Video Camera V1.3 Discovery response from: 10.1.1.9 2022-11-25T05:15:37.112776110+00:00 DEBUG ONVIF Video Camera V1.3 ProbeMatch table: 0x1244830 2022-11-25T05:15:37.138112105+00:00 DEBUG ONVIF Video Camera V1.3 MetadataVersion 10 2022-11-25T05:15:37.151841300+00:00 DEBUG ONVIF Video Camera V1.3 EndpointReference table: 0x1244880 2022-11-25T05:15:37.157288022+00:00 DEBUG ONVIF Video Camera V1.3 Address urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0 2022-11-25T05:15:37.162458606+00:00 DEBUG ONVIF Video Camera V1.3 XAddrs http://10.1.1.9/onvif/device_service http://[fd77:cc49:1093:3b70:aeb9:2fff:fe7c:ed0]/onvif/device_service 2022-11-25T05:15:37.175121267+00:00 DEBUG ONVIF Video Camera V1.3 Types dn:NetworkVideoTransmitter tds:Device 2022-11-25T05:15:37.180258501+00:00 DEBUG ONVIF Video Camera V1.3 Scopes onvif://www.onvif.org/type/video_encoder onvif://www.onvif.org/Profile/Streaming onvif://www.onvif.org/Profile/G onvif://www.onvif.org/Profile/T onvif://www.onvif.org/type/audio_encoder onvif://www.onvif.org/MAC/ac:b9:2f:7c:0e:d0 onvif://www.onvif.org/hardware/IPC-T281H-MU onvif://www.onvif.org/name/IPC-T281H-MU onvif://www.onvif.org/location/ 2022-11-25T05:15:37.187169288+00:00 DEBUG ONVIF Video Camera V1.3 Discovered device was already known 2022-11-25T05:15:37.206003034+00:00 DEBUG ONVIF Video Camera V1.3 Discovery response from: 10.1.1.9 2022-11-25T05:15:37.290478584+00:00 DEBUG ONVIF Video Camera V1.3 ProbeMatch table: 0x11fc078 2022-11-25T05:15:37.297669177+00:00 DEBUG ONVIF Video Camera V1.3 MetadataVersion 10 2022-11-25T05:15:37.310641660+00:00 DEBUG ONVIF Video Camera V1.3 EndpointReference table: 0x11fd468 2022-11-25T05:15:37.316043693+00:00 DEBUG ONVIF Video Camera V1.3 Address urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0 2022-11-25T05:15:37.321051863+00:00 DEBUG ONVIF Video Camera V1.3 XAddrs http://10.1.1.9/onvif/device_service http://[fd77:cc49:1093:3b70:aeb9:2fff:fe7c:ed0]/onvif/device_service 2022-11-25T05:15:37.343579788+00:00 DEBUG ONVIF Video Camera V1.3 Types dn:NetworkVideoTransmitter tds:Device 2022-11-25T05:15:37.349172916+00:00 DEBUG ONVIF Video Camera V1.3 Scopes onvif://www.onvif.org/type/video_encoder onvif://www.onvif.org/Profile/Streaming onvif://www.onvif.org/Profile/G onvif://www.onvif.org/Profile/T onvif://www.onvif.org/type/audio_encoder onvif://www.onvif.org/MAC/ac:b9:2f:7c:0e:d0 onvif://www.onvif.org/hardware/IPC-T281H-MU onvif://www.onvif.org/name/IPC-T281H-MU onvif://www.onvif.org/location/ 2022-11-25T05:15:37.355239281+00:00 DEBUG ONVIF Video Camera V1.3 Discovered device was already known 2022-11-25T05:15:40.122713661+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler discovery 2022-11-25T05:15:49.022692430+00:00 INFO ONVIF Video Camera V1.3 Exiting discovery 2022-11-25T05:15:49.028766132+00:00 DEBUG ONVIF Video Camera V1.3 discovery device thread event handled 2022-11-25T05:15:49.788465792+00:00 DEBUG ONVIF Video Camera V1.3 driver device thread event handled 2022-11-25T05:15:49.795943529+00:00 INFO ONVIF Video Camera V1.3 Starting Device Initialization routine for IPCam #1 (configure!) 2022-11-25T05:15:49.862448765+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
\n\n\n"}} 2022-11-25T05:15:49.882799936+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetSystemDateAndTime request to http://10.1.1.9/onvif/device_service 2022-11-25T05:15:49.952018528+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:15:49.994060205+00:00 INFO ONVIF Video Camera V1.3 Hub UTC datetime: 11/25/2022 5:15:49 2022-11-25T05:15:49.999553950+00:00 INFO ONVIF Video Camera V1.3 IP cam UTC datetime: 11/25/2022 6:15:49 2022-11-25T05:15:50.004665838+00:00 WARN ONVIF Video Camera V1.3 Date/Time not synchronized with http://10.1.1.9/onvif/device_service (IPCam #1 (configure!)) 2022-11-25T05:15:50.010365020+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Responding"}} 2022-11-25T05:15:50.034579121+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:15:49 UTC
Last refresh cam: 11/25/2022 6:15:49 UTC
\n\n\n"}} 2022-11-25T05:15:50.077587948+00:00 WARN ONVIF Video Camera V1.3 Userid/Password not configured: IPCam #1 (configure!) 2022-11-25T05:15:50.085252112+00:00 ERROR ONVIF Video Camera V1.3 Failed to initialize device IPCam #1 (configure!) 2022-11-25T05:15:50.092900934+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Not responding"}} 2022-11-25T05:15:50.125143381+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:15:50.132822885+00:00 DEBUG ONVIF Video Camera V1.3 driver device thread event handled 2022-11-25T05:16:02.629688200+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler device_lifecycle 2022-11-25T05:16:02.642157098+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> received lifecycle event: infoChanged 2022-11-25T05:16:02.650528281+00:00 TRACE ONVIF Video Camera V1.3 Found DeviceLifecycleDispatcher handler in onvifDriver 2022-11-25T05:16:02.655828930+00:00 DEBUG ONVIF Video Camera V1.3 INFOCHANGED handler; event= infoChanged 2022-11-25T05:16:02.660853441+00:00 INFO ONVIF Video Camera V1.3 UserID updated to admin 2022-11-25T05:16:02.666107734+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:16:10.142855242+00:00 DEBUG ONVIF Video Camera V1.3 driver device thread event handled 2022-11-25T05:16:10.150954956+00:00 INFO ONVIF Video Camera V1.3 Starting Device Initialization routine for IPCam #1 (configure!) 2022-11-25T05:16:10.162710164+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
\n\n\n"}} 2022-11-25T05:16:10.187502221+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetSystemDateAndTime request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:10.280099830+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:10.323474506+00:00 INFO ONVIF Video Camera V1.3 Hub UTC datetime: 11/25/2022 5:16:10 2022-11-25T05:16:10.365147666+00:00 INFO ONVIF Video Camera V1.3 IP cam UTC datetime: 11/25/2022 6:16:10 2022-11-25T05:16:10.370310913+00:00 WARN ONVIF Video Camera V1.3 Date/Time not synchronized with http://10.1.1.9/onvif/device_service (IPCam #1 (configure!)) 2022-11-25T05:16:10.376215864+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Responding"}} 2022-11-25T05:16:10.403771301+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:16:10 UTC
Last refresh cam: 11/25/2022 6:16:10 UTC
\n\n\n"}} 2022-11-25T05:16:10.422270213+00:00 WARN ONVIF Video Camera V1.3 Userid/Password not configured: IPCam #1 (configure!) 2022-11-25T05:16:10.429741280+00:00 ERROR ONVIF Video Camera V1.3 Failed to initialize device IPCam #1 (configure!) 2022-11-25T05:16:10.435576863+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Not responding"}} 2022-11-25T05:16:10.459523830+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:16:10.465990395+00:00 DEBUG ONVIF Video Camera V1.3 driver device thread event handled 2022-11-25T05:16:25.223243006+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler device_lifecycle 2022-11-25T05:16:25.235718241+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> received lifecycle event: infoChanged 2022-11-25T05:16:25.243130945+00:00 TRACE ONVIF Video Camera V1.3 Found DeviceLifecycleDispatcher handler in onvifDriver 2022-11-25T05:16:25.248229493+00:00 DEBUG ONVIF Video Camera V1.3 INFOCHANGED handler; event= infoChanged 2022-11-25T05:16:25.263396740+00:00 INFO ONVIF Video Camera V1.3 Password updated 2022-11-25T05:16:25.269264339+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Tap Refresh to connect"}} 2022-11-25T05:16:25.287236320+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:16:27.469749699+00:00 DEBUG ONVIF Video Camera V1.3 driver device thread event handled 2022-11-25T05:16:27.477876760+00:00 INFO ONVIF Video Camera V1.3 Starting Device Initialization routine for IPCam #1 (configure!) 2022-11-25T05:16:27.484032170+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
\n\n\n"}} 2022-11-25T05:16:27.563594931+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetSystemDateAndTime request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:27.627298100+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:27.679087315+00:00 INFO ONVIF Video Camera V1.3 Hub UTC datetime: 11/25/2022 5:16:27 2022-11-25T05:16:27.684714794+00:00 INFO ONVIF Video Camera V1.3 IP cam UTC datetime: 11/25/2022 6:16:27 2022-11-25T05:16:27.689897384+00:00 WARN ONVIF Video Camera V1.3 Date/Time not synchronized with http://10.1.1.9/onvif/device_service (IPCam #1 (configure!)) 2022-11-25T05:16:27.697189028+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Responding"}} 2022-11-25T05:16:27.732714449+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:16:27 UTC
Last refresh cam: 11/25/2022 6:16:27 UTC
\n\n\n"}} 2022-11-25T05:16:27.791744949+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetScopes request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:27.852651388+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 401 Unauthorized 2022-11-25T05:16:27.868764440+00:00 DEBUG ONVIF Video Camera V1.3 auth_record: Digest qop="auth", realm="IP Camera(G7415)", nonce="313132623a62303031353335613a87d86e0d3cf65f69738c696c5ab800b4", stale="FALSE" 2022-11-25T05:16:27.874150799+00:00 DEBUG ONVIF Video Camera V1.3 Authorization record: 2022-11-25T05:16:27.879191985+00:00 DEBUG ONVIF Video Camera V1.3 nonce: 313132623a62303031353335613a87d86e0d3cf65f69738c696c5ab800b4 2022-11-25T05:16:27.884418930+00:00 DEBUG ONVIF Video Camera V1.3 type: Digest 2022-11-25T05:16:27.889460116+00:00 DEBUG ONVIF Video Camera V1.3 stale: FALSE 2022-11-25T05:16:27.894678391+00:00 DEBUG ONVIF Video Camera V1.3 realm: IP Camera(G7415) 2022-11-25T05:16:27.900405920+00:00 DEBUG ONVIF Video Camera V1.3 qop: auth 2022-11-25T05:16:27.927786937+00:00 DEBUG ONVIF Video Camera V1.3 auth_header: Digest username="admin", realm="IP Camera(G7415)", nonce="313132623a62303031353335613a87d86e0d3cf65f69738c696c5ab800b4", uri="/onvif/device_service", response="4aa6fe5662e9d410b41a813db34a164d", qop=auth, cnonce="35044e2d", nc=00000001 2022-11-25T05:16:27.935272011+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetScopes request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:28.015799588+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:28.099087211+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetDeviceInformation request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:28.233883242+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:28.267451017+00:00 DEBUG ONVIF Video Camera V1.3 SerialNumber IPC-T281H-MU20210919AAWRG74158161 2022-11-25T05:16:28.272738326+00:00 DEBUG ONVIF Video Camera V1.3 Model IPC-T281H-MU 2022-11-25T05:16:28.277796521+00:00 DEBUG ONVIF Video Camera V1.3 HardwareId 88 2022-11-25T05:16:28.282909076+00:00 DEBUG ONVIF Video Camera V1.3 FirmwareVersion V5.7.1 build 220610 2022-11-25T05:16:28.287980944+00:00 DEBUG ONVIF Video Camera V1.3 Manufacturer HIKVISION 2022-11-25T05:16:28.295599751+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:16:27 UTC
Last refresh cam: 11/25/2022 6:16:27 UTC
SerialNumber: IPC-T281H-MU20210919AAWRG74158161
Model: IPC-T281H-MU
HardwareId: 88
FirmwareVersion: V5.7.1 build 220610
Manufacturer: HIKVISION
\n\n\n"}} 2022-11-25T05:16:28.336727305+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetCapabilities request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:28.415432304+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:28.666628506+00:00 DEBUG ONVIF Video Camera V1.3 Events section of Capabilities response: 2022-11-25T05:16:28.672379047+00:00 DEBUG ONVIF Video Camera V1.3 XAddr http://10.1.1.9/onvif/Events 2022-11-25T05:16:28.677505609+00:00 DEBUG ONVIF Video Camera V1.3 WSSubscriptionPolicySupport true 2022-11-25T05:16:28.682646178+00:00 DEBUG ONVIF Video Camera V1.3 WSPausableSubscriptionManagerInterfaceSupport false 2022-11-25T05:16:28.687770405+00:00 DEBUG ONVIF Video Camera V1.3 WSPullPointSupport true 2022-11-25T05:16:28.713596312+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetProfiles request to http://10.1.1.9/onvif/Media 2022-11-25T05:16:28.846163562+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:29.389564461+00:00 INFO ONVIF Video Camera V1.3 Using profile name=subStream, token=Profile_2 2022-11-25T05:16:29.394991506+00:00 INFO ONVIF Video Camera V1.3 Resolution: 1280w x 720h 2022-11-25T05:16:29.401212949+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:16:27 UTC
Last refresh cam: 11/25/2022 6:16:27 UTC
SerialNumber: IPC-T281H-MU20210919AAWRG74158161
Model: IPC-T281H-MU
HardwareId: 88
FirmwareVersion: V5.7.1 build 220610
Manufacturer: HIKVISION
Resolution: 1280w x 720h
\n\n\n"}} 2022-11-25T05:16:29.474554935+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetStreamUri request to http://10.1.1.9/onvif/Media 2022-11-25T05:16:29.536290120+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:29.588819705+00:00 DEBUG ONVIF Video Camera V1.3 Stream URI: rtsp://10.1.1.9:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2 2022-11-25T05:16:29.615821866+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetEventProperties request to http://10.1.1.9/onvif/Events 2022-11-25T05:16:29.752182679+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:30.296790847+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12127d8 2022-11-25T05:16:30.302215892+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:30.307685292+00:00 DEBUG ONVIF Video Camera V1.3 LineDetector table: 0x1216d70 2022-11-25T05:16:30.313206718+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1223b20 2022-11-25T05:16:30.318354624+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:30.323785338+00:00 DEBUG ONVIF Video Camera V1.3 Crossed table: 0x10eacd0 2022-11-25T05:16:30.328901895+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1216d98 2022-11-25T05:16:30.364128833+00:00 DEBUG ONVIF Video Camera V1.3 topic true 2022-11-25T05:16:30.369305753+00:00 DEBUG ONVIF Video Camera V1.3 MessageDescription table: 0x10445d8 2022-11-25T05:16:30.374638752+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1045f80 2022-11-25T05:16:30.379710953+00:00 DEBUG ONVIF Video Camera V1.3 IsProperty false 2022-11-25T05:16:30.384871199+00:00 DEBUG ONVIF Video Camera V1.3 Data table: 0x10995a0 2022-11-25T05:16:30.389983087+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x1044600 2022-11-25T05:16:30.395545867+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1238f40 2022-11-25T05:16:30.400650418+00:00 DEBUG ONVIF Video Camera V1.3 Name ObjectId 2022-11-25T05:16:30.405853351+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:integer 2022-11-25T05:16:30.410948564+00:00 DEBUG ONVIF Video Camera V1.3 Source table: 0x1243ad0 2022-11-25T05:16:30.416389950+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x10a7e98 2022-11-25T05:16:30.421555532+00:00 DEBUG ONVIF Video Camera V1.3 1 table: 0x11e7080 2022-11-25T05:16:30.426679092+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11e70a8 2022-11-25T05:16:30.432340255+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoSourceConfigurationToken 2022-11-25T05:16:30.437450142+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:30.442613722+00:00 DEBUG ONVIF Video Camera V1.3 2 table: 0x11e8880 2022-11-25T05:16:30.447724943+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11eb030 2022-11-25T05:16:30.452837832+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoAnalyticsConfigurationToken 2022-11-25T05:16:30.457932378+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:30.463891022+00:00 DEBUG ONVIF Video Camera V1.3 3 table: 0x10de730 2022-11-25T05:16:30.469022587+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11eb008 2022-11-25T05:16:30.474162822+00:00 DEBUG ONVIF Video Camera V1.3 Name Rule 2022-11-25T05:16:30.479425119+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:string 2022-11-25T05:16:30.484564354+00:00 DEBUG ONVIF Video Camera V1.3 TamperDetector table: 0x114daa8 2022-11-25T05:16:30.489686580+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1166ce8 2022-11-25T05:16:30.494845825+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:30.500534001+00:00 DEBUG ONVIF Video Camera V1.3 Tamper table: 0x1298608 2022-11-25T05:16:30.505783625+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1166d10 2022-11-25T05:16:30.511119291+00:00 DEBUG ONVIF Video Camera V1.3 topic true 2022-11-25T05:16:30.516244186+00:00 DEBUG ONVIF Video Camera V1.3 MessageDescription table: 0x12ab7b0 2022-11-25T05:16:30.522043751+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12ab760 2022-11-25T05:16:30.527023239+00:00 DEBUG ONVIF Video Camera V1.3 IsProperty true 2022-11-25T05:16:30.532305879+00:00 DEBUG ONVIF Video Camera V1.3 Data table: 0x12c0ec0 2022-11-25T05:16:30.537882333+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x12c0ee8 2022-11-25T05:16:30.543134624+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11997b0 2022-11-25T05:16:30.548208160+00:00 DEBUG ONVIF Video Camera V1.3 Name IsTamper 2022-11-25T05:16:30.553320715+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:boolean 2022-11-25T05:16:30.558503972+00:00 DEBUG ONVIF Video Camera V1.3 Source table: 0x1199800 2022-11-25T05:16:30.563709907+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x119c210 2022-11-25T05:16:30.569426764+00:00 DEBUG ONVIF Video Camera V1.3 1 table: 0x119d600 2022-11-25T05:16:30.574624695+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x119d628 2022-11-25T05:16:30.579703566+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoSourceConfigurationToken 2022-11-25T05:16:30.584826126+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:30.589962360+00:00 DEBUG ONVIF Video Camera V1.3 2 table: 0x119eab0 2022-11-25T05:16:30.595100928+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1183148 2022-11-25T05:16:30.600739079+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoAnalyticsConfigurationToken 2022-11-25T05:16:30.606149116+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:30.611499123+00:00 DEBUG ONVIF Video Camera V1.3 3 table: 0x1183198 2022-11-25T05:16:30.616820449+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x119ead8 2022-11-25T05:16:30.621900655+00:00 DEBUG ONVIF Video Camera V1.3 Name Rule 2022-11-25T05:16:30.627079910+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:string 2022-11-25T05:16:30.632762750+00:00 DEBUG ONVIF Video Camera V1.3 FieldDetector table: 0x1223450 2022-11-25T05:16:30.637906987+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1127850 2022-11-25T05:16:30.643030214+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:30.648141769+00:00 DEBUG ONVIF Video Camera V1.3 ObjectsInside table: 0x1127748 2022-11-25T05:16:30.653405399+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1127878 2022-11-25T05:16:30.658501279+00:00 DEBUG ONVIF Video Camera V1.3 topic true 2022-11-25T05:16:30.663666527+00:00 DEBUG ONVIF Video Camera V1.3 MessageDescription table: 0x1206998 2022-11-25T05:16:30.669322020+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11b0520 2022-11-25T05:16:30.674474595+00:00 DEBUG ONVIF Video Camera V1.3 IsProperty true 2022-11-25T05:16:30.679671526+00:00 DEBUG ONVIF Video Camera V1.3 Data table: 0x11ad000 2022-11-25T05:16:30.684834773+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x1281e40 2022-11-25T05:16:30.689941992+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1134aa0 2022-11-25T05:16:30.695125582+00:00 DEBUG ONVIF Video Camera V1.3 Name IsInside 2022-11-25T05:16:30.700252811+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:boolean 2022-11-25T05:16:30.706018026+00:00 DEBUG ONVIF Video Camera V1.3 Key table: 0x12e17b0 2022-11-25T05:16:30.711493095+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x12e17d8 2022-11-25T05:16:30.716721708+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12e3d48 2022-11-25T05:16:30.721926309+00:00 DEBUG ONVIF Video Camera V1.3 Name ObjectId 2022-11-25T05:16:30.726894125+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:integer 2022-11-25T05:16:30.732199110+00:00 DEBUG ONVIF Video Camera V1.3 Source table: 0x12e3d98 2022-11-25T05:16:30.737208280+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x12eacb0 2022-11-25T05:16:30.743006844+00:00 DEBUG ONVIF Video Camera V1.3 1 table: 0x12ead00 2022-11-25T05:16:30.748132406+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12eb500 2022-11-25T05:16:30.753265304+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoSourceConfigurationToken 2022-11-25T05:16:30.758773724+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:30.763926632+00:00 DEBUG ONVIF Video Camera V1.3 2 table: 0x12eb550 2022-11-25T05:16:30.769064867+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12c6c18 2022-11-25T05:16:30.774799399+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoAnalyticsConfigurationToken 2022-11-25T05:16:30.780837083+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:30.786042351+00:00 DEBUG ONVIF Video Camera V1.3 3 table: 0x12c6c68 2022-11-25T05:16:30.791259625+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12dbb50 2022-11-25T05:16:30.796357173+00:00 DEBUG ONVIF Video Camera V1.3 Name Rule 2022-11-25T05:16:30.801694507+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:string 2022-11-25T05:16:30.807401359+00:00 DEBUG ONVIF Video Camera V1.3 CellMotionDetector table: 0x1266fd0 2022-11-25T05:16:30.812841411+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11de508 2022-11-25T05:16:30.818070691+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:30.823208925+00:00 DEBUG ONVIF Video Camera V1.3 Motion table: 0x11df0a8 2022-11-25T05:16:30.828305806+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11de530 2022-11-25T05:16:30.833421029+00:00 DEBUG ONVIF Video Camera V1.3 topic true 2022-11-25T05:16:30.838643639+00:00 DEBUG ONVIF Video Camera V1.3 MessageDescription table: 0x12e9d10 2022-11-25T05:16:30.844321476+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11dfdd0 2022-11-25T05:16:30.850178070+00:00 DEBUG ONVIF Video Camera V1.3 IsProperty true 2022-11-25T05:16:30.855282954+00:00 DEBUG ONVIF Video Camera V1.3 Data table: 0x10f8f20 2022-11-25T05:16:30.860381502+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x12e9d38 2022-11-25T05:16:30.865882918+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1135760 2022-11-25T05:16:30.870844398+00:00 DEBUG ONVIF Video Camera V1.3 Name IsMotion 2022-11-25T05:16:30.876737343+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:boolean 2022-11-25T05:16:30.882385165+00:00 DEBUG ONVIF Video Camera V1.3 Source table: 0x120a1e0 2022-11-25T05:16:30.887515729+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x11ff8a8 2022-11-25T05:16:30.892667971+00:00 DEBUG ONVIF Video Camera V1.3 1 table: 0x1246550 2022-11-25T05:16:30.897748176+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1246578 2022-11-25T05:16:30.902846057+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoSourceConfigurationToken 2022-11-25T05:16:30.907921927+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:30.913933932+00:00 DEBUG ONVIF Video Camera V1.3 2 table: 0x12190c8 2022-11-25T05:16:30.919210902+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x120b760 2022-11-25T05:16:30.924307116+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoAnalyticsConfigurationToken 2022-11-25T05:16:30.929478367+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:30.934685636+00:00 DEBUG ONVIF Video Camera V1.3 3 table: 0x11f96d8 2022-11-25T05:16:30.939918584+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x120b738 2022-11-25T05:16:30.945527721+00:00 DEBUG ONVIF Video Camera V1.3 Name Rule 2022-11-25T05:16:30.950594253+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:string 2022-11-25T05:16:30.955878894+00:00 INFO ONVIF Video Camera V1.3 CellMotionDetector found 2022-11-25T05:16:30.961639773+00:00 INFO ONVIF Video Camera V1.3 Motion events enabled; using topic RuleEngine/CellMotionDetector/Motion, item IsMotion 2022-11-25T05:16:30.966864384+00:00 DEBUG ONVIF Video Camera V1.3 Found Tamper L1 Topic: TamperDetector 2022-11-25T05:16:30.972432166+00:00 DEBUG ONVIF Video Camera V1.3 L2 Topic: Tamper, name=IsTamper 2022-11-25T05:16:30.978040636+00:00 INFO ONVIF Video Camera V1.3 Tamper events available 2022-11-25T05:16:30.983169532+00:00 DEBUG ONVIF Video Camera V1.3 Found Line-crossed L1 Topic: LineDetector 2022-11-25T05:16:30.988363128+00:00 DEBUG ONVIF Video Camera V1.3 L2 Topic: Crossed, name=ObjectId 2022-11-25T05:16:30.993414652+00:00 INFO ONVIF Video Camera V1.3 LineCross events available 2022-11-25T05:16:30.998640931+00:00 DEBUG ONVIF Video Camera V1.3 Current motion switch value: Off 2022-11-25T05:16:31.005310931+00:00 INFO ONVIF Video Camera V1.3 IPCam #1 (configure!) initialized 2022-11-25T05:16:31.020082980+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:16:37.126981905+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler capability 2022-11-25T05:16:37.139331077+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> received command: {"args":{},"capability":"partyvoice23922.refresh","command":"push","component":"info","positional_args":{}} 2022-11-25T05:16:37.148580032+00:00 TRACE ONVIF Video Camera V1.3 Found CapabilityCommandDispatcher handler in onvifDriver 2022-11-25T05:16:37.161486482+00:00 INFO ONVIF Video Camera V1.3 Refresh requested 2022-11-25T05:16:37.166638057+00:00 INFO ONVIF Video Camera V1.3 Starting Device Initialization routine for IPCam #1 (configure!) 2022-11-25T05:16:37.179455129+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
\n\n\n"}} 2022-11-25T05:16:37.231938691+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetSystemDateAndTime request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:37.314230816+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:37.368504273+00:00 INFO ONVIF Video Camera V1.3 Hub UTC datetime: 11/25/2022 5:16:37 2022-11-25T05:16:37.387037535+00:00 INFO ONVIF Video Camera V1.3 IP cam UTC datetime: 11/25/2022 6:16:37 2022-11-25T05:16:37.392465247+00:00 WARN ONVIF Video Camera V1.3 Date/Time not synchronized with http://10.1.1.9/onvif/device_service (IPCam #1 (configure!)) 2022-11-25T05:16:37.400014353+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Responding"}} 2022-11-25T05:16:37.425113897+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:16:37 UTC
Last refresh cam: 11/25/2022 6:16:37 UTC
\n\n\n"}} 2022-11-25T05:16:37.465355341+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetScopes request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:37.530968464+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:37.663661445+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetDeviceInformation request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:37.723735133+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:37.774570538+00:00 DEBUG ONVIF Video Camera V1.3 SerialNumber IPC-T281H-MU20210919AAWRG74158161 2022-11-25T05:16:37.781040105+00:00 DEBUG ONVIF Video Camera V1.3 Model IPC-T281H-MU 2022-11-25T05:16:37.786835668+00:00 DEBUG ONVIF Video Camera V1.3 HardwareId 88 2022-11-25T05:16:37.792056944+00:00 DEBUG ONVIF Video Camera V1.3 FirmwareVersion V5.7.1 build 220610 2022-11-25T05:16:37.797161828+00:00 DEBUG ONVIF Video Camera V1.3 Manufacturer HIKVISION 2022-11-25T05:16:37.804552188+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:16:37 UTC
Last refresh cam: 11/25/2022 6:16:37 UTC
SerialNumber: IPC-T281H-MU20210919AAWRG74158161
Model: IPC-T281H-MU
HardwareId: 88
FirmwareVersion: V5.7.1 build 220610
Manufacturer: HIKVISION
\n\n\n"}} 2022-11-25T05:16:37.864933030+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetCapabilities request to http://10.1.1.9/onvif/device_service 2022-11-25T05:16:37.944388071+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:38.194618457+00:00 DEBUG ONVIF Video Camera V1.3 Events section of Capabilities response: 2022-11-25T05:16:38.200457042+00:00 DEBUG ONVIF Video Camera V1.3 XAddr http://10.1.1.9/onvif/Events 2022-11-25T05:16:38.205679318+00:00 DEBUG ONVIF Video Camera V1.3 WSSubscriptionPolicySupport true 2022-11-25T05:16:38.210675148+00:00 DEBUG ONVIF Video Camera V1.3 WSPausableSubscriptionManagerInterfaceSupport false 2022-11-25T05:16:38.216208247+00:00 DEBUG ONVIF Video Camera V1.3 WSPullPointSupport true 2022-11-25T05:16:38.240958616+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetProfiles request to http://10.1.1.9/onvif/Media 2022-11-25T05:16:38.412024773+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:38.922516224+00:00 INFO ONVIF Video Camera V1.3 Using profile name=subStream, token=Profile_2 2022-11-25T05:16:38.965582080+00:00 INFO ONVIF Video Camera V1.3 Resolution: 1280w x 720h 2022-11-25T05:16:38.972396152+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"info","capability_id":"partyvoice23922.onvifinfo","component_id":"info","state":{"value":"<!DOCTYPE html>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
IP addr: 10.1.1.9
Name: IPC-T281H-MU
Hardware: IPC-T281H-MU
Profile: Streaming
Profile: G
Profile: T
urn:uuid:55218000-eff9-11b4-8397-acb92f7c0ed0
Last refresh hub: 11/25/2022 5:16:37 UTC
Last refresh cam: 11/25/2022 6:16:37 UTC
SerialNumber: IPC-T281H-MU20210919AAWRG74158161
Model: IPC-T281H-MU
HardwareId: 88
FirmwareVersion: V5.7.1 build 220610
Manufacturer: HIKVISION
Resolution: 1280w x 720h
\n\n\n"}} 2022-11-25T05:16:39.015996275+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetStreamUri request to http://10.1.1.9/onvif/Media 2022-11-25T05:16:39.102266055+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:39.163331572+00:00 DEBUG ONVIF Video Camera V1.3 Stream URI: rtsp://10.1.1.9:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2 2022-11-25T05:16:39.189168484+00:00 DEBUG ONVIF Video Camera V1.3 Sending GetEventProperties request to http://10.1.1.9/onvif/Events 2022-11-25T05:16:39.332572817+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:39.878423606+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x120b0e8 2022-11-25T05:16:39.884225506+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:39.889485134+00:00 DEBUG ONVIF Video Camera V1.3 LineDetector table: 0x11e0308 2022-11-25T05:16:39.894788785+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x120b110 2022-11-25T05:16:39.900062087+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:39.906200488+00:00 DEBUG ONVIF Video Camera V1.3 Crossed table: 0x12a1200 2022-11-25T05:16:39.911308040+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a1028 2022-11-25T05:16:39.916643707+00:00 DEBUG ONVIF Video Camera V1.3 topic true 2022-11-25T05:16:39.922463615+00:00 DEBUG ONVIF Video Camera V1.3 MessageDescription table: 0x12a12c0 2022-11-25T05:16:39.927713906+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a1270 2022-11-25T05:16:39.933604850+00:00 DEBUG ONVIF Video Camera V1.3 IsProperty false 2022-11-25T05:16:39.939192976+00:00 DEBUG ONVIF Video Camera V1.3 Data table: 0x12a1518 2022-11-25T05:16:39.944417253+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x12a14c8 2022-11-25T05:16:39.949580500+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a15b0 2022-11-25T05:16:39.965336374+00:00 DEBUG ONVIF Video Camera V1.3 Name ObjectId 2022-11-25T05:16:39.975032887+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:integer 2022-11-25T05:16:39.983359048+00:00 DEBUG ONVIF Video Camera V1.3 Source table: 0x12a19f0 2022-11-25T05:16:39.989005870+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x12a1ae8 2022-11-25T05:16:39.994186125+00:00 DEBUG ONVIF Video Camera V1.3 1 table: 0x12a1cc0 2022-11-25T05:16:39.999272334+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a1ce8 2022-11-25T05:16:40.004763745+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoSourceConfigurationToken 2022-11-25T05:16:40.009847285+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:40.015253320+00:00 DEBUG ONVIF Video Camera V1.3 2 table: 0x12a1d38 2022-11-25T05:16:40.020435577+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a1d88 2022-11-25T05:16:40.025607828+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoAnalyticsConfigurationToken 2022-11-25T05:16:40.031174610+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:40.036508609+00:00 DEBUG ONVIF Video Camera V1.3 3 table: 0x12a25c0 2022-11-25T05:16:40.042332520+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a1d60 2022-11-25T05:16:40.047527783+00:00 DEBUG ONVIF Video Camera V1.3 Name Rule 2022-11-25T05:16:40.052762399+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:string 2022-11-25T05:16:40.057770568+00:00 DEBUG ONVIF Video Camera V1.3 TamperDetector table: 0x1141fb8 2022-11-25T05:16:40.064252808+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11429e0 2022-11-25T05:16:40.071246970+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:40.087970327+00:00 DEBUG ONVIF Video Camera V1.3 Tamper table: 0x11422e8 2022-11-25T05:16:40.093407378+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1142298 2022-11-25T05:16:40.100463904+00:00 DEBUG ONVIF Video Camera V1.3 topic true 2022-11-25T05:16:40.105574792+00:00 DEBUG ONVIF Video Camera V1.3 MessageDescription table: 0x1142bc8 2022-11-25T05:16:40.110799069+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1142358 2022-11-25T05:16:40.116085711+00:00 DEBUG ONVIF Video Camera V1.3 IsProperty true 2022-11-25T05:16:40.121454394+00:00 DEBUG ONVIF Video Camera V1.3 Data table: 0x1142c88 2022-11-25T05:16:40.127050858+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x1142c38 2022-11-25T05:16:40.132283806+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x129dac0 2022-11-25T05:16:40.137370015+00:00 DEBUG ONVIF Video Camera V1.3 Name IsTamper 2022-11-25T05:16:40.142582286+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:boolean 2022-11-25T05:16:40.147611800+00:00 DEBUG ONVIF Video Camera V1.3 Source table: 0x129db10 2022-11-25T05:16:40.152932125+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x1142cb0 2022-11-25T05:16:40.158675662+00:00 DEBUG ONVIF Video Camera V1.3 1 table: 0x129dd40 2022-11-25T05:16:40.163872926+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x129dd68 2022-11-25T05:16:40.169045845+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoSourceConfigurationToken 2022-11-25T05:16:40.174433871+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:40.179563768+00:00 DEBUG ONVIF Video Camera V1.3 2 table: 0x129ddb8 2022-11-25T05:16:40.184789713+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x129de08 2022-11-25T05:16:40.190416191+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoAnalyticsConfigurationToken 2022-11-25T05:16:40.195701833+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:40.200834398+00:00 DEBUG ONVIF Video Camera V1.3 3 table: 0x129e000 2022-11-25T05:16:40.206146386+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x129dde0 2022-11-25T05:16:40.211328976+00:00 DEBUG ONVIF Video Camera V1.3 Name Rule 2022-11-25T05:16:40.216720003+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:string 2022-11-25T05:16:40.222712331+00:00 DEBUG ONVIF Video Camera V1.3 FieldDetector table: 0x12a41d8 2022-11-25T05:16:40.227925270+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a4248 2022-11-25T05:16:40.233017148+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:40.238118364+00:00 DEBUG ONVIF Video Camera V1.3 ObjectsInside table: 0x1140d68 2022-11-25T05:16:40.243283945+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1140d18 2022-11-25T05:16:40.248452528+00:00 DEBUG ONVIF Video Camera V1.3 topic true 2022-11-25T05:16:40.253580758+00:00 DEBUG ONVIF Video Camera V1.3 MessageDescription table: 0x1140e28 2022-11-25T05:16:40.259246256+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1140dd8 2022-11-25T05:16:40.264385824+00:00 DEBUG ONVIF Video Camera V1.3 IsProperty true 2022-11-25T05:16:40.269494377+00:00 DEBUG ONVIF Video Camera V1.3 Data table: 0x11413b8 2022-11-25T05:16:40.276039982+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x1141368 2022-11-25T05:16:40.281060491+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x11415c8 2022-11-25T05:16:40.292651617+00:00 DEBUG ONVIF Video Camera V1.3 Name IsInside 2022-11-25T05:16:40.299665455+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:boolean 2022-11-25T05:16:40.305857883+00:00 DEBUG ONVIF Video Camera V1.3 Key table: 0x1141618 2022-11-25T05:16:40.312686629+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x1141a10 2022-11-25T05:16:40.320793014+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1141a60 2022-11-25T05:16:40.332691627+00:00 DEBUG ONVIF Video Camera V1.3 Name ObjectId 2022-11-25T05:16:40.349082151+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:integer 2022-11-25T05:16:40.366819349+00:00 DEBUG ONVIF Video Camera V1.3 Source table: 0x1141688 2022-11-25T05:16:40.372050296+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x11416b0 2022-11-25T05:16:40.377304922+00:00 DEBUG ONVIF Video Camera V1.3 1 table: 0x1141c50 2022-11-25T05:16:40.382455830+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1141c78 2022-11-25T05:16:40.387553377+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoSourceConfigurationToken 2022-11-25T05:16:40.393247890+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:40.398404801+00:00 DEBUG ONVIF Video Camera V1.3 2 table: 0x1141cc8 2022-11-25T05:16:40.403570382+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1141d60 2022-11-25T05:16:40.410356774+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoAnalyticsConfigurationToken 2022-11-25T05:16:40.415880201+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:40.421496674+00:00 DEBUG ONVIF Video Camera V1.3 3 table: 0x1141ed8 2022-11-25T05:16:40.427189186+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x1141d38 2022-11-25T05:16:40.432335758+00:00 DEBUG ONVIF Video Camera V1.3 Name Rule 2022-11-25T05:16:40.437432305+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:string 2022-11-25T05:16:40.442641908+00:00 DEBUG ONVIF Video Camera V1.3 CellMotionDetector table: 0x12a26a0 2022-11-25T05:16:40.447767803+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a2cf8 2022-11-25T05:16:40.452877023+00:00 DEBUG ONVIF Video Camera V1.3 topic false 2022-11-25T05:16:40.457994581+00:00 DEBUG ONVIF Video Camera V1.3 Motion table: 0x12a2f10 2022-11-25T05:16:40.465243537+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a2d20 2022-11-25T05:16:40.470403115+00:00 DEBUG ONVIF Video Camera V1.3 topic true 2022-11-25T05:16:40.475649070+00:00 DEBUG ONVIF Video Camera V1.3 MessageDescription table: 0x12a2f88 2022-11-25T05:16:40.480698927+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a2f38 2022-11-25T05:16:40.485893523+00:00 DEBUG ONVIF Video Camera V1.3 IsProperty true 2022-11-25T05:16:40.490964057+00:00 DEBUG ONVIF Video Camera V1.3 Data table: 0x12a3170 2022-11-25T05:16:40.496198340+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x12a2ff8 2022-11-25T05:16:40.501890851+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a3208 2022-11-25T05:16:40.507016746+00:00 DEBUG ONVIF Video Camera V1.3 Name IsMotion 2022-11-25T05:16:40.517984227+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:boolean 2022-11-25T05:16:40.523315225+00:00 DEBUG ONVIF Video Camera V1.3 Source table: 0x12a3258 2022-11-25T05:16:40.528532832+00:00 DEBUG ONVIF Video Camera V1.3 SimpleItemDescription table: 0x12a35e0 2022-11-25T05:16:40.533772784+00:00 DEBUG ONVIF Video Camera V1.3 1 table: 0x12a3280 2022-11-25T05:16:40.538889341+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a3b98 2022-11-25T05:16:40.544573515+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoSourceConfigurationToken 2022-11-25T05:16:40.583313209+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:40.589614024+00:00 DEBUG ONVIF Video Camera V1.3 2 table: 0x12a3be8 2022-11-25T05:16:40.611657374+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a3c38 2022-11-25T05:16:40.617675715+00:00 DEBUG ONVIF Video Camera V1.3 Name VideoAnalyticsConfigurationToken 2022-11-25T05:16:40.622841296+00:00 DEBUG ONVIF Video Camera V1.3 Type tt:ReferenceToken 2022-11-25T05:16:40.627901158+00:00 DEBUG ONVIF Video Camera V1.3 3 table: 0x12a3c88 2022-11-25T05:16:40.633116765+00:00 DEBUG ONVIF Video Camera V1.3 _attr table: 0x12a3c10 2022-11-25T05:16:40.653559314+00:00 DEBUG ONVIF Video Camera V1.3 Name Rule 2022-11-25T05:16:40.658860630+00:00 DEBUG ONVIF Video Camera V1.3 Type xs:string 2022-11-25T05:16:40.666080905+00:00 INFO ONVIF Video Camera V1.3 CellMotionDetector found 2022-11-25T05:16:40.672137599+00:00 INFO ONVIF Video Camera V1.3 Motion events enabled; using topic RuleEngine/CellMotionDetector/Motion, item IsMotion 2022-11-25T05:16:40.679480602+00:00 DEBUG ONVIF Video Camera V1.3 Found Tamper L1 Topic: TamperDetector 2022-11-25T05:16:40.684591156+00:00 DEBUG ONVIF Video Camera V1.3 L2 Topic: Tamper, name=IsTamper 2022-11-25T05:16:40.690356370+00:00 INFO ONVIF Video Camera V1.3 Tamper events available 2022-11-25T05:16:40.695743396+00:00 DEBUG ONVIF Video Camera V1.3 Found Line-crossed L1 Topic: LineDetector 2022-11-25T05:16:40.700723218+00:00 DEBUG ONVIF Video Camera V1.3 L2 Topic: Crossed, name=ObjectId 2022-11-25T05:16:40.705965504+00:00 INFO ONVIF Video Camera V1.3 LineCross events available 2022-11-25T05:16:40.711225133+00:00 DEBUG ONVIF Video Camera V1.3 Current motion switch value: Off 2022-11-25T05:16:40.716880292+00:00 INFO ONVIF Video Camera V1.3 IPCam #1 (configure!) initialized 2022-11-25T05:16:40.726670852+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:16:44.359565392+00:00 TRACE ONVIF Video Camera V1.3 Received event with handler capability 2022-11-25T05:16:44.410099647+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> received command: {"args":{},"capability":"partyvoice23922.motionevents2","command":"switchOn","component":"main","positional_args":{}} 2022-11-25T05:16:44.416770647+00:00 TRACE ONVIF Video Camera V1.3 Found CapabilityCommandDispatcher handler in onvifDriver 2022-11-25T05:16:44.421942899+00:00 DEBUG ONVIF Video Camera V1.3 main switch command received: switchOn 2022-11-25T05:16:44.450721948+00:00 INFO ONVIF Video Camera V1.3 Event server started and listening on: 10.1.1.4:45787 2022-11-25T05:16:44.455993916+00:00 INFO ONVIF Video Camera V1.3 Subscribing to events for IPCam #1 (configure!) 2022-11-25T05:16:44.491164492+00:00 DEBUG ONVIF Video Camera V1.3 Sending Subscribe request to http://10.1.1.9/onvif/Events 2022-11-25T05:16:44.516294718+00:00 DEBUG ONVIF Video Camera V1.3 event server thread device thread event handled 2022-11-25T05:16:44.587443275+00:00 DEBUG ONVIF Video Camera V1.3 HTTP Response Header: HTTP/1.1 200 OK 2022-11-25T05:16:44.623318203+00:00 DEBUG ONVIF Video Camera V1.3 Subscription response: 2022-11-25T05:16:44.628439763+00:00 DEBUG ONVIF Video Camera V1.3 TerminationTime 2022-11-25T06:26:44Z 2022-11-25T05:16:44.663551643+00:00 DEBUG ONVIF Video Camera V1.3 CurrentTime 2022-11-25T06:16:44Z 2022-11-25T05:16:44.668791262+00:00 DEBUG ONVIF Video Camera V1.3 SubscriptionReference table: 0x11abf78 2022-11-25T05:16:44.673998864+00:00 DEBUG ONVIF Video Camera V1.3 Address http://10.1.1.9/onvif/Events/SubManager_20221125T061644Z_0 2022-11-25T05:16:44.679655024+00:00 INFO ONVIF Video Camera V1.3 Successfully subscribed to events for IPCam #1 (configure!) 2022-11-25T05:16:44.684915320+00:00 INFO ONVIF Video Camera V1.3 Duration = 10.0 minutes 2022-11-25T05:16:44.690026874+00:00 INFO ONVIF Video Camera V1.3 Ref Address: http://10.1.1.9/onvif/Events/SubManager_20221125T061644Z_0 2022-11-25T05:16:44.695897808+00:00 DEBUG ONVIF Video Camera V1.3 Scheduling subscription renewal to run in 09:08 2022-11-25T05:16:44.706758903+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Subscribed to events"}} 2022-11-25T05:16:44.724673189+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"motionSwitch","capability_id":"partyvoice23922.motionevents2","component_id":"main","state":{"value":"On"}} 2022-11-25T05:16:44.746280320+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:16:44.763069044+00:00 DEBUG ONVIF Video Camera V1.3 IPCam #1 (configure!) device thread event handled 2022-11-25T05:16:44.777424551+00:00 DEBUG ONVIF Video Camera V1.3 Received HTTP header: POST /event HTTP/1.1 2022-11-25T05:16:44.990490698+00:00 INFO ONVIF Video Camera V1.3 Message for IPCam #1 (configure!): tns1:RuleEngine/CellMotionDetector/Motion 2022-11-25T05:16:44.995986444+00:00 INFO ONVIF Video Camera V1.3 Motion value = "false" 2022-11-25T05:16:45.001808687+00:00 INFO ONVIF Video Camera V1.3 <Device: 46f7e417-862a-4e12-b3c7-32c8c763ac1a (IPCam #1 (configure!))> emitting event: {"attribute_id":"motion","capability_id":"motionSensor","component_id":"main","state":{"value":"inactive"}} '''

toddaustin07 commented 1 year ago

I've got to study this some more, but the first thing I notice is that your camera time is an hour off of your hub time. So I'd suggest getting that adjusted to make sure it's not causing problems.

scottjjr commented 1 year ago

Yeah that hour thing is weird, everything’s set right and appears to be an internal utc/daylight savings time conversion bug somewhere. Either camera is providing wrong value to ST, or ST is applying incorrect conversion to get UTC.

New Zealand is +12, and +13 DST over summer period (now).

The camera is using ntp with NZ Timezone + daylight savings configured and is reporting the correct local time in camera. For some reason the camera time in ST is reporting as utc +12, not +13 (so accounting for TZ but not DST). As above unsure if this is a camera bug or ST/driver conversion issue.

The hub has the location set to NZ and is reporting the correct time in the UI, and correct UTC in logs.

image below shows history with smartthings local time vs hub log utc and log of camera ‘utc’. Can see hub is correct to utc/vs local time but camer utc ‘is wrong’ even though camera set correctly.

ED2617F8-2EC8-4553-A375-DB8DCC13CE6D

toddaustin07 commented 1 year ago

There is no conversions done on the time received from the camera. It provides it in UTC time. You can see where the times are displayed in the log:

2022-11-25T05:15:27.683570194+00:00 INFO ONVIF Video Camera V1.3 Hub UTC datetime: 11/25/2022 5:15:27
2022-11-25T05:15:27.689003909+00:00 INFO ONVIF Video Camera V1.3 IP cam UTC datetime: 11/25/2022 6:15:27

The log time (UTC) is showing 05:15:27, the hub time shows as 05:15:27, but the camera is returning 06:15:27. So it definitely appears that the camera is returning the wrong time. I don't know if it's a bug in the ONVIF firmware or it's a camera config issue.

I'm actually surprised that the authentication works at all, since from the camera's perspective the creation time of the password hash is an hour old. But it does work and only 10 minutes later when the event subscription is renewed, it is rejected. If the camera is disallowing anything OVER one hour, then this could be why it is rejecting the authentication since it is OVER an hour old by then. I really don't know... this could just be a red herring and it's something else entirely.

A couple questions: 1) When you tried the ONVIF Device Manager, did you click on the events tab and wait several minutes to ensure that events kept being received? ONVIF renews it every MINUTE, so you would have seen it fail after that if it was having the same problem. EDIT: Also what time is ODM showing from your camera?

2) Is the video stream still working past the 10 minute mark? It should, as the events renewal problem is a separate issue.

scottjjr commented 1 year ago

Definitely looks like a camera bug issue, events in UTC clearly add/loose an hour when enabling/disabling the daylight savings flag.

image

Have changed to a timezone that includes the extra hour and will see how that goes.

Is there something I need to do to enable line crossing? I don't see the events trigger in smartthings. Here is ONVIF Device Manager event log vs smartthings log.

image

scottjjr commented 1 year ago

Unforuntatley same issue 10 min later :( Does'nt appear aligning UTC has helped.

image

toddaustin07 commented 1 year ago

Something else is going on in your log: your device discovery process is repeating over and over again. Normally it should just go through maybe three cycles and then quit. In fact you seem to have multiple discovery cycles going on simultaneously, which should NEVER happen. I see "Starting Discovery cycle #24" and then "#1" and then "#25"! This is bad.

Have you been having any other strange issues with your hub lately? When you do an Add device / Scan for nearby devices from your mobile app, the Edge platform tells the driver to start discovery, but then in a minute or so it tells it to stop. It looks like the notification to stop never made it to the driver. If this is happening to other drivers on your hub, then there is a possibility there could be any number of them churning away with repeated discovery cycles.

I know it's probably a pain, but what I would recommend is deleting all your devices, uninstalling the driver, and starting over. If we see this happen again, it needs to be reported to SmartThings support. They'll want you to send a snapshot of your hub through the IDE menus too.

Also, if there is any way to limit our testing to just one active camera, I think that would help in tracing the log. It's sometimes confusing when there are multiple devices. So even if your discovery process finds multiple cameras, just configure the userid & password for one of them.

Your ODM events screenshot is really helpful - I can try and see why the line events aren't being triggered, but for that I'll need to also go back and look at the initialization sequence.

If ODM is not having a problem when periodically re-subscribing to your camera, then that gives us hope that there is some change I could possibly make to the driver to solve the authentication issue we're having. There are a couple things we could possibly try with some driver modifications, but we've got to solve this discovery issue first.


On a completely different note, I had been meaning to ask if you had ever tried DISABLING that control timeout option on your camera?

image

toddaustin07 commented 1 year ago

Update on Line Cross events. During the period in which you were expecting to see motion events, the driver was still(!) going through a discovery cycle (possibly multiple), so I suspect that motion events were not even getting processed. However I went back and checked that the setup for Line Cross events went ok and it did. There is one thing different with this camera than what I've seen with others is that the Line Cross event here, rather than having a "True" or "1" value, has some other integer value of 82260 (ObjectId). Does this value mean anything to you? I was wondering if it tied back to something set up in your camera's line detection configuration. Regardless, this will require a small update to the driver to make sure it is getting treated as meaning 'motion active'.

toddaustin07 commented 1 year ago

I've also been thinking about this ongoing discovery cycle issue and if it might be actually causing the problem we're having with authentication and it actually might be... The same camera device is getting discovered repeatedly, with duplicate calls to the API made with http digest authentication data. It is entirely possible that the camera is choking on these multiple calls, so by the time it gets to the resubscription after 10 minutes, it's already been maxed out with all the ongoing discovery cycles.

It might be wise to re-boot your hub after deleting the driver and before loading it again.

scottjjr commented 1 year ago

Will give the delete and reboot a try. Do have wierd stuff sometimes where I can’t add a device without a reboot, but have had no issue adding the camera each time

The object is doesn’t mean much sorry. Assumed it was a tracked object id, like the instance id of an object a system might follow/track about the place.

toddaustin07 commented 1 year ago

Let me know how you make out. I thought also that maybe when you did an Add device / Scan for nearby devices, that maybe you never backed out of the screen when the initial scan was complete. (This sends a 'stop discovery' notification to the driver) I've never seen it as an issue before, but after seeing your log it made me think that maybe I should put a ceiling on the number of discovery cycles regardless of when you end it by exiting the scan screen. So I'll probably get you an updated driver with that change, plus the one to ensure your line crossing events are properly recognized.

toddaustin07 commented 1 year ago

Hello. I just pushed out a driver update to the alternate test channel that puts a limit on the number of discovery cycles executed when you do an Add device / Scan for nearby devices. This driver also has a minor change that should result in your line detection events getting registered in the SmartThings device.

If you have some time, it would be great if you could give this a go and let me know if it improves anything for you.

First, confirm that your hub has received driver version 2022-12-07T23:36:16.201207693

stebbiraf76 commented 1 year ago

Can confirm that both my Dahua cameras were instantly found but no video unless ONVIF authentication is set to OFF.

image

image

toddaustin07 commented 1 year ago

Having to disable authentication to get video working seems to be a common thing with these Dahua cameras. Are you getting motion alerts?

stebbiraf76 commented 1 year ago

Yes motion alerts seem to be working

Þann fim., 29. des. 2022, 05:57 Todd Austin skrifaði < @.***>:

Having to disable authentication to get video working seems to be a common thing with these Dahua cameras. Are you getting motion alerts?

— Reply to this email directly, view it on GitHub https://github.com/toddaustin07/Edge-ONVIF-Driver/issues/2#issuecomment-1367088838, or unsubscribe https://github.com/notifications/unsubscribe-auth/A257GOA65Y7WKRVZLU5CUNLWPUR3HANCNFSM554P4XZA . You are receiving this because you commented.Message ID: @.***>

toddaustin07 commented 1 year ago

Ok good to hear. I’ll go ahead and close the issue.

scottjjr commented 1 year ago

Hi, bit late on reply sorry.

Have gone through the remove/readd cycle, still unfortunately having issues past 10min where the device receives a 401 back from the camera.

I can get motion events, but still cannot get a line-cross event to come through.

cameralog.txt