Your drawing is incorrect.
Just a quick tip, if you decide to use a relay, makes sure the switch over from grid to islanding and back is instantaneous and relay functions at the same time.
If there is a delay switching back to mains, make sure you link the relay coil to the contact or source that controls the switch over.
Did you like this article? Share it with your favourite social network.