Smart home control software for relay cards based on PHP and Smarty