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

Very interesting. I am learning of all sorts of glitches from various camera manufacturer’s ONVIF implementations. The promise of having everyone following a specification and work consistently, seems never to be fulfilled!

If you can get the CLI installed on a computer, getting some log output might shed some light on what’s happening. I’d like to confirm that I’m getting the stream URL from your camera.

Does the device have the imageCapture capability?

Otherwise there are these capabilities what cameras could have:

videoCamera
videoCapture
videoClips
videoStream

imageCapture

webrtc

Thanks for @orangebucket collecting all the capabilities.

Regarding not being able to view the camera feed only on local network. That was normal with the Classic app as well. The feed has to be accessible from the phone directly. So when local address provided the phone cannot access it from a mobile network or out of home.
One option was that to open a port for the camera and use dyndns address.

Device or driver, my devices do have the option, the driver does not present that capability, the platform offers that capability and it is available in a streaming image, at least it is using Android but not available as an automation option

Tod is better positioned to comment on capabilities available in a driver

I am not following things anymore, but I believe the driver should provide this.


{
    "id": "imageCapture",
    "version": 1,
    "status": "live",
    "name": "Image Capture",
    "ephemeral": false,
    "attributes": {
        "image": {
            "schema": {
                "type": "object",
                "properties": {
                    "value": {
                        "title": "URL",
                        "type": "string",
                        "pattern": "^(https?):\\\/\\\/((?:[a-zA-Z0-9.-]|%[0-9A-F]{2}){3,})(?::(\\d+))?((?:\\\/(?:[a-zA-Z0-9-._~!$&'()*+,;=:@]|%[0-9A-F]{2})*)*)(?:\\?((?:[a-zA-Z0-9-._~!$&'()*+,;=:\\\/?@]|%[0-9A-F]{2})*))?(?:#((?:[a-zA-Z0-9-._~!$&'()*+,;=:\\\/?@]|%[0-9A-F]{2})*))?$"
                    }
                },
                "additionalProperties": false,
                "required": [
                    "value"
                ]
            },
            "setter": "take",
            "enumCommands": []
        },
        "encrypted": {
            "schema": {
                "type": "object",
                "properties": {
                    "value": {
                        "type": "boolean"
                    }
                },
                "additionalProperties": false,
                "required": [
                    "value"
                ]
            },
            "enumCommands": []
        },
        "captureTime": {
            "schema": {
                "type": "object",
                "properties": {
                    "value": {
                        "title": "Iso8601Date",
                        "type": "string",
                        "pattern": "^(?:[1-9]\\d{3}-?(?:(?:0[1-9]|1[0-2])-?(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-?(?:29|30)|(?:0[13578]|1[02])-?31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-?02-?29)T(?:[01]\\d|2[0-3]):?[0-5]\\d:?[0-5]\\d(?:\\.\\d{3})?(?:Z|[+-][01]\\d(?::?[0-5]\\d)?)$"
                    }
                },
                "additionalProperties": false,
                "required": [
                    "value"
                ]
            },
            "enumCommands": []
        }
    },
    "commands": {
        "take": {
            "name": "take",
            "arguments": [
                {
                    "name": "correlationId",
                    "optional": true,
                    "schema": {
                        "title": "String",
                        "type": "string",
                        "maxLength": 255
                    }
                },
                {
                    "name": "reason",
                    "optional": true,
                    "schema": {
                        "title": "String",
                        "type": "string",
                        "maxLength": 255
                    }
                }
            ]
        }
    }
}

No doubt dyndns can be utilised by many cameras, for the Hikvision cameras the best integration would be to use Hik connect servers BUT that would be a completely different driver with significant time and cost implications, who knows, Hikvision may be inspired by Tods driver and get on board with Smartthings, as a manufacture

A solution could be running RTSPtoWebRTC on a Pi, exposing that to the Internet and accessing through that the cameras.

Might be better this from the same developer:

Hi @TAustin
Thanks for your efforts.
Many people were waiting to have this done for smartthings since long time

I tried to use your driver and I have 5 Axis cameras ONVIF supported
None of them were discovered by your driver
I used ONVIF Device Manager and I can see all of my cameras
I created ONVIF profile with User nam & Password for each camera but still your driver cant discover them
I have disabled Upnp
ONVIF discover mode is Discoverable in ODM
Enable Zero config is disabled in ODM

