1. We can turn off the switch when we go out home.

2. We can turn off the switch when we go out of home.

3. We can turn off the switch when we go out of my home.

4. We can turn off the switch when we go out of our home.

---------------
Are these sentences grammatical?
Which ones are right?

1 and four are grammatical. In 2, "of home" is too vague. "of our homes" would be a better phrase. In 3, We and my do not agree. We is plural, my is singular.