First pcb design is it safe?
To start with, if this is something you're going to install permanently in your home, it probably needs to meet the local building code requirements. In the USA, this would generally mean the NEC, which in turn would imply UL listing. Your jurisdiction may be different in the details, but the gist will be equivalent &mdash; if you don't meet this requirement, your homeowner's insurance might deny a claim, and you could face criminal prosecution in the event of property damage and/or personal injury.

But ignoring that for the moment, the first key requirement is isolation: can you draw a line across your schematic with all of the mains-connected items on one side and all of the low-voltage items on the other, with only components with suitable isolation crossing that line? Can you draw a similar line on your PCB, with at least an 8mm physical gap between the conductors? If not, then the design cannot be considered "safe" by most measures. This is just the first step in making sure that the end user cannot contact lethal voltages.

A second requirement is to mitigate the effects of component failures, such as making sure that short circuits don't allow excessive currents to flow. You have some fuses, etc. in your design, so you largely have this covered. However, you also need to make sure that you are protected against the kinds of surges that can occur on mains-connected equipment, such as those induced by nearby lightning strikes. This is another reason that isolation is important &mdash; including among the different conductors on the mains side of the isolation barrier you drew above. Spark gaps, MOVs, and other components can help prevent such surges from propagating into more delicate areas of your circuitry.