New code for home devices to stop hackers