Hi Shai!
First of all, thank you again for your continued efforts and for taking the time to investigate these issues. I really appreciate your dedication to improving the driver! 
I’ve carried out some additional testing, following your recommendations, and captured a new log using SmartThings CLI.
I think I’ve found something interesting regarding the Event Subscription method, although I’m not entirely sure how your implementation handles this.
Test procedure
To make the results easier to interpret, I started with the following configuration:
-
Motion Rule: MotionAlarm
-
Event Subscription: Base
-
Events: Off
I then started logcat, enabled Events, pressed Refresh, waited for initialization to complete, and triggered motion by walking in front of the camera.
Next, without stopping logcat, I:
-
Changed Motion Rule to CellMotionDetector.
-
Changed Event Subscription to Pull-point.
-
Toggled Events Off, then On.
-
Pressed Refresh and waited for initialization.
-
Triggered motion in front of the camera again.
-
Left logcat running for several additional minutes.
Observations
1. The driver correctly registers both configuration changes.
The log confirms:
Motion rule changed to cell
Event subscription method updated to pullpoint
After Refresh, the driver correctly selects:
Motion events enabled; using topic RuleEngine/CellMotionDetector/Motion, item IsMotion
2. However, the subscription behavior still looks like WS-Base Notification.
Even after selecting Pull-point, toggling Events off/on, and refreshing the device, the driver starts a local event server and sends Subscribe requests.
I would normally expect CreatePullPointSubscription followed by periodic PullMessages requests when using Pull-point.
Neither appears in the log.
Could you clarify whether Pull-point is implemented differently in your driver, whether these operations are logged under different names, or whether the selected method might not be taking effect?
3. Subscription renewal continues briefly after unsubscribing.
After switching Events off, the driver successfully unsubscribes and shuts down the event server.
However, a few seconds later, it attempts to renew the previous subscription, resulting in:
HTTP/1.1 500 Internal Server Error
SOAP ERROR: XML element tag was missing.
The SOAP fault also contains ter:NoProfile.
Could this be a previously scheduled renewal that wasn’t cancelled when Events was switched off?
4. Still no motion events.
Despite repeatedly walking in front of the camera during both configurations, I didn’t see any Motion event or Ignored event entries.
The driver successfully initializes, identifies CellMotionDetector, and creates subscriptions, but no actual motion notifications are received.
Relevant log excerpts
Below are selected excerpts from the logcat session, covering both configurations and the transition between them.
I’ve preserved the original UTC timestamps while omitting repetitive entries and anonymizing identifying information.
11:39:23.462 INFO Event server started and listening on: [HUB_IP]:55951
11:39:23.620 DEBUG Sending Subscribe request
11:39:24.844 INFO Successfully subscribed to events
11:40:03.026 INFO Refresh requested
11:40:07.016 INFO Motion events enabled; using topic VideoSource/MotionAlarm, item State
11:40:07.471 INFO Successfully subscribed to events
11:41:36.349 INFO Motion rule changed to cell
11:41:39.393 INFO Event subscription method updated to pullpoint
11:41:54.622 DEBUG main switch command received: switchOff
11:41:55.875 INFO Unsubscribed to events
11:41:55.880 INFO Event server shutdown
11:41:57.113 DEBUG Sending RenewSubscription request
11:41:57.203 DEBUG HTTP Response Header: HTTP/1.1 500 Internal Server Error
11:41:57.247 WARN SOAP ERROR: XML element tag was missing.
11:41:57.261 ERROR RenewSubscription request failed with HTTP Error 500
11:42:04.122 DEBUG main switch command received: switchOn
11:42:04.132 INFO Event server started and listening on: [HUB_IP]:45451
11:42:04.319 DEBUG Sending Subscribe request
11:42:05.673 INFO Successfully subscribed to events
11:42:24.872 INFO Refresh requested
11:42:28.224 INFO CellMotionDetector found
11:42:28.225 INFO Motion events enabled; using topic RuleEngine/CellMotionDetector/Motion, item IsMotion
11:42:28.226 INFO Ready ch 1/1 | video:yes | motion:yes | events: Device[Trigger] RuleEngine[CellMotionDetector]
11:42:28.411 DEBUG Sending Subscribe request
11:42:28.642 INFO Successfully subscribed to events
11:42:57.415 DEBUG Sending Subscribe request
11:42:58.667 INFO SD: re-subscribed to events
11:42:58.855 DEBUG Sending Subscribe request
11:43:00.105 INFO SD: re-subscribed to events
11:44:15.846 DEBUG Sending RenewSubscription request
11:44:16.551 INFO Successfully renewed subscription
[No Motion event or Ignored event entries observed]
Additional note
I’ve kept the log excerpts relatively short to avoid flooding the thread with repetitive entries.
If you need the complete logcat output or additional SOAP responses for debugging, I’ll be happy to provide a sanitized version in a follow-up post or through a private message.
I don’t know whether these observations point to a driver issue or some unusual behavior in the D-Link camera’s ONVIF implementation.
Hopefully, this will help narrow things down.
Thanks again for your help and patience. It’s greatly appreciated!
Cheers,
Leif