August Smartlock Gen4 WiFi integration issues

hi. I’ve successfully installed the August wifi smartlock so that when selecting an Away or Home scene in the Smartthings app, my house comes alive or goes to sleep. I’ve also used the Automations feature so that if the lock is unlocked or locked, it too triggers the houses alive or asleep state.
Everything works well if I manually interact with the lock via the tumbler or with a key.
However, I have the remote keypad for the lock and it doesn’t trigger automation the way I want.
When leaving the house, I press the single lock button on the keypad, the door locks, but the automation is not triggered. When I come home, I type in my passcode, the door unlocks, but again the automation is not triggered.

Anyone got any ideas?