2 hubs on WiFi

Hi

This is my first post. Well, I have two separate houses on one boiler. I was planing to put 2 thermostats with thermostat valves. First thermostat to control valves in one hose and second to control other valves. I am wondering how to extend this signal from picture, is it possible?