The service for locking is lock.lock
not lock.locked
… but AFAIK you cannot use service calls directly in the notification actions you need to set a wait for trigger (or a separate automation) to listen for the response event and then execute the service call.
1 Like