[ST Edge] ONVIF-compliant IP Camera Motion Detection & Video Streaming - Testers Wanted!

TRENDnet TV-IP321PI motion detection worked!

It uses RTSP over TCP H264 on port 554 and the URL in the logs opens just fine using a video app (totem). However, I get “The camera is unavailable.” when trying to view it in a camera group in SmartThings app on Android.

I’m in Canada, the vEdge Creator virtual cameras did not allow me to create a camera group, but the API-browser did allow me to create a camera group.

2023-04-11T10:52:37.356986550-04:00 TRACE ONVIF Video Camera V1.3  Received event with handler capability
2023-04-11T10:52:37.390177144-04:00 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (IPCam #1 (configure!))> received command: {"args":{},"capability":"videoStream","command":"startStream","component":"main","positional_args":{}}
2023-04-11T10:52:37.394567086-04:00 TRACE ONVIF Video Camera V1.3  Found CapabilityCommandDispatcher handler in onvifDriver
2023-04-11T10:52:37.398250587-04:00 DEBUG ONVIF Video Camera V1.3  Streaming handler invoked with command	startStream
2023-04-11T10:52:37.402683655-04:00 DEBUG ONVIF Video Camera V1.3  Providing stream URL to SmartThings:	rtsp://192.168.1.154:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2
2023-04-11T10:52:37.406430033-04:00 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (IPCam #1 (configure!))> emitting event: {"attribute_id":"stream","capability_id":"videoStream","component_id":"main","state":{"value":{"InHomeURL":"rtsp://username:password@192.168.1.154:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2","OutHomeURL":""}},"visibility":{"displayed":false}}
2023-04-11T10:52:37.416920517-04:00 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
2023-04-11T10:52:39.396314230-04:00 TRACE ONVIF Video Camera V1.3  Received event with handler capability
2023-04-11T10:52:39.423550412-04:00 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (IPCam #1 (configure!))> received command: {"args":{},"capability":"videoStream","command":"stopStream","component":"main","positional_args":{}}
2023-04-11T10:52:39.428435454-04:00 TRACE ONVIF Video Camera V1.3  Found CapabilityCommandDispatcher handler in onvifDriver
2023-04-11T10:52:39.432377964-04:00 DEBUG ONVIF Video Camera V1.3  Streaming handler invoked with command	stopStream
2023-04-11T10:52:39.435965586-04:00 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (IPCam #1 (configure!))> emitting event: {"attribute_id":"stream","capability_id":"videoStream","component_id":"main","state":{"value":{"InHomeURL":"","OutHomeURL":""}},"visibility":{"displayed":false}}
2023-04-11T10:52:39.445579707-04:00 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled

Thanks for the report.

I’m afraid this is a common problem right now that has been reported but there is no solution. Right now SmartThings isn’t keen on officially supporting video streaming with Edge drivers. Hopefully enough people will complain that they’ll do something about it.

Just to be clear - you were able to create a virtual camera device, but you didn’t have the ‘Create Camera Group’ option in your app? This is another known issue.

Correct, but now that I created a camera group with the API-browser, “Create Camera Group” is now present.

Thank you for building this driver!

1 Like

I got the TRENDnet TV-IP321PI camera feed to work after changing the video settings. I think my substream was on MJPEG before. After switching to H.264 it starting working in the camera group.

Excellent! I’ll make note of this in the documentation for working cameras.

I notice that I need to press the “refresh” command every day to re-subscribe to motion events. I also have schedule motion events setup on the camera (no motion events at night). Anybody else notice this or have a recommendation to avoid this manual process? I tried to create a daily routine, but camera “refresh” isn’t an available action.

If your cameras show up in SharpTools, you can use SharpTools to create automatic refresh rules.

1 Like

You definitely shouldn’t have to do that. It’s an indication that something is going wrong with the link to the camera. What kind of camera do you have ? Anything unique about your network setup? Is the cam hardwired or wireless?

If this is repeatable then we should be able to catch it in driver logs using the SmartThings CLI.

Direct message me for help getting the CLI logs.

PoE TRENDnet TV-IP321PI can’t always renew subscription.

Below are the logs

73082375 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:14:52.978527610 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:15:04.346603366 TRACE ONVIF Video Camera V1.3  Received event with handler capability
13:15:04.383367808 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (Front Camera)> received command: {"args":{},"capability":"partyvoice23922.refresh","command":"push","component":"info","positional_args":{}}
13:15:04.385572578 TRACE ONVIF Video Camera V1.3  Found CapabilityCommandDispatcher handler in onvifDriver
13:15:04.391251736 INFO ONVIF Video Camera V1.3  Refresh requested
13:15:04.393407921 INFO ONVIF Video Camera V1.3  Starting Device Initialization routine for	Front Camera
13:15:04.400949048 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (Front 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: 192.168.1.154</td></tr>\n<tr><td>Name: TV-IP321PI</td></tr>\n<tr><td>Hardware: TV-IP321PI</td></tr>\n<tr><td>Profile: Streaming</td></tr>\n<tr><td>Profile: G</td></tr>\n<tr><td>urn:uuid:132ebc2d-cd92-11b5-84b1-d8eb97cdb2e6</td></tr>\n</table>\n</BODY>\n</HTML>\n"}}
13:15:04.422179973 DEBUG ONVIF Video Camera V1.3  Sending GetSystemDateAndTime request to http://192.168.1.154/onvif/device_service
13:15:04.523943352 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 401 Unauthorized
13:15:04.534014216 DEBUG ONVIF Video Camera V1.3  auth_record: 	Digest qop="auth", realm="TV-IP321PI", nonce="4d7a6c434d6b56434e7a6f335a6d5533596a4a6c4e673d3d"
13:15:04.537173680 DEBUG ONVIF Video Camera V1.3  Authorization record:
13:15:04.538636595 DEBUG ONVIF Video Camera V1.3  	type: Digest
13:15:04.539981800 DEBUG ONVIF Video Camera V1.3  	qop: auth
13:15:04.546537357 DEBUG ONVIF Video Camera V1.3  	nonce: 4d7a6c434d6b56434e7a6f335a6d5533596a4a6c4e673d3d
13:15:04.556276129 DEBUG ONVIF Video Camera V1.3  	realm: TV-IP321PI
13:15:04.561764282 DEBUG ONVIF Video Camera V1.3  auth_header: 	Digest username="admin", realm="TV-IP321PI", nonce="4d7a6c434d6b56434e7a6f335a6d5533596a4a6c4e673d3d", uri="/onvif/device_service", response="184ab0a26183ef009ee640f4c51abab1", qop=auth, cnonce="8955eb73", nc=00000001
13:15:04.565304589 DEBUG ONVIF Video Camera V1.3  Sending GetSystemDateAndTime request to http://192.168.1.154/onvif/device_service
13:15:04.757759746 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:15:04.759228496 INFO ONVIF Video Camera V1.3  Hub UTC datetime: 4/14/2023 17:15:04
13:15:04.761777942 INFO ONVIF Video Camera V1.3  IP cam UTC datetime: 4/14/2023 18:15:03
13:15:04.765257914 WARN ONVIF Video Camera V1.3  Date/Time not synchronized with http://192.168.1.154/onvif/device_service (Front Camera)
13:15:04.767839861 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (Front Camera)> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Responding"}}
13:15:04.788934782 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (Front 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: 192.168.1.154</td></tr>\n<tr><td>Name: TV-IP321PI</td></tr>\n<tr><td>Hardware: TV-IP321PI</td></tr>\n<tr><td>Profile: Streaming</td></tr>\n<tr><td>Profile: G</td></tr>\n<tr><td>urn:uuid:132ebc2d-cd92-11b5-84b1-d8eb97cdb2e6</td></tr>\n<tr><td>Last refresh hub: 4/14/2023 17:15:04 UTC</td></tr>\n<tr><td>Last refresh cam: 4/14/2023 18:15:03 UTC</td></tr>\n</table>\n</BODY>\n</HTML>\n"}}
13:15:04.829354076 DEBUG ONVIF Video Camera V1.3  Sending GetScopes request to http://192.168.1.154/onvif/device_service
13:15:04.997623934 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:15:05.003798231 DEBUG ONVIF Video Camera V1.3  Sending GetDeviceInformation request to http://192.168.1.154/onvif/device_service
13:15:05.154031587 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:15:05.157346596 DEBUG ONVIF Video Camera V1.3  	Model	TV-IP321PI
13:15:05.158805262 DEBUG ONVIF Video Camera V1.3  	SerialNumber	TV-IP321PI20141201AAWR093305901
13:15:05.166327096 DEBUG ONVIF Video Camera V1.3  	Manufacturer	TRENDnet
13:15:05.167728635 DEBUG ONVIF Video Camera V1.3  	HardwareId	88
13:15:05.169076215 DEBUG ONVIF Video Camera V1.3  	FirmwareVersion	V5.3.4 build 170802
13:15:05.181711150 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (Front 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: 192.168.1.154</td></tr>\n<tr><td>Name: TV-IP321PI</td></tr>\n<tr><td>Hardware: TV-IP321PI</td></tr>\n<tr><td>Profile: Streaming</td></tr>\n<tr><td>Profile: G</td></tr>\n<tr><td>urn:uuid:132ebc2d-cd92-11b5-84b1-d8eb97cdb2e6</td></tr>\n<tr><td>Last refresh hub: 4/14/2023 17:15:04 UTC</td></tr>\n<tr><td>Last refresh cam: 4/14/2023 18:15:03 UTC</td></tr>\n<tr><td>Model: TV-IP321PI</td></tr>\n<tr><td>SerialNumber: TV-IP321PI20141201AAWR093305901</td></tr>\n<tr><td>Manufacturer: TRENDnet</td></tr>\n<tr><td>HardwareId: 88</td></tr>\n<tr><td>FirmwareVersion: V5.3.4 build 170802</td></tr>\n</table>\n</BODY>\n</HTML>\n"}}
13:15:05.193430227 DEBUG ONVIF Video Camera V1.3  Sending GetCapabilities request to http://192.168.1.154/onvif/device_service
13:15:05.514530514 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:15:05.519228978 DEBUG ONVIF Video Camera V1.3  Events section of Capabilities response:
13:15:05.532659853 DEBUG ONVIF Video Camera V1.3      XAddr	http://192.168.1.154/onvif/Events
13:15:05.537979918 DEBUG ONVIF Video Camera V1.3      WSPausableSubscriptionManagerInterfaceSupport	false
13:15:05.541528017 DEBUG ONVIF Video Camera V1.3      WSPullPointSupport	true
13:15:05.544595394 DEBUG ONVIF Video Camera V1.3      WSSubscriptionPolicySupport	true
13:15:05.548209536 DEBUG ONVIF Video Camera V1.3  Sending GetProfiles request to http://192.168.1.154/onvif/Media
13:15:06.023822173 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:15:06.032307202 INFO ONVIF Video Camera V1.3  Using profile name=subStream, token=Profile_2
13:15:06.033775493 INFO ONVIF Video Camera V1.3  	Resolution: 704w x 480h
13:15:06.035454956 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (Front 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: 192.168.1.154</td></tr>\n<tr><td>Name: TV-IP321PI</td></tr>\n<tr><td>Hardware: TV-IP321PI</td></tr>\n<tr><td>Profile: Streaming</td></tr>\n<tr><td>Profile: G</td></tr>\n<tr><td>urn:uuid:132ebc2d-cd92-11b5-84b1-d8eb97cdb2e6</td></tr>\n<tr><td>Last refresh hub: 4/14/2023 17:15:04 UTC</td></tr>\n<tr><td>Last refresh cam: 4/14/2023 18:15:03 UTC</td></tr>\n<tr><td>Model: TV-IP321PI</td></tr>\n<tr><td>SerialNumber: TV-IP321PI20141201AAWR093305901</td></tr>\n<tr><td>Manufacturer: TRENDnet</td></tr>\n<tr><td>HardwareId: 88</td></tr>\n<tr><td>FirmwareVersion: V5.3.4 build 170802</td></tr>\n<tr><td>Resolution: 704w x 480h</td></tr>\n</table>\n</BODY>\n</HTML>\n"}}
13:15:06.063484613 DEBUG ONVIF Video Camera V1.3  Sending GetStreamUri request to http://192.168.1.154/onvif/Media
13:15:06.253697917 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:15:06.263360520 DEBUG ONVIF Video Camera V1.3  Stream URI:	rtsp://192.168.1.154:554/Streaming/Channels/102?transportmode=unicast&profile=Profile_2
13:15:06.264884604 DEBUG ONVIF Video Camera V1.3  Sending GetEventProperties request to http://192.168.1.154/onvif/Events
13:15:06.799636476 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:15:06.812355580 DEBUG ONVIF Video Camera V1.3      TamperDetector	table: 0x1489530
13:15:06.817933694 DEBUG ONVIF Video Camera V1.3        Tamper	table: 0x13d67c0
13:15:06.819393402 DEBUG ONVIF Video Camera V1.3          _attr	table: 0x13d7f98
13:15:06.826621270 DEBUG ONVIF Video Camera V1.3            topic	true
13:15:06.828334776 DEBUG ONVIF Video Camera V1.3          MessageDescription	table: 0x13d6810
13:15:06.829722398 DEBUG ONVIF Video Camera V1.3            Source	table: 0x13d6860
13:15:06.838330221 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x13d68b0
13:15:06.839766345 DEBUG ONVIF Video Camera V1.3                1	table: 0x13d6900
13:15:06.867951964 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x13d0438
13:15:06.879416242 DEBUG ONVIF Video Camera V1.3                    Name	VideoSourceConfigurationToken
13:15:06.881592970 DEBUG ONVIF Video Camera V1.3                    Type	tt:ReferenceToken
13:15:06.883002217 DEBUG ONVIF Video Camera V1.3                2	table: 0x13d0488
13:15:06.884499051 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x13d0520
13:15:06.885881506 DEBUG ONVIF Video Camera V1.3                    Name	VideoAnalyticsConfigurationToken
13:15:06.887721182 DEBUG ONVIF Video Camera V1.3                    Type	tt:ReferenceToken
13:15:06.889989079 DEBUG ONVIF Video Camera V1.3                3	table: 0x13d0570
13:15:06.942378873 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x13d04f8
13:15:06.944364595 DEBUG ONVIF Video Camera V1.3                    Name	Rule
13:15:06.947013002 DEBUG ONVIF Video Camera V1.3                    Type	xs:string
13:15:06.984978353 DEBUG ONVIF Video Camera V1.3            Data	table: 0x147fd30
13:15:06.988600579 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x13d6888
13:15:06.996538133 DEBUG ONVIF Video Camera V1.3                _attr	table: 0x147fe10
13:15:07.005790891 DEBUG ONVIF Video Camera V1.3                  Name	IsTamper
13:15:07.011794267 DEBUG ONVIF Video Camera V1.3                  Type	xs:boolean
13:15:07.014408548 DEBUG ONVIF Video Camera V1.3            _attr	table: 0x147fe60
13:15:07.016779240 DEBUG ONVIF Video Camera V1.3              IsProperty	true
13:15:07.019136805 DEBUG ONVIF Video Camera V1.3        _attr	table: 0x13d7fc0
13:15:07.021727336 DEBUG ONVIF Video Camera V1.3          topic	true
13:15:07.024326867 DEBUG ONVIF Video Camera V1.3      FieldDetector	table: 0x14381c0
13:15:07.026703016 DEBUG ONVIF Video Camera V1.3        ObjectsInside	table: 0x14b32c0
13:15:07.029631848 DEBUG ONVIF Video Camera V1.3          _attr	table: 0x1489450
13:15:07.032221670 DEBUG ONVIF Video Camera V1.3            topic	true
13:15:07.036007859 DEBUG ONVIF Video Camera V1.3          MessageDescription	table: 0x14b3310
13:15:07.039629544 DEBUG ONVIF Video Camera V1.3            Source	table: 0x14b33d8
13:15:07.042390329 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x14b3388
13:15:07.045863176 DEBUG ONVIF Video Camera V1.3                1	table: 0x14b3428
13:15:07.051443665 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x14b3450
13:15:07.053869107 DEBUG ONVIF Video Camera V1.3                    Name	VideoSourceConfigurationToken
13:15:07.056496222 DEBUG ONVIF Video Camera V1.3                    Type	tt:ReferenceToken
13:15:07.058911040 DEBUG ONVIF Video Camera V1.3                2	table: 0x1395250
13:15:07.063398332 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x13952e8
13:15:07.066326580 DEBUG ONVIF Video Camera V1.3                    Name	VideoAnalyticsConfigurationToken
13:15:07.069906930 DEBUG ONVIF Video Camera V1.3                    Type	tt:ReferenceToken
13:15:07.072484377 DEBUG ONVIF Video Camera V1.3                3	table: 0x1395338
13:15:07.075478918 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x13952c0
13:15:07.082000975 DEBUG ONVIF Video Camera V1.3                    Name	Rule
13:15:07.083007962 DEBUG ONVIF Video Camera V1.3                    Type	xs:string
13:15:07.086192134 DEBUG ONVIF Video Camera V1.3            _attr	table: 0x14b3360
13:15:07.088570867 DEBUG ONVIF Video Camera V1.3              IsProperty	true
13:15:07.091054603 DEBUG ONVIF Video Camera V1.3            Data	table: 0x15d3c20
13:15:07.093435919 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x15d3d18
13:15:07.096051617 DEBUG ONVIF Video Camera V1.3                _attr	table: 0x15d3d68
13:15:07.098426225 DEBUG ONVIF Video Camera V1.3                  Name	IsInside
13:15:07.102100911 DEBUG ONVIF Video Camera V1.3                  Type	xs:boolean
13:15:07.104478727 DEBUG ONVIF Video Camera V1.3            Key	table: 0x1489388
13:15:07.107256680 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x14893b0
13:15:07.110686025 DEBUG ONVIF Video Camera V1.3                _attr	table: 0x1489400
13:15:07.113651108 DEBUG ONVIF Video Camera V1.3                  Name	ObjectId
13:15:07.116768862 DEBUG ONVIF Video Camera V1.3                  Type	xs:integer
13:15:07.122094927 DEBUG ONVIF Video Camera V1.3        _attr	table: 0x1489508
13:15:07.124505536 DEBUG ONVIF Video Camera V1.3          topic	true
13:15:07.127158818 DEBUG ONVIF Video Camera V1.3      _attr	table: 0x14380e8
13:15:07.129535634 DEBUG ONVIF Video Camera V1.3        topic	true
13:15:07.133240279 DEBUG ONVIF Video Camera V1.3      LineDetector	table: 0x1406c18
13:15:07.136792795 DEBUG ONVIF Video Camera V1.3        Crossed	table: 0x1406c88
13:15:07.139222030 DEBUG ONVIF Video Camera V1.3          _attr	table: 0x1438050
13:15:07.141974898 DEBUG ONVIF Video Camera V1.3            topic	true
13:15:07.145372326 DEBUG ONVIF Video Camera V1.3          MessageDescription	table: 0x1406cd8
13:15:07.148607583 DEBUG ONVIF Video Camera V1.3            Source	table: 0x13ba6f8
13:15:07.151439162 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x13ba748
13:15:07.156437135 DEBUG ONVIF Video Camera V1.3                1	table: 0x13ba798
13:15:07.158994831 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x13ba7c0
13:15:07.161506693 DEBUG ONVIF Video Camera V1.3                    Name	VideoSourceConfigurationToken
13:15:07.163882134 DEBUG ONVIF Video Camera V1.3                    Type	tt:ReferenceToken
13:15:07.166643419 DEBUG ONVIF Video Camera V1.3                2	table: 0x13ba810
13:15:07.169181115 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x1381090
13:15:07.172756798 DEBUG ONVIF Video Camera V1.3                    Name	VideoAnalyticsConfigurationToken
13:15:07.175295452 DEBUG ONVIF Video Camera V1.3                    Type	tt:ReferenceToken
13:15:07.179158685 DEBUG ONVIF Video Camera V1.3                3	table: 0x13810e0
13:15:07.181795342 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x1381068
13:15:07.185575697 DEBUG ONVIF Video Camera V1.3                    Name	Rule
13:15:07.192836108 DEBUG ONVIF Video Camera V1.3                    Type	xs:string
13:15:07.196996433 DEBUG ONVIF Video Camera V1.3            Data	table: 0x13811c0
13:15:07.199629673 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x13ba720
13:15:07.203147563 DEBUG ONVIF Video Camera V1.3                _attr	table: 0x15390f8
13:15:07.205524254 DEBUG ONVIF Video Camera V1.3                  Name	ObjectId
13:15:07.207988156 DEBUG ONVIF Video Camera V1.3                  Type	xs:integer
13:15:07.210545186 DEBUG ONVIF Video Camera V1.3            _attr	table: 0x1539148
13:15:07.213606938 DEBUG ONVIF Video Camera V1.3              IsProperty	true
13:15:07.218357362 DEBUG ONVIF Video Camera V1.3        _attr	table: 0x1438078
13:15:07.221801041 DEBUG ONVIF Video Camera V1.3          topic	true
13:15:07.225614231 DEBUG ONVIF Video Camera V1.3      CellMotionDetector	table: 0x1408798
13:15:07.230395739 DEBUG ONVIF Video Camera V1.3        _attr	table: 0x1406ba8
13:15:07.233036771 DEBUG ONVIF Video Camera V1.3          topic	true
13:15:07.235406962 DEBUG ONVIF Video Camera V1.3        Motion	table: 0x1513928
13:15:07.237771195 DEBUG ONVIF Video Camera V1.3          _attr	table: 0x1406b80
13:15:07.240359559 DEBUG ONVIF Video Camera V1.3            topic	true
13:15:07.243968743 DEBUG ONVIF Video Camera V1.3          MessageDescription	table: 0x14ac210
13:15:07.246363768 DEBUG ONVIF Video Camera V1.3            Source	table: 0x147db50
13:15:07.250069163 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x147dba0
13:15:07.254174527 DEBUG ONVIF Video Camera V1.3                1	table: 0x147dbf0
13:15:07.257722543 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x147dc18
13:15:07.260435202 DEBUG ONVIF Video Camera V1.3                    Name	VideoSourceConfigurationToken
13:15:07.266799671 DEBUG ONVIF Video Camera V1.3                    Type	tt:ReferenceToken
13:15:07.268304380 DEBUG ONVIF Video Camera V1.3                2	table: 0x147dc68
13:15:07.269678960 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x142e1c0
13:15:07.273737990 DEBUG ONVIF Video Camera V1.3                    Name	VideoAnalyticsConfigurationToken
13:15:07.276122765 DEBUG ONVIF Video Camera V1.3                    Type	tt:ReferenceToken
13:15:07.278497831 DEBUG ONVIF Video Camera V1.3                3	table: 0x142e210
13:15:07.282651197 DEBUG ONVIF Video Camera V1.3                  _attr	table: 0x142e198
13:15:07.285038722 DEBUG ONVIF Video Camera V1.3                    Name	Rule
13:15:07.290439747 DEBUG ONVIF Video Camera V1.3                    Type	xs:string
13:15:07.294537987 DEBUG ONVIF Video Camera V1.3            Data	table: 0x142e2f0
13:15:07.295740812 DEBUG ONVIF Video Camera V1.3              SimpleItemDescription	table: 0x147db78
13:15:07.308963139 DEBUG ONVIF Video Camera V1.3                _attr	table: 0x147cf28
13:15:07.310307968 DEBUG ONVIF Video Camera V1.3                  Name	IsMotion
13:15:07.312076476 DEBUG ONVIF Video Camera V1.3                  Type	xs:boolean
13:15:07.315082101 DEBUG ONVIF Video Camera V1.3            _attr	table: 0x147cf78
13:15:07.316556809 DEBUG ONVIF Video Camera V1.3              IsProperty	true
13:15:07.317928722 INFO ONVIF Video Camera V1.3  CellMotionDetector found
13:15:07.321338192 INFO ONVIF Video Camera V1.3  Motion events enabled; using topic RuleEngine/CellMotionDetector/Motion, item IsMotion
13:15:07.326414584 DEBUG ONVIF Video Camera V1.3  Found Tamper L1 Topic: TamperDetector
13:15:07.332096576 DEBUG ONVIF Video Camera V1.3  	L2 Topic: Tamper, name=IsTamper
13:15:07.333498698 INFO ONVIF Video Camera V1.3  Tamper events available
13:15:07.341257623 DEBUG ONVIF Video Camera V1.3  Found Line-crossed L1 Topic:	LineDetector
13:15:07.344441462 DEBUG ONVIF Video Camera V1.3  	L2 Topic: Crossed, name=ObjectId
13:15:07.352625898 INFO ONVIF Video Camera V1.3  LineCross events available
13:15:07.355680650 DEBUG ONVIF Video Camera V1.3  Current motion switch value: 	On
13:15:07.357125816 INFO ONVIF Video Camera V1.3  Subscribing to events for	Front Camera
13:15:07.365830725 DEBUG ONVIF Video Camera V1.3  Sending Subscribe request to http://192.168.1.154/onvif/Events
13:15:07.416097794 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:15:07.423258702 INFO ONVIF Video Camera V1.3  Successfully subscribed to events for	Front Camera
13:15:07.431500807 INFO ONVIF Video Camera V1.3  	Duration = 10.0 minutes
13:15:07.433450694 INFO ONVIF Video Camera V1.3  	Ref Address:	http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:15:07.447509920 DEBUG ONVIF Video Camera V1.3  Scheduling subscription renewal to run in 09:04
13:15:07.472109481 INFO ONVIF Video Camera V1.3  <Device: 53cb916c-d598-4cfe-955a-6011e89ada50 (Front Camera)> emitting event: {"attribute_id":"status","capability_id":"partyvoice23922.onvifstatus","component_id":"info","state":{"value":"Subscribed to events"}}
13:15:07.493761876 INFO ONVIF Video Camera V1.3  Front Camera initialized
13:15:07.512575693 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:15:07.519364424 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:15:09.611282486 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:15:09.617574203 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:17:26.188177070 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:17:26.192857036 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:17:45.190852008 DEBUG ONVIF Video Camera V1.3  Sending RenewSubscription request to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:17:45.292146756 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 401 Unauthorized
13:17:45.300192901 DEBUG ONVIF Video Camera V1.3  auth_record: 	Digest qop="auth", realm="TV-IP321PI", nonce="4e555130524545344d444d364e325a6c595449325a546b3d"
13:17:45.307310811 DEBUG ONVIF Video Camera V1.3  Authorization record:
13:17:45.309853217 DEBUG ONVIF Video Camera V1.3  	type: Digest
13:17:45.318909057 DEBUG ONVIF Video Camera V1.3  	qop: auth
13:17:45.323488229 DEBUG ONVIF Video Camera V1.3  	nonce: 4e555130524545344d444d364e325a6c595449325a546b3d
13:17:45.327523385 DEBUG ONVIF Video Camera V1.3  	realm: TV-IP321PI
13:17:45.331145154 DEBUG ONVIF Video Camera V1.3  auth_header: 	Digest username="admin", realm="TV-IP321PI", nonce="4e555130524545344d444d364e325a6c595449325a546b3d", uri="/onvif/Events/SubManager_18:15:06Z_2", response="885c7fcb93dce105309d699667a27386", qop=auth, cnonce="8955eb73", nc=00000001
13:17:45.334807633 DEBUG ONVIF Video Camera V1.3  Sending RenewSubscription request to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:17:45.464485269 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:17:45.476572612 INFO ONVIF Video Camera V1.3  Successfully renewed subscription for	Front Camera
13:17:45.478052154 INFO ONVIF Video Camera V1.3  	Duration = 17.366666666667 minutes
13:17:45.480587101 DEBUG ONVIF Video Camera V1.3  Re-scheduling subscription renewal to run in 16:26
13:17:45.487388960 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:17:45.494437577 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:17:56.706795536 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:17:56.715208442 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:17:56.744056886 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:17:56.750271645 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:23:03.313709088 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:23:03.322080622 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:23:08.416642162 DEBUG ONVIF Video Camera V1.3  Sending RenewSubscription request to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:23:08.537890467 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 401 Unauthorized
13:23:08.544700581 DEBUG ONVIF Video Camera V1.3  auth_record: 	Digest qop="auth", realm="TV-IP321PI", nonce="4d3055774e5559354e4545364e325a6c5a6a45314f44553d"
13:23:08.549772686 DEBUG ONVIF Video Camera V1.3  Authorization record:
13:23:08.561141265 DEBUG ONVIF Video Camera V1.3  	type: Digest
13:23:08.568059882 DEBUG ONVIF Video Camera V1.3  	qop: auth
13:23:08.572588472 DEBUG ONVIF Video Camera V1.3  	nonce: 4d3055774e5559354e4545364e325a6c5a6a45314f44553d
13:23:08.577302067 DEBUG ONVIF Video Camera V1.3  	realm: TV-IP321PI
13:23:08.582254127 DEBUG ONVIF Video Camera V1.3  auth_header: 	Digest username="admin", realm="TV-IP321PI", nonce="4d3055774e5559354e4545364e325a6c5a6a45314f44553d", uri="/onvif/Events/SubManager_18:15:06Z_2", response="f04ab352e9a25774b87530adfa75feca", qop=auth, cnonce="64d9a8b2", nc=00000001
13:23:08.584488733 DEBUG ONVIF Video Camera V1.3  Sending RenewSubscription request to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:23:08.737130864 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:23:08.751699161 INFO ONVIF Video Camera V1.3  Successfully renewed subscription for	Front Camera
13:23:08.753161579 INFO ONVIF Video Camera V1.3  	Duration = 21.983333333333 minutes
13:23:08.755786905 DEBUG ONVIF Video Camera V1.3  Re-scheduling subscription renewal to run in 21:03
13:23:08.757253489 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:23:08.765959408 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:23:33.912412408 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:23:33.922300498 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:23:33.942319773 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:23:33.944468594 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:24:04.537972057 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:24:04.541231146 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:24:04.579771112 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:24:04.584512170 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:24:11.468568407 DEBUG ONVIF Video Camera V1.3  Sending RenewSubscription request to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:24:11.619459074 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 401 Unauthorized
13:24:11.624517790 DEBUG ONVIF Video Camera V1.3  auth_record: 	Digest qop="auth", realm="TV-IP321PI", nonce="4e4467794e6b52424d6a63364e325a6d4d4442695a54453d"
13:24:11.636525880 DEBUG ONVIF Video Camera V1.3  Authorization record:
13:24:11.638181615 DEBUG ONVIF Video Camera V1.3  	type: Digest
13:24:11.643194430 DEBUG ONVIF Video Camera V1.3  	qop: auth
13:24:11.652274504 DEBUG ONVIF Video Camera V1.3  	nonce: 4e4467794e6b52424d6a63364e325a6d4d4442695a54453d
13:24:11.658793147 DEBUG ONVIF Video Camera V1.3  	realm: TV-IP321PI
13:24:11.661106869 DEBUG ONVIF Video Camera V1.3  auth_header: 	Digest username="admin", realm="TV-IP321PI", nonce="4e4467794e6b52424d6a63364e325a6d4d4442695a54453d", uri="/onvif/Events/SubManager_18:15:06Z_2", response="5a4ff259cf3d9f17ecbcb23923396fd6", qop=auth, cnonce="64d9a8b2", nc=00000001
13:24:11.666252931 DEBUG ONVIF Video Camera V1.3  Sending RenewSubscription request to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:24:11.793592721 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 200 OK
13:24:11.806308156 INFO ONVIF Video Camera V1.3  Successfully renewed subscription for	Front Camera
13:24:11.807771581 INFO ONVIF Video Camera V1.3  	Duration = 30.916666666667 minutes
13:24:11.812842169 DEBUG ONVIF Video Camera V1.3  Re-scheduling subscription renewal to run in 29:55
13:24:11.815073585 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:24:11.822676322 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:24:35.247038658 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:24:35.255241646 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:25:05.895507822 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:25:05.903095668 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:33:47.646999187 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:33:47.659755188 ERROR ONVIF Video Camera V1.3  Event message receive failed
13:34:11.519633483 DEBUG ONVIF Video Camera V1.3  Sending RenewSubscription request to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:34:11.659388435 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 401 Unauthorized
13:34:11.665633994 DEBUG ONVIF Video Camera V1.3  auth_record: 	Digest qop="auth", realm="TV-IP321PI", nonce="516a45354e6b59334e446f335a6d59354d7a4e6d4d673d3d"
13:34:11.671757550 DEBUG ONVIF Video Camera V1.3  Authorization record:
13:34:11.684042079 DEBUG ONVIF Video Camera V1.3  	type: Digest
13:34:11.689339318 DEBUG ONVIF Video Camera V1.3  	qop: auth
13:34:11.692332781 DEBUG ONVIF Video Camera V1.3  	nonce: 516a45354e6b59334e446f335a6d59354d7a4e6d4d673d3d
13:34:11.695884511 DEBUG ONVIF Video Camera V1.3  	realm: TV-IP321PI
13:34:11.699613204 DEBUG ONVIF Video Camera V1.3  auth_header: 	Digest username="admin", realm="TV-IP321PI", nonce="516a45354e6b59334e446f335a6d59354d7a4e6d4d673d3d", uri="/onvif/Events/SubManager_18:15:06Z_2", response="ce0ccc4675ee301c62ddce5a314f909f", qop=auth, cnonce="99e8f5c6", nc=00000001
13:34:11.703286729 DEBUG ONVIF Video Camera V1.3  Sending RenewSubscription request to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:34:11.776822355 DEBUG ONVIF Video Camera V1.3  HTTP Response Header:	HTTP/1.1 401 Unauthorized
13:34:11.782451146 ERROR ONVIF Video Camera V1.3  RenewSubscription request failed with HTTP Error 401 (camera Front Camera)
13:34:11.788825875 DEBUG ONVIF Video Camera V1.3  <!DOCTYPE html>
<html><head><title>Document Error: Unauthorized</title></head>
<body><h2>Access Error: 401 -- Unauthorized</h2>
<p>Authentication Error: Access Denied! Authorization required.</p>
</body>
</html>

13:34:11.793353176 ERROR ONVIF Video Camera V1.3  Failed to renew subscription to http://192.168.1.154/onvif/Events/SubManager_18:15:06Z_2
13:34:11.796287720 ERROR ONVIF Video Camera V1.3  Subscription renewal failed for	Front Camera
13:34:11.803458682 DEBUG ONVIF Video Camera V1.3  IPCam #1 (configure!) device thread event handled
13:34:18.371374282 ERROR ONVIF Video Camera V1.3  Socket receive failed: timeout
13:34:18.377989102 ERROR ONVIF Video Camera V1.3  Event message receive failed

TRENDnet TV-IP321PI PoE camera

The camera is setup for automatic update of NTP time server and have a Daylight Savings of 60mins. It has an arming schedule that starts at 5am and ends at 10pm.

The log just stops after the last Failed to renew subscription, which happens many times before, but previously the driver tried again and succeeded.

You can download the log file here:

Thanks,
James

Hi,
I enrolled the driver, smartthings detected my 3 Tapo C200 cameras, went to each one and configured user name/ pass, hit refresh and they all responded. I also did not have the option to create a camera group, so I went the API route suggested here with my access token, created the group and added the 3 cameras there.
The issue I have is that I have no feed from the cameras in the group view, all cameras are blank with the spinning icon rotating until a message appears saying it could no connect.
I don’t know what can be the cause since I think I did everything right and according to the several messages I read here.
I have the V2 hub.
Went to the Tapo APP and tried to change the cam resolution from 1080p to 720p but with same results.
They are working with the TinyCam app in my AndroidTV so I’m sure they are properly broadcasting with ONVIF.
The motion sensor is working, only the video feed is not.
Any ideas?

I’ve been having trouble getting the E1 Zoom PTZ Indoor Wi-Fi Camera working. Is there anything special that needs to be done? I found it on ODM and the discovery mode is set to discoverable.

Is it being discovered ?

You might need to try more than once. Or try restarting your camera.

Others have reported that it does work.

It is not being discovered even when checking the logs. But using the ONVIF Manual Device Creator I was able to add it. Is there a difference between the manual and discovery versions of the devices?

I found a workaround for the camera groups. I got an apk of version 1.7 smartthings and was able to create the camera group and view the live feed(I cannot make it Fullscreen though). I tested upgrading back to 1.8.00.22 and both camera groups work.

There is a slight internal difference in the configuration of the device, but once you move a device created with the manual device creator to the ONVIF driver, then it looks and acts as a discovered device.

I don’t know anything about the apk version of SmartThings but that’s good to know for Android users, so thanks for sharing that.

I think this is a limitation for everyone. However you might want to experiment with the resolution settings on the camera or try choosing the main stream instead of sub stream for the Video Stream Selection in device Settings.

I have a question in regards to this driver. Is it possible to have these cameras record video as a response or turn on the siren? Is that a feature that could be possible?

I’m afraid not at this time. The video streaming capability is very limited for those that can get it to work. It’s not officially supported by SmartThings right now with Edge drivers.

Bummer on the video streams not working. I did go back to an older version of SmartThings app and was able to create the camera group. You can upgrade after creating the camera group and it’ll remain. I just can’t seem to get the camera’s to stream there for some reason.

Thanks for all the effort on this app!

Hi @TAustin, how are you?

There is some new about off cameras on Smartthings?
There is a way to fix it ?

Thanks in advance.

1 Like