Resource management in home automation systems