Well,I will have to seriously consider becoming an outlaw,then.
You definitely can not do it anywhere that has restrictions like most gated communities..or dumb ass hoas..and probably town limits..which put restrictions on everything.
But if you own a piece of recreational land a little out of town they can’t tell you you can not camp out on your property once in awhile.
Usually 14 consecutive days.
Although,no one is actually counting.
I retired to a 55+ community in San Antonio, Texas (Del Webb Hill Country Retreat). People here are installing roof-top solar and battery storage left and right. No problem from the HOA at all. I wanted to close in the fence around my back yard, which needed HOA approval..of 12 projects being scrutinized for approval, 4 were solar.
I am thinking about it myself.