Auto set random lock code

We rent our home out on AirBnB when we’re away, have a Z-Wave Yale Front Door Lock, and want to generate a random guest code for new guests.
Current state is that we have a static code for all AirBnB guests that I occassionally change manually, but I’m really trying to automate both the randomisation and setting of code.
I’ve managed to integrate the ‘random’ platform to set a random number every time it’s called, but I can’t seem to call it and set a code to one of my lock nodes, and simultaneously save that same code as a text input so I can call it at any point using Siri etc.
Any advice is very much appreciated… Once I get this integration it opens up a whole new world of opportunity for further integrations with AirBnB calendar etc, so I’m pretty eager to get this working.

Maybe the following post can help you get started?

Exactly what I was looking for thanks @RickKramer!

There’s a whole integration for managing locks as well.

1 Like