Link Switch and lock problem

Two nights ago I noticed the doors were not locking when I asked Alexa to turn on Goodnight. So I turn back on the lights turn on my phone and run the Goodnight there. Doors still didn’t lock. Do it manually and go to bed.

Night before last we are leaving for the night and run Goodbye from my phone and doors do not lock. I notice all the virtual switches say they are on but the locks they control are all unlocked. I turn off the virtual switches, turn them on and the doors lock.

So if I run a routine with a virtual switch using Link Switch and lock the switch turns on and off but the locks don’t lock or unlock. They all work if I just use the virtual switch.

Any ideas what’s going on and how to fix it? Thanks.