Smart plugs and Node-Red will take care of this for you, unless you are also trying to control temperature.
Smart plugs and Node-Red will take care of this for you, unless you are also trying to control temperature.