I've never thought of using a smart plug button as a switch to run a script - pretty neat idea I might use for some other projects.
I hope you have more luck than me with sticking with the switch instead of just editing /etc/hosts.
I hope you have more luck than me with sticking with the switch instead of just editing /etc/hosts.
Was a good hack for a bit, but then the children figured out they could actually use the same button to _find their mom_, since the she was usually colocated with the phone!