Yes, I mentioned that in one sentence. That's the correct way to wire an emergency generator to a house. However, I continued beyond that sentence and attempted to reverse engineer what you're doing with the generator, and guessed that you are back feeding the wall outlet with a suicide cord. If this is correct, there are safety issues involved, some of which I detailed. You might want to re-read what I scribbled.
Again, please re-read my previous 2nd paragraph. If you are powering a few appliances from the generator via an extension cord, and NOT backfeeding the wall outlets, then you'll know when the power is back on when the house lights return to normal. The reason you probably can't tell that the power is back on is that you have switched the main breaker to off. You'll need a neon lamp capacitive sensor.
Flipping the main breaker on, while the generator is running, is a great way of blowing up some generators. Flipping the breaker on, while the generator is running, while the power company is working on the lines, is a hazard to the lineman. However, they protect themselves by shorting or grounding the lines, which will usually blow the output breakers on your generator.
The bottom line is that you really should spend the money on a proper transfer switch. It does NOT need to be automatic. Manual transfer switches are much cheaper and good enough. If you have an autostart generator, you will need an automatic transfer switch. If not, use a manual switch:
Some transfer switches are *NOT* intended to run the entire house. They have their own breakers and their own loads off a sub-panel. See Fig 3 wiring diagram at:
When the power returns, the lights and devices that are NOT powered by the transfer box, come back on. Meanwhile the generator is still running the rest of the outlets. Flip the switch, and these loads are now on utility power. Then, you can turn off the generator.
Other transfer switches switch the entire breaker panel.
Since these are installed between the meter and the breaker box, you'll know that power had returned when the meter starts moving.
Note: I have 3 generators, none of which work. Yet another project.