How can i read Custom Command Class

I have a ID lock 150

I like to read the “COMMAND_CLASS_USER_CODE_V1” for 108, and show it in the UI. How can i do that?

Not knowing what you are actually trying to accomplish, I recommend reading this nice long thread with lots of good info on this lock, and you might also want to check out the Keymaster integration to see if that already does what you want.

If you still want to do your own query, check the docs on the zwave_js.invoke_cc_api action, which is also adeptly explained in this post, to query an arbitrary command class. If you can retrieve the value you want, you may be able to save it using a trigger-based template sensor, or write an automation to update a helper, either of which can be displayed in the UI.