Have you connected the phone to home wifi?
Have you changed settings on the phone to default to wifi?
What phone do you have?
your phone will still use cellular data when you are not at home.
Cell phones still default to best connection. How good is the home wifi?
When the screen turns off after a certain amount of time WiFi turns off. It is documented on Apple forums(this affects ALL iDevices).