Added search mac till found

After the light switch is switched on, mac adresses are searched until
found. Switching it off will stop the search.