Level lock

So, I just hooked up HE to home kit presence using a cloud endpoint as described here:

Is there a way to push HE commands to Homekit using a similar approach? Would I be able to push a "lock" command to Homekit from HE?