Ozone generators are indeed dangerous. They can negatively affect all living things. This means that if you breathe ozone in, if your pet breathes it in, or even if your plant takes it in, it could do them harm. Ozone generators should be run only in places that there are no living things.
Remove yourself, any other people, animals, and plants from the room. While ozone is harmful to you, it is also one of the best odor-removing tools on the market. It can even kill pests if you use it over a long period of time.
There’s a handy guide at http://www.damagecontrol-911.com/killing-bugs-and-mold-with-ozone-generators/
Ozone generators aren’t going to be the magical pest-removing tool that you are looking for. It won’t replace a bug exterminator, but it can help it a bit. Running it for a few hours over a week’s time will lessen the amount of insects in your home. There’s no doubt in them leaving or dying, but some may come back if they’ve fled the scene.
If you have a bad infestation, make sure to call an exterminator. Either way, using an ozone generator is dangerous. If you need to turn it off, be sure to cover your mouth and nose if you don’t have a timer on your ozone generator!