It looks like i have started something here. The switch attached to the shed door (client) can be either mains or battery ( i have come into possesion of lots of 5v phone chargers so power not a problem). I do have WIFI local router ( i was told to connect through this as better range than just the esp).
SO using get and post requests to send the status of the door is the way to go, sorry i am new to the wifi things and thats where i am falling down. I have used a Uno and set up everthing on it. The door switch when switched operates the servo and the DHT sends the temp to a display so i have it working but all in one place.
I have looked at the wificlient and server examples but still cant figure out how to post the signal switch output? and then then get the signal on the second esp!