Apple is readying a new software platform that would turn the iPhone into a remote control for lights, security systems and other household appliances, as part of a move into the “internet of things”.