I have the same controller and Joule. Do you have the installation
manual there? There should be a page mentioning about control board. It
should show few examples of the thermostat connection.
Picture of thermostat controller on the wall. The one that wired to the
tank. Also the wiring behind the controller. Do you know made and model
of the thermostat?