Learning floodlight controller