# Changes to PID\_CALIBRATE breaks macro

**URL:** <https://klipper.discourse.group/t/changes-to-pid-calibrate-breaks-macro/26652>\
**Category:** General Discussion\
**Created:** [November 23, 2026, 2:02am UTC](https://klipper.discourse.group/t/changes-to-pid-calibrate-breaks-macro/26652 "2026-11-23T02:02:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsmith](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jsmith](https://klipper.discourse.group/u/jsmith)\
**Post date:** [November 23, 2026, 2:02am UTC](https://klipper.discourse.group/t/changes-to-pid-calibrate-breaks-macro/26652/1 "2026-11-23T02:02:42Z")

</div>

### Basic Information:

Printer Model: Custom IDEX  
 MCU / Printerboard: Octopus  
 Host / SBC Pi 5  
 klippy.log

_Fill out above information and_ _ **in all cases attach your** _ **`klippy.log` _file_** (use zip to compress it, if too big). _Pasting your_ `printer.cfg` _is **not** needed_  
_ **Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there** _

### Describe your issue:

…Updated to latest Klipper and I can no longer overload PID\_CALIBRATE via macro which I need to enable the safety relay that sits ahead of my beds SSR so the bed will heat.

```auto
Config error
Traceback (most recent call last):
  File "/home/pi/klipper/klippy/klippy.py", line 135, in _connect
    cb()
  File "/home/pi/klipper/klippy/extras/gcode_macro.py", line 166, in handle_connect
    raise self.printer.config_error(
configparser.Error: Existing command 'PID_CALIBRATE' not found in gcode_macro rename
```

Log attached  
[klippy.zip](https://klipper.discourse.group/uploads/short-url/th4GHzCKUgaK4JGlIN56zSbl5Qg.zip) (284.7 KB)

---

<div class="post-metadata">

**Author:** ![nefelim4ag](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/nefelim4ag/32/2387_2.png) [@nefelim4ag](https://klipper.discourse.group/u/nefelim4ag)\
**Post date:** [November 23, 2026, 3:10am UTC](https://klipper.discourse.group/t/changes-to-pid-calibrate-breaks-macro/26652/2 "2026-11-23T03:10:38Z")

</div>

Yeah, that is unfortunate, and probably should be fixed.  
Right now you can reorder the macro in the config, if you define something like:

```auto
[gcode_macro PID_CALIBRATE]
rename_existing: PID_CALIBRATE_ORIG
gcode:
  PID_CALIBRATE_ORIG

```

After the heater, it should work.

Hope that helps,  
-Timofey

---

<div class="post-metadata">

**Author:** ![jsmith](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jsmith](https://klipper.discourse.group/u/jsmith)\
**Post date:** [November 23, 2026, 5:27am UTC](https://klipper.discourse.group/t/changes-to-pid-calibrate-breaks-macro/26652/3 "2026-11-23T05:27:31Z")

</div>

Not sure what you mean by reorder it ? This is the macro

```auto
[gcode_macro PID_CALIBRATE]
rename_existing: PID_CALIBRATE_ORIG
description: Saftey relay needs enabled before PID_CALIBRATE will work
gcode:

    {% set h = params.HEATER %}
    {% set t = params.TARGET %}
    
    {% if h == "heater_bed" %}
      BEDHEATER_ON
    {% endif %}

    PID_CALIBRATE_ORIG HEATER={h} TARGET={t}
    
    {% if h == "heater_bed" %}
      BEDHEATER_OFF
    {% endif %}
```

---

<div class="post-metadata">

**Author:** ![MRX8024](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@MRX8024](https://klipper.discourse.group/u/MRX8024)\
**Post date:** [November 23, 2026, 10:23am UTC](https://klipper.discourse.group/t/changes-to-pid-calibrate-breaks-macro/26652/4 "2026-11-23T10:23:43Z")

</div>

> [@jsmith](#):
>
> Not sure what you mean by reorder it ? This is the macro

In the configuration file, move this `[gcode_macro]`section so that it is below the `[heater]` section.
