I think you’re imagining a scenario where the UPS is getting power through the smart plug. If the UPS is getting power though a smart plug, then the power cycle wouldn’t work reliably because the battery would engage during the power loss, which would defeat the purpose of the smart plug. Better to plug the UPS directly into the socket and connect the smart plug into the UPS.