Exec 2.0 : Updated : new functionalities to address your concerns

Is your hs-100.sh same as TP-LINK HS100 Smart Plug (WiFi)? - #16 by Paul_Atkin ? The script works but I can’t get it to work in openhab2 with what you did.