CLI logs

Summary

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell Install PowerShell on Windows, Linux, and macOS - PowerShell | Microsoft Docs

PS C:\WINDOWS\System32> cd…
PS C:\WINDOWS> cd…
PS C:> cd users\aminhsm\documents\cli
PS C:\users\aminhsm\documents\cli> .\smartthings edge:drivers:logcat
? Enter hub IP address with optionally appended port number: 192.168.1.58
┌────┬──────────────────────────────────────┬──────────────────────────────────────┐
│ # │ Driver Id │ Name │
├────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ 1 │ 1d68e5c3-03c0-4229-985d-14e225550049 │ ONVIF Video Camera V1 │
│ 2 │ c411db9e-a042-459a-a145-f005c65412ee │ ST Zigbee Button Mc │
│ 3 │ 86d761b1-e962-4756-a9b2-edab02b8567d │ Tasmota Edge │
│ 4 │ 981aab30-6f78-4b31-bf0b-b422bef161ec │ Yeelight.Color │
│ 5 │ 71915c2a-8604-4cd5-aaba-22988490bcbb │ Z-Wave Switch Mc │
│ 6 │ ad9f537d-e2d9-4354-8673-471a5306fad8 │ Zigbee Button Groups │
│ 7 │ 1e45a851-8f07-48d1-bcbf-932fb377e95e │ Zigbee Dimmer Remote │
│ 8 │ ccea734e-e56e-4d2c-a259-3b2e1fdebd82 │ Zigbee Humidity Sensor │
│ 9 │ 6b86005f-95b4-49cb-a3d5-d3a17fd94177 │ Zigbee Light Multifunction Mc │
│ 10 │ d620900d-f7bc-4ab5-a171-6dd159872f7d │ Zigbee Motion Sensor │
│ 11 │ 00425c55-0932-416f-a1ba-78fae98ab614 │ Zigbee Motion Sensor Mc │
│ 12 │ fe12554c-d40f-439c-a57c-cbc0f27b11dd │ Zigbee Multi Switch Test │
│ 13 │ 580a4441-7d16-437e-8cdc-97c03f59e2df │ Zigbee Switch Mc │
│ 14 │ f732925a-9ae3-462a-9641-f03f474c661e │ Zigbee Switch Power Mc │
│ 15 │ 026385b3-dfa9-43e5-b443-cfc42123f042 │ Zigbee Temp Humidity Sensor Mc │
│ 16 │ bd79913f-0309-4256-b669-74c489b81140 │ Zigbee Temp Humidity Sensor Mc-(OLD) │
└────┴──────────────────────────────────────┴──────────────────────────────────────┘
? Select a driver. 1
connecting… connected
2022-05-06T20:21:00.924092291+00:00 TRACE ONVIF Video Camera V1 Setup driver onvifDriver with lifecycle handlers:
DeviceLifecycleDispatcher: onvifDriver
default_handlers:
deleted:
infoChanged:
removed:
doConfigure:
init:
added:
driverSwitched:
child_dispatchers:

2022-05-06T20:21:00.930835957+00:00 TRACE ONVIF Video Camera V1 Setup driver onvifDriver with Capability handlers:
CapabilityCommandDispatcher: onvifDriver
default_handlers:
partyvoice23922.motionevents:
setSwitch
partyvoice23922.refresh:
push
videoStream:
startStream
stopStream
child_dispatchers:

