Button to start operate smartplug for a defined time period

Also you need to format the pasted yaml correctly see point 11 here. You can edit your post to fix this.