- Go to the phone's security options
- Set the Lock type to "None" (this clears any password)
- Open up your automation platform of choice
- Change your Keyguard off task to use the Secure Settings "Disable Pin/Password/Pattern" option
- Change your Keyguard on task to "Enable Pin/Password/Pattern"
Note: This may not work on encrypted devices
Additionally, this issue can be bypassed if you are rooted and using the Xposed Framework using the Notification Direct Launcher module.