With my Arduino Uno and wifi shield I’m trying to make a smart home system, with 6 analog inputs (normal closed) which remotely via a smartphone can be put on and off.
Analog inputs have their value read, not "put" on and off via a cell phone. What you're describing is a digital output. You need to define your requirements a little better, or at least use the proper terminology. There are plenty of examples of controlling digital outputs over the internet, and reading/reporting analog/digital inputs, that a Google search should yield plenty of examples.