Hub and relay for the spark home automation system