2022-05-06T20:21:00.936315291+00:00 DEBUG ONVIF Video Camera V1 **** ONVIF Driver V1 Start ****
2022-05-06T20:21:00.956386291+00:00 TRACE ONVIF Video Camera V1 Received event with handler environment_info
2022-05-06T20:21:00.963447957+00:00 TRACE ONVIF Video Camera V1 Received event with handler environment_info
2022-05-06T20:21:00.969176957+00:00 DEBUG ONVIF Video Camera V1 Z-Wave hub node ID environment changed.
2022-05-06T20:21:00.977825957+00:00 TRACE ONVIF Video Camera V1 Received event with handler discovery
2022-05-06T20:21:00.988903957+00:00 DEBUG ONVIF Video Camera V1 Starting discovery
2022-05-06T20:21:00.998726624+00:00 DEBUG ONVIF Video Camera V1 Making WS discovery request
2022-05-06T20:21:01.049239291+00:00 DEBUG ONVIF Video Camera V1 Discovery response from: 192.168.1.9
2022-05-06T20:21:01.075359291+00:00 DEBUG ONVIF Video Camera V1 ProbeMatch table: 0x23aab98
2022-05-06T20:21:01.081359291+00:00 DEBUG ONVIF Video Camera V1 EndpointReference table: 0x23aac08
2022-05-06T20:21:01.086735624+00:00 DEBUG ONVIF Video Camera V1 Address urn:uuid:a0d7119e-8b35-42a2-8db9-d7a26ab0b761
2022-05-06T20:21:01.091961957+00:00 DEBUG ONVIF Video Camera V1 MetadataVersion 2
2022-05-06T20:21:01.097689957+00:00 DEBUG ONVIF Video Camera V1 Types wsdp:Device pub:Computer
2022-05-06T20:21:01.103606291+00:00 DEBUG ONVIF Video Camera V1 XAddrs http://AminDSNEW:5357/a0d7119e-8b35-42a2-8db9-d7a26ab0b761
2022-05-06T20:21:01.110663291+00:00 ERROR ONVIF Video Camera V1 Could not find device service IPV4 address
2022-05-06T20:21:01.116658291+00:00 ERROR ONVIF Video Camera V1 discovery thread encountered error: [string “discover.lua”]:97: attempt to index a nil value (local ‘scopestring’)
2022-05-06T20:21:50.395470981+00:00 TRACE ONVIF Video Camera V1 Received event with handler discovery
2022-05-06T20:21:50.433259648+00:00 TRACE ONVIF Video Camera V1 Received event with handler driver_lifecycle
2022-05-06T20:22:02.690679320+00:00 TRACE ONVIF Video Camera V1 Setup driver onvifDriver with lifecycle handlers:
DeviceLifecycleDispatcher: onvifDriver
default_handlers:
infoChanged:
added:
init:
removed:
doConfigure:
deleted:
driverSwitched:
child_dispatchers:

2022-05-06T20:22:02.726647987+00:00 TRACE ONVIF Video Camera V1 Setup driver onvifDriver with Capability handlers:
CapabilityCommandDispatcher: onvifDriver
default_handlers:
videoStream:
startStream
stopStream
partyvoice23922.motionevents:
setSwitch
partyvoice23922.refresh:
push
child_dispatchers:

2022-05-06T20:22:02.756711987+00:00 DEBUG ONVIF Video Camera V1 **** ONVIF Driver V1 Start ****
2022-05-06T20:22:02.854011320+00:00 TRACE ONVIF Video Camera V1 Received event with handler environment_info
2022-05-06T20:22:02.885825987+00:00 TRACE ONVIF Video Camera V1 Received event with handler environment_info
2022-05-06T20:22:02.936358654+00:00 DEBUG ONVIF Video Camera V1 Z-Wave hub node ID environment changed.
2022-05-06T20:22:02.988188654+00:00 TRACE ONVIF Video Camera V1 Received event with handler discovery
2022-05-06T20:22:03.104302320+00:00 DEBUG ONVIF Video Camera V1 Starting discovery
2022-05-06T20:22:03.153213320+00:00 DEBUG ONVIF Video Camera V1 Making WS discovery request
2022-05-06T20:22:03.250740320+00:00 DEBUG ONVIF Video Camera V1 Discovery response from: 192.168.1.9
2022-05-06T20:22:03.302790987+00:00 DEBUG ONVIF Video Camera V1 ProbeMatch table: 0x10c6728
2022-05-06T20:22:03.316310987+00:00 DEBUG ONVIF Video Camera V1 EndpointReference table: 0x10c6798
2022-05-06T20:22:03.322380654+00:00 DEBUG ONVIF Video Camera V1 Address urn:uuid:a0d7119e-8b35-42a2-8db9-d7a26ab0b761
2022-05-06T20:22:03.338015320+00:00 DEBUG ONVIF Video Camera V1 Types wsdp:Device pub:Computer
2022-05-06T20:22:03.343448320+00:00 DEBUG ONVIF Video Camera V1 XAddrs http://AminDSNEW:5357/a0d7119e-8b35-42a2-8db9-d7a26ab0b761
2022-05-06T20:22:03.349570320+00:00 DEBUG ONVIF Video Camera V1 MetadataVersion 2
2022-05-06T20:22:03.370097987+00:00 ERROR ONVIF Video Camera V1 Could not find device service IPV4 address
2022-05-06T20:22:03.376908987+00:00 ERROR ONVIF Video Camera V1 discovery thread encountered error: [string “discover.lua”]:97: attempt to index a nil value (local ‘scopestring’)

