Use HA to generate random x1 use code on ID lock 150 door lock


I’m new to HA and have the following setup:

I’d like to make an automation where HA checks my Nextcloud calendar to see if there is an appointment with the cleaner, asks the lock to generate a random x1 service code, returns the code to HA which sendes a sms through my phone to the cleaner.

So far no luck using the entities showing up in HA. Also installed Keymaster through HACS, but this is only a UI in lovelace for code management as far as I understood. What am I missing here? Is it possible to achive this by sending raw z-wave messages through the zwave_js.set_config_parameter service (see user guide above section COMMAND_CLASS_CONFIGURATION)?