As I said in #2.
As far as the "smart plug" is concerned, details of how it works would also be necessary.
What is the smart plug output, relay or semiconductor...??
If it has a programmable momentary output and is a set of dead contacts, all being safe etc. it can simply be wired across the...