ESP8266 And W5100 Home Network Control

I am going to try and explain this as best as i can as people on other forums dont understand “just ask silly questions”

I have two Arduino UNO boards and a W5100 Ethernet shield and a ESP8266 WI-FI Module

What i want to do is have a UNO and ESP8266 in my garage connected to my home network via WI-FI

and have shock/vibration sensor wired in when the sensors are activated i want the ESP8266 to send a message through my internet that the other UNO Connected to the W5100 via Ethernet to my router understands then it powers up a relay to activate a alarm.

So far i have managed to use the ESP8266 to scan for other networks and also display a HTTP webpage. I have also had the W5100 controlling LED’s through web browser address bar commands.

But so far have no code to send commands through my internet from one arduino to the other i dont even know if it is possible

What i need help with is the code for both UNOs if anyone can help it would be much appreciated thank you