# Thermostat Configuration

This guide walks through the SmartPID on-device configuration screens for setting up a single-channel thermostat, typically used for fermentation temperature control. Access these screens by navigating to **Configuration** on your SmartPID device.

## Configuration Menu

From the main Configuration menu, select **HW setup** to configure the hardware relay assignments for your thermostat.

![](https://771697612-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEzhWP2LGeXaKgS2qr4%2F-L_2ySOcevNkwzmhe5f5%2F-L_2zPH-Nczzxe-DBdEe%2Fimage.png?alt=media\&token=a409c3c9-8c16-42a8-b011-5e8a9780ee24)

## HW Setup -- Control and Heating/Cooling Modes

In the **HW setup** screen, configure the following settings:

* **Control Mode**: Set to **T-static** for standard thermostat operation (maintaining a fixed target temperature).
* **Heating Mode**: Set to **ON/OFF** for relay-based heating control.
* **Cooling Mode**: Set to **ON/OFF** for relay-based cooling control.
* **Multi Control**: Set to **Dual** if you are using both heating and cooling on a single channel.
* **Out1 Heating**: Set to **Relay1** to assign heating output to the first relay.

![](https://771697612-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEzhWP2LGeXaKgS2qr4%2F-L_2ySOcevNkwzmhe5f5%2F-L_2zSfJmgXfPL2F1WRZ%2Fimage.png?alt=media\&token=ed6025cf-d1a4-407d-8d03-1f715b5ec9c9)

## HW Setup -- Relay Assignments and Button Beep

Scroll down in **HW setup** to configure the remaining relay assignments:

* **Out1 Heating**: **Relay1** -- Heating output is assigned to relay 1.
* **Out1 Cooling**: **Relay2** -- Cooling output is assigned to relay 2.
* **Out2 Heating / Out2 Cooling**: Set to **OFF** if you are using a single-channel configuration.
* **Button Beep**: Set to **No** to disable the audible button press beep, or leave enabled as preferred.

![](https://771697612-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEzhWP2LGeXaKgS2qr4%2F-L_2ySOcevNkwzmhe5f5%2F-L_2zY93zTuekUXuOmIe%2Fimage.png?alt=media\&token=bed227ee-c0af-4660-905f-b7bd61b37812)

## Process Parameter -- Set Points and Timers

In the **Process parameter** screen, configure the temperature set points and timers:

* **Set-Point 1**: The target temperature for heating (e.g., 55.0). This is the temperature Brewfather will control when a fermentation profile is sent.
* **Set-Point 2**: The target temperature for cooling (e.g., 40.0).
* **Timer 1 / Timer 2**: Duration timers for each set point. Set to **0:00** if you are controlling the profile from Brewfather.
* **PID1 Kp**: The proportional gain for the PID controller (e.g., 15.0). Adjust based on the responsiveness of your heating system.

![](https://771697612-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEzhWP2LGeXaKgS2qr4%2F-L_2ySOcevNkwzmhe5f5%2F-L_2zeSq9YqUH_bxpaq8%2Fimage.png?alt=media\&token=f3e106f1-0977-4f9b-8696-afe1e3471652)

## Process Parameter -- PID Tuning and Hysteresis

Scroll down in **Process parameter** for additional PID tuning settings:

* **PID1 Kd**: The derivative gain (e.g., 0.0). Helps reduce temperature overshoot.
* **Hysteresis 1**: The temperature band around the set point before the controller activates (e.g., 0.3). A smaller value provides tighter control but more frequent relay cycling.
* **Reset DT 1**: Derivative reset time (e.g., 5.0).
* **Fridge Delay 1**: Compressor delay in minutes (e.g., 3). Protects refrigeration compressors by preventing rapid on/off cycling.
* **PID2 Kp**: Proportional gain for the second PID channel (e.g., 15.0), used if you have a dual-channel setup.

![](https://771697612-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEzhWP2LGeXaKgS2qr4%2F-L_2ySOcevNkwzmhe5f5%2F-L_2zihC-zY37j4wWZ_X%2Fimage.png?alt=media\&token=e99a3407-822a-40b2-9553-3a57bd641413)

## Related docs

* [SmartPID](https://docs.brewfather.app/integrations/smartpid)
* [Devices](https://docs.brewfather.app/devices)
