Placing any RF devices very close to each other can cause mutual interference, so best avoided. Particularly true for a WiFi router and any ZigBee hub (like ST) since they share the same 2. 4GHz band. A separation of 30+ cm should be sufficient, but as long as you avoid stacking them or touching, you probably will be OK.