You may want to check out this thread about ST not properly logging the state of the switch. It doesn’t address the power-interruption to the switch, but it does imply the overall behavior being the same as what I was experiencing, just with the added quirk of ST being a little weird.