To connect to the correct ports, consult the manufacturer's instructions. The thermostat display can be connected to the base if wires are flushed to the wall. Don't connect any new wires to the smart thermostat.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.