Is the time correct on the camera within 5 secs of local time and have you disabled ‘replay attack protection’ within the cameras UI ?

Hi @fido
Thanks for your reply
Time is correct
I have disabled “replay attack protection” in camera UI
Same results, camera cant be discovered

It looks like your camera is returning a host name rather than an IP address for its ONVIF service endpoint. I guess that should be perfectly legal assuming you have a local service that resolves it. However right now the driver is looking for an IPV4 address and not finding it. Let me see about what I need to change to accept a host name. This one could be an easy fix.

I simply haven’t tried to implement image capture yet in my driver. I’d like to get basic video streaming and motion alerts working for everyone first.

Certainly most ONVIF-compliant cameras support this so getting the image is not the issue. The challenge is how to provide that within SmartThings’ framework. Yes, there is a videoCapture capability, but I haven’t played with it and have no idea what it actually does. Right now I can’t even display a video stream output directly from my driver (that’s why you have to use camera groups), so not sure how I would display an image.

I’ve pushed out another driver update (Version 2022-05-06T23:25:03.948615) that addresses a couple things:

  • discovery failures due to ONVIF service address format variations (@amin300)
  • discovery failures due to missing expected data in discovery responses
  • additional logging output needed to debug other reported issues being worked

@fido I trust you’ll let know if I’ve broken anything for you; I made numerous changes to try to accommodate some variations we’re seeing in other camera brands, but trying to be careful not to cause other problems!

My camera group experienced the same issue as @Menz83

The camera group tile turned into a lighting tile, i refreshed a camera within its own tile which resolved the issue and camera group became accessible

I will try adding camera metadata to the profile in my next update. Maybe having an Edge camera category is not sufficient. We should probably report this to Nayely.

An interesting set of routines is available if you have a Samsung phone
Using Bixby routines, you can set a routine to act on a notification, something not, as far as i can see, available natively in ST routines.
If you set a notification on camera movement in ST and the wording in the notification you create is used in a bixby (act on specific notification wording) routine, you can open your native camera app automatically and set a close interval as well
So in affect, movement detected on camera, native camera app opens, closes after set interval

On a phone it might be useful to someone

In all honesty, you can do the same thing with your native camera apps notifications, you dont necessarily have to use an ST notification but if carefully configured it could be useful

Hi @TAustin

Thanks for the updated driver
Now all my 6 cameras have been discovered by your driver
I have updated the user name & Password in settings for ONVIF created provile for each camera but nothing is happening and no video stream

Logs

Summary

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell Install PowerShell on Windows, Linux, and macOS - PowerShell | Microsoft Docs

