@ashgupta - this works as intended. What you are likely missing is what I missed originally. I was thinking there would be an open/close “switch” that I could use. It seems there isn’t. What you need is to first ensure the device is securely included, validate by using HABmin to see if Using Security is a green checkmark in attributes. Once that is confirmed, then you need to create a virtual item to use as a switch, or use a Site Map to create a “switch” on the sitemap that will operate the door. The sitemap will use a mapping of 0 and 255 for the two states.
Reference this post in the OH2 Security testing thread: OH2 Z-Wave refactoring and testing... and SECURITY - #297 by whwkins
If you would like to “validate” this before creating the map or virtual item - use the API (REST Documentation under MISC in Addons in PaperUI). You can test sending a 0 and 255 to the controller to validate.