Heyu/X10 electrical appliances runner and state-machine that can run on OpenWRT wifi routers