PS C:\WINDOWS\System32> cd…
PS C:\WINDOWS> cd…
PS C:> cd users\aminhsm\documents\cli
PS C:\users\aminhsm\documents\cli> .\smartthings edge:drivers:logcat
? Enter hub IP address with optionally appended port number: 192.168.1.58
┌────┬──────────────────────────────────────┬──────────────────────────────────────┐
│ # │ Driver Id │ Name │
├────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ 1 │ 1d68e5c3-03c0-4229-985d-14e225550049 │ ONVIF Video Camera V1 │
│ 2 │ c411db9e-a042-459a-a145-f005c65412ee │ ST Zigbee Button Mc │
│ 3 │ 86d761b1-e962-4756-a9b2-edab02b8567d │ Tasmota Edge │
│ 4 │ 981aab30-6f78-4b31-bf0b-b422bef161ec │ Yeelight.Color │
│ 5 │ 71915c2a-8604-4cd5-aaba-22988490bcbb │ Z-Wave Switch Mc │
│ 6 │ ad9f537d-e2d9-4354-8673-471a5306fad8 │ Zigbee Button Groups │
│ 7 │ 1e45a851-8f07-48d1-bcbf-932fb377e95e │ Zigbee Dimmer Remote │
│ 8 │ ccea734e-e56e-4d2c-a259-3b2e1fdebd82 │ Zigbee Humidity Sensor │
│ 9 │ 6b86005f-95b4-49cb-a3d5-d3a17fd94177 │ Zigbee Light Multifunction Mc │
│ 10 │ d620900d-f7bc-4ab5-a171-6dd159872f7d │ Zigbee Motion Sensor │
│ 11 │ 00425c55-0932-416f-a1ba-78fae98ab614 │ Zigbee Motion Sensor Mc │
│ 12 │ fe12554c-d40f-439c-a57c-cbc0f27b11dd │ Zigbee Multi Switch Test │
│ 13 │ 580a4441-7d16-437e-8cdc-97c03f59e2df │ Zigbee Switch Mc │
│ 14 │ f732925a-9ae3-462a-9641-f03f474c661e │ Zigbee Switch Power Mc │
│ 15 │ 026385b3-dfa9-43e5-b443-cfc42123f042 │ Zigbee Temp Humidity Sensor Mc │
│ 16 │ bd79913f-0309-4256-b669-74c489b81140 │ Zigbee Temp Humidity Sensor Mc-(OLD) │
└────┴──────────────────────────────────────┴──────────────────────────────────────┘
? Select a driver. 1
connecting… connected
2022-05-07T10:15:07.897054089+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T10:15:07.907912089+00:00 INFO ONVIF Video Camera V1 <Device: c4e5b84c-294b-4789-952f-018de7c45b1f (IPCam #1 (configure!))> received command: {“args”:{},“capability”:“partyvoice23922.refresh”,“command”:“push”,“component”:“info”,“positional_args”:{}}
2022-05-07T10:15:07.916577756+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T10:15:07.922261089+00:00 INFO ONVIF Video Camera V1 Refresh requested
2022-05-07T10:15:07.928672089+00:00 INFO ONVIF Video Camera V1 Starting Device Initialization routine for IPCam #1 (configure!)
2022-05-07T10:15:07.936651756+00:00 ERROR ONVIF Video Camera V1 IPCam #1 (configure!) thread encountered error: [string “st/dispatcher.lua”]:229: Error encountered while processing event for <Device: c4e5b84c-294b-4789-952f-018de7c45b1f (IPCam #1 (configure!))>:
arg1: table: 0x1d5adb0
[string “init.lua”]:123: attempt to concatenate a nil value (field ‘vendname’)
2022-05-07T10:15:48.806820761+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T10:15:48.863563094+00:00 INFO ONVIF Video Camera V1 <Device: 94289e17-3194-43b6-a2f4-8105d54df88f (IPCam #2 (configure!))> received command: {“args”:{},“capability”:“partyvoice23922.refresh”,“command”:“push”,“component”:“info”,“positional_args”:{}}
2022-05-07T10:15:48.916228761+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T10:15:48.936754427+00:00 INFO ONVIF Video Camera V1 Refresh requested
2022-05-07T10:15:49.009311094+00:00 INFO ONVIF Video Camera V1 Starting Device Initialization routine for IPCam #2 (configure!)
2022-05-07T10:15:49.051086094+00:00 ERROR ONVIF Video Camera V1 IPCam #2 (configure!) thread encountered error: [string “st/dispatcher.lua”]:229: Error encountered while processing event for <Device: 94289e17-3194-43b6-a2f4-8105d54df88f (IPCam #2 (configure!))>:
arg1: table: 0x1da17a8
[string “init.lua”]:125: attempt to concatenate a nil value (field ‘location’)
2022-05-07T10:16:08.136737763+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T10:16:08.145834096+00:00 INFO ONVIF Video Camera V1 <Device: 82d51cf5-5bb0-4360-a5c1-bb440edb5f0e (IPCam #3 (configure!))> received command: {“args”:{},“capability”:“partyvoice23922.refresh”,“command”:“push”,“component”:“info”,“positional_args”:{}}
2022-05-07T10:16:08.156602096+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T10:16:08.162244763+00:00 INFO ONVIF Video Camera V1 Refresh requested
2022-05-07T10:16:08.170481429+00:00 INFO ONVIF Video Camera V1 Starting Device Initialization routine for IPCam #3 (configure!)
2022-05-07T10:16:08.177909763+00:00 ERROR ONVIF Video Camera V1 IPCam #3 (configure!) thread encountered error: [string “st/dispatcher.lua”]:229: Error encountered while processing event for <Device: 82d51cf5-5bb0-4360-a5c1-bb440edb5f0e (IPCam #3 (configure!))>:
arg1: table: 0x1e36970
[string “init.lua”]:125: attempt to concatenate a nil value (field ‘location’)
2022-05-07T10:16:17.656786764+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T10:16:17.671750097+00:00 INFO ONVIF Video Camera V1 <Device: 05eadeca-8df0-4b1a-acac-95550ae0f55d (IPCam #4 (configure!))> received command: {“args”:{},“capability”:“partyvoice23922.refresh”,“command”:“push”,“component”:“info”,“positional_args”:{}}
2022-05-07T10:16:17.687788431+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T10:16:17.722204431+00:00 INFO ONVIF Video Camera V1 Refresh requested
2022-05-07T10:16:17.740104097+00:00 INFO ONVIF Video Camera V1 Starting Device Initialization routine for IPCam #4 (configure!)
2022-05-07T10:16:17.777096431+00:00 ERROR ONVIF Video Camera V1 IPCam #4 (configure!) thread encountered error: [string “st/dispatcher.lua”]:229: Error encountered while processing event for <Device: 05eadeca-8df0-4b1a-acac-95550ae0f55d (IPCam #4 (configure!))>:
arg1: table: 0x1e119d0
[string “init.lua”]:125: attempt to concatenate a nil value (field ‘location’)
2022-05-07T10:16:25.336749432+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T10:16:25.346955098+00:00 INFO ONVIF Video Camera V1 <Device: 7dbcbc00-f025-447a-a25a-bbe37cc8f703 (IPCam #5 (configure!))> received command: {“args”:{},“capability”:“partyvoice23922.refresh”,“command”:“push”,“component”:“info”,“positional_args”:{}}
2022-05-07T10:16:25.356590432+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T10:16:25.362231432+00:00 INFO ONVIF Video Camera V1 Refresh requested
2022-05-07T10:16:25.373271765+00:00 INFO ONVIF Video Camera V1 Starting Device Initialization routine for IPCam #5 (configure!)
2022-05-07T10:16:25.380915098+00:00 ERROR ONVIF Video Camera V1 IPCam #5 (configure!) thread encountered error: [string “st/dispatcher.lua”]:229: Error encountered while processing event for <Device: 7dbcbc00-f025-447a-a25a-bbe37cc8f703 (IPCam #5 (configure!))>:
arg1: table: 0x1dd6800
[string “init.lua”]:125: attempt to concatenate a nil value (field ‘location’)
2022-05-07T10:16:32.716740766+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T10:16:32.725710766+00:00 INFO ONVIF Video Camera V1 <Device: 4c5c82e4-33b1-4960-b639-62a8b4140dfb (IPCam #6 (configure!))> received command: {“args”:{},“capability”:“partyvoice23922.refresh”,“command”:“push”,“component”:“info”,“positional_args”:{}}
2022-05-07T10:16:32.734779099+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T10:16:32.740355432+00:00 INFO ONVIF Video Camera V1 Refresh requested
2022-05-07T10:16:32.746152766+00:00 INFO ONVIF Video Camera V1 Starting Device Initialization routine for IPCam #6 (configure!)
2022-05-07T10:16:32.752283766+00:00 ERROR ONVIF Video Camera V1 IPCam #6 (configure!) thread encountered error: [string “st/dispatcher.lua”]:229: Error encountered while processing event for <Device: 4c5c82e4-33b1-4960-b639-62a8b4140dfb (IPCam #6 (configure!))>:
arg1: table: 0x1e11cf8
[string “init.lua”]:125: attempt to concatenate a nil value (field ‘location’)

another logs

Summary

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell Install PowerShell on Windows, Linux, and macOS - PowerShell | Microsoft Docs

PS C:\WINDOWS\System32> cd…
PS C:\WINDOWS> cd…
PS C:> cd users\Aminhsm\documents\cli
PS C:\users\Aminhsm\documents\cli> .\smartthings edge:drivers:logcat
? Enter hub IP address with optionally appended port number: 192.168.1.58
┌────┬──────────────────────────────────────┬──────────────────────────────────────┐
│ # │ Driver Id │ Name │
├────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ 1 │ 1d68e5c3-03c0-4229-985d-14e225550049 │ ONVIF Video Camera V1 │
│ 2 │ c411db9e-a042-459a-a145-f005c65412ee │ ST Zigbee Button Mc │
│ 3 │ 86d761b1-e962-4756-a9b2-edab02b8567d │ Tasmota Edge │
│ 4 │ 981aab30-6f78-4b31-bf0b-b422bef161ec │ Yeelight.Color │
│ 5 │ 71915c2a-8604-4cd5-aaba-22988490bcbb │ Z-Wave Switch Mc │
│ 6 │ ad9f537d-e2d9-4354-8673-471a5306fad8 │ Zigbee Button Groups │
│ 7 │ 1e45a851-8f07-48d1-bcbf-932fb377e95e │ Zigbee Dimmer Remote │
│ 8 │ ccea734e-e56e-4d2c-a259-3b2e1fdebd82 │ Zigbee Humidity Sensor │
│ 9 │ 6b86005f-95b4-49cb-a3d5-d3a17fd94177 │ Zigbee Light Multifunction Mc │
│ 10 │ d620900d-f7bc-4ab5-a171-6dd159872f7d │ Zigbee Motion Sensor │
│ 11 │ 00425c55-0932-416f-a1ba-78fae98ab614 │ Zigbee Motion Sensor Mc │
│ 12 │ fe12554c-d40f-439c-a57c-cbc0f27b11dd │ Zigbee Multi Switch Test │
│ 13 │ 580a4441-7d16-437e-8cdc-97c03f59e2df │ Zigbee Switch Mc │
│ 14 │ f732925a-9ae3-462a-9641-f03f474c661e │ Zigbee Switch Power Mc │
│ 15 │ 026385b3-dfa9-43e5-b443-cfc42123f042 │ Zigbee Temp Humidity Sensor Mc │
│ 16 │ bd79913f-0309-4256-b669-74c489b81140 │ Zigbee Temp Humidity Sensor Mc-(OLD) │
└────┴──────────────────────────────────────┴──────────────────────────────────────┘
? Select a driver. 1
connecting… connected
2022-05-07T13:05:36.816749037+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T13:05:36.833497370+00:00 INFO ONVIF Video Camera V1 <Device: c4e5b84c-294b-4789-952f-018de7c45b1f (IPCam #1 (configure!))> received command: {“args”:{},“capability”:“videoStream”,“command”:“startStream”,“component”:“main”,“positional_args”:{}}
2022-05-07T13:05:36.849826037+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T13:05:36.856563703+00:00 DEBUG ONVIF Video Camera V1 Streaming handler invoked with command startStream
2022-05-07T13:05:36.863212703+00:00 DEBUG ONVIF Video Camera V1 IPCam #1 (configure!) device thread event handled
2022-05-07T13:05:36.955656037+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T13:05:36.963684703+00:00 INFO ONVIF Video Camera V1 <Device: 05eadeca-8df0-4b1a-acac-95550ae0f55d (IPCam #4 (configure!))> received command: {“args”:{},“capability”:“videoStream”,“command”:“startStream”,“component”:“main”,“positional_args”:{}}
2022-05-07T13:05:36.970841037+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T13:05:36.988246037+00:00 DEBUG ONVIF Video Camera V1 Streaming handler invoked with command startStream
2022-05-07T13:05:36.993882037+00:00 DEBUG ONVIF Video Camera V1 IPCam #4 (configure!) device thread event handled
2022-05-07T13:05:37.102938037+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T13:05:37.113564037+00:00 INFO ONVIF Video Camera V1 <Device: 94289e17-3194-43b6-a2f4-8105d54df88f (IPCam #2 (configure!))> received command: {“args”:{},“capability”:“videoStream”,“command”:“startStream”,“component”:“main”,“positional_args”:{}}
2022-05-07T13:05:37.119711703+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T13:05:37.125123370+00:00 DEBUG ONVIF Video Camera V1 Streaming handler invoked with command startStream
2022-05-07T13:05:37.130620703+00:00 DEBUG ONVIF Video Camera V1 IPCam #2 (configure!) device thread event handled
2022-05-07T13:05:37.426890703+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T13:05:37.466950037+00:00 INFO ONVIF Video Camera V1 <Device: 7dbcbc00-f025-447a-a25a-bbe37cc8f703 (IPCam #5 (configure!))> received command: {“args”:{},“capability”:“videoStream”,“command”:“startStream”,“component”:“main”,“positional_args”:{}}
2022-05-07T13:05:37.497043370+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T13:05:37.510986704+00:00 DEBUG ONVIF Video Camera V1 Streaming handler invoked with command startStream
2022-05-07T13:05:37.566976370+00:00 DEBUG ONVIF Video Camera V1 IPCam #5 (configure!) device thread event handled
2022-05-07T13:06:06.006764837+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T13:06:06.016616170+00:00 INFO ONVIF Video Camera V1 <Device: c4e5b84c-294b-4789-952f-018de7c45b1f (IPCam #1 (configure!))> received command: {“args”:{},“capability”:“videoStream”,“command”:“stopStream”,“component”:“main”,“positional_args”:{}}
2022-05-07T13:06:06.026610504+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T13:06:06.033789170+00:00 DEBUG ONVIF Video Camera V1 Streaming handler invoked with command stopStream
2022-05-07T13:06:06.039813837+00:00 DEBUG ONVIF Video Camera V1 IPCam #1 (configure!) device thread event handled
2022-05-07T13:06:06.144126170+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T13:06:06.153173170+00:00 INFO ONVIF Video Camera V1 <Device: 94289e17-3194-43b6-a2f4-8105d54df88f (IPCam #2 (configure!))> received command: {“args”:{},“capability”:“videoStream”,“command”:“stopStream”,“component”:“main”,“positional_args”:{}}
2022-05-07T13:06:06.159356837+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T13:06:06.164655170+00:00 DEBUG ONVIF Video Camera V1 Streaming handler invoked with command stopStream
2022-05-07T13:06:06.170163170+00:00 DEBUG ONVIF Video Camera V1 IPCam #2 (configure!) device thread event handled
2022-05-07T13:06:06.287657170+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T13:06:06.296735504+00:00 INFO ONVIF Video Camera V1 <Device: 7dbcbc00-f025-447a-a25a-bbe37cc8f703 (IPCam #5 (configure!))> received command: {“args”:{},“capability”:“videoStream”,“command”:“stopStream”,“component”:“main”,“positional_args”:{}}
2022-05-07T13:06:06.302794170+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T13:06:06.308876170+00:00 DEBUG ONVIF Video Camera V1 Streaming handler invoked with command stopStream
2022-05-07T13:06:06.314733837+00:00 DEBUG ONVIF Video Camera V1 IPCam #5 (configure!) device thread event handled
2022-05-07T13:06:06.432575504+00:00 TRACE ONVIF Video Camera V1 Received event with handler capability
2022-05-07T13:06:06.440862504+00:00 INFO ONVIF Video Camera V1 <Device: 05eadeca-8df0-4b1a-acac-95550ae0f55d (IPCam #4 (configure!))> received command: {“args”:{},“capability”:“videoStream”,“command”:“stopStream”,“component”:“main”,“positional_args”:{}}
2022-05-07T13:06:06.447381837+00:00 TRACE ONVIF Video Camera V1 Found CapabilityCommandDispatcher handler in onvifDriver
2022-05-07T13:06:06.452678504+00:00 DEBUG ONVIF Video Camera V1 Streaming handler invoked with command stopStream
2022-05-07T13:06:06.458102837+00:00 DEBUG ONVIF Video Camera V1 IPCam #4 (configure!) device thread event handled

@fido I’ve played around with this for a couple weeks, there some interesting little things you can and do with it. You can add a ST interaction in with that in the “Then” statement to trigger a vEdge Switch, I haven’t tried it with a vEdge Motion sensor, but again just playing around to see if it has real utilitarian value.
I’m on a Note20 Ultra.

mine have onvif and were not detected