Why does my brewpi keep cooling?

My brewpi keeps cooling for a while, then shutting off, then cooling even more. The set temp is 40 degrees. The beer is 36 degrees, but the brewpi keeps cooling it. How do I fix this??

You’ll need to share more details about your system for us to be able to help you.
A photo of your setup will help.

The actuators act on the fridge temperature. The fridge setpoint is determined by the beer temperature. A screenshot of your chart will help a lot. With all the lines enabled.

When I first started it up, it was heating for 3 minutes although the beer temp was higher than the set point.
Now it is sitting idle while it is still warmer than the set point.

It wont allow me to upload any pictures besides the screenshot. It says its still uploading, but nothing ever shows up.

Did you change anything in advanced settings?
Can you show your device list?

Can you copy the JSON text on the control algorithm page?

Please paste it enclosed with 3 backticks:

paste here

I don’t think I changed anything in the advanced settings.

  "kind": "Control",
  "pids": [
    {
      "kind": "Pid",
      "name": "heater1",
      "enabled": true,
      "setPoint": {
        "kind": "SetPointSimple",
        "name": "fridgeset",
        "value": 14.4453
      },
      "inputSensor": {
        "kind": "TempSensorFallback",
        "onBackupSensor": false,
        "sensor": {
          "kind": "TempSensor",
          "name": "fridge",
          "sensor": {
            "kind": "OneWireTempSensor",
            "value": 12.75,
            "connected": true,
            "address": "28F743C107000082",
            "calibrationOffset": 0
          }
        }
      },
      "inputError": -1.7148,
      "Kp": 10,
      "Ti": 600,
      "Td": 60,
      "p": 17.1484,
      "i": 1.0391,
      "d": 15.7813,
      "actuatorIsNegative": false,
      "outputActuator": {
        "kind": "ActuatorPwm",
        "value": 33.9688,
        "period": 4,
        "minVal": 0,
        "maxVal": 100,
        "target": {
          "kind": "ActuatorMutexDriver",
          "mutexGroup": {
            "kind": "ActuatorMutexGroup",
            "deadTime": 1800000,
            "waitTime": 1799981
          },
          "target": {
            "kind": "ActuatorPin",
            "state": true,
            "pin": 16,
            "invert": false
          }
        }
      }
    },
    {
      "kind": "Pid",
      "name": "heater2",
      "enabled": true,
      "setPoint": {
        "kind": "SetPointSimple",
        "name": "beer2set",
        "value": null
      },
      "inputSensor": {
        "kind": "TempSensor",
        "name": "beer2",
        "sensor": {
          "kind": "TempSensorDisconnected",
          "value": null,
          "connected": false
        }
      },
      "inputError": null,
      "Kp": 10,
      "Ti": 600,
      "Td": 60,
      "p": 0,
      "i": 0,
      "d": 0,
      "actuatorIsNegative": false,
      "outputActuator": {
        "kind": "ActuatorPwm",
        "value": 0,
        "period": 4,
        "minVal": 0,
        "maxVal": 100,
        "target": {
          "kind": "ActuatorMutexDriver",
          "mutexGroup": {
            "kind": "ActuatorMutexGroup",
            "deadTime": 1800000,
            "waitTime": 1799979
          },
          "target": {
            "kind": "ActuatorNop",
            "state": false
          }
        }
      }
    },
    {
      "kind": "Pid",
      "name": "cooler",
      "enabled": true,
      "setPoint": {
        "kind": "SetPointSimple",
        "name": "fridgeset",
        "value": 14.4453
      },
      "inputSensor": {
        "kind": "TempSensorFallback",
        "onBackupSensor": false,
        "sensor": {
          "kind": "TempSensor",
          "name": "fridge",
          "sensor": {
            "kind": "OneWireTempSensor",
            "value": 12.75,
            "connected": true,
            "address": "28F743C107000082",
            "calibrationOffset": 0
          }
        }
      },
      "inputError": -1.7148,
      "Kp": 10,
      "Ti": 1800,
      "Td": 200,
      "p": 17.1484,
      "i": 0,
      "d": 52.5391,
      "actuatorIsNegative": true,
      "outputActuator": {
        "kind": "ActuatorPwm",
        "value": 0,
        "period": 1200,
        "minVal": 0,
        "maxVal": 100,
        "target": {
          "kind": "ActuatorMutexDriver",
          "mutexGroup": {
            "kind": "ActuatorMutexGroup",
            "deadTime": 1800000,
            "waitTime": 1799976
          },
          "target": {
            "kind": "ActuatorTimeLimited",
            "minOnTime": 120,
            "minOffTime": 180,
            "maxOnTime": 65535,
            "state": false,
            "target": {
              "kind": "ActuatorPin",
              "state": false,
              "pin": 17,
              "invert": false
            }
          }
        }
      }
    },
    {
      "kind": "Pid",
      "name": "beer2fridge",
      "enabled": true,
      "setPoint": {
        "kind": "SetPointSimple",
        "name": "beer1set",
        "value": 4.4453
      },
      "inputSensor": {
        "kind": "TempSensor",
        "name": "beer1",
        "sensor": {
          "kind": "OneWireTempSensor",
          "value": 12.8125,
          "connected": true,
          "address": "288416C107000004",
          "calibrationOffset": 0
        }
      },
      "inputError": 8.3555,
      "Kp": 2,
      "Ti": 7200,
      "Td": 1200,
      "p": -16.7109,
      "i": -0.1602,
      "d": 58.7969,
      "actuatorIsNegative": false,
      "outputActuator": {
        "kind": "ActuatorSetPoint",
        "targetSetPoint": {
          "kind": "SetPointSimple",
          "name": "fridgeset",
          "value": 14.4453
        },
        "targetSensor": {
          "kind": "TempSensor",
          "name": "fridge",
          "sensor": {
            "kind": "OneWireTempSensor",
            "value": 12.75,
            "connected": true,
            "address": "28F743C107000082",
            "calibrationOffset": 0
          }
        },
        "referenceSetPoint": {
          "kind": "SetPointSimple",
          "name": "beer1set",
          "value": 4.4453
        },
        "output": 10,
        "achieved": 8.3047,
        "minimum": -10,
        "maximum": 10
      }
    }
  ]
}