Configuring a resistor with two temperature sensors

Hi, I have a Voron 2.4 and I’m configuring a glass resistor for it. I can control it with Klipper’s native resistor configuration. The problem is that this resistor can get so hot that it starts melting the panels. I have two sensors in the enclosure, one for the internal temperature and another near the resistor to monitor the temperature near the walls. If I set a limit of 70 degrees, I have no problems. What I don’t know is how I can control the resistor’s temperature so that it first turns off when it exceeds 70 degrees and then if I set an internal temperature of 40 degrees. How can I condition one sensor with the other during printing, including being able to make modifications during printing? Thanks in advance.

I assume you are talking about some sort of chamber heater, not some mystical glass resistor.

There are 2.5 ways to control something with 2 temperature sensors.

One is temperature_combined and uses the max/avg for input, as an example to the PID.

It is possible to do so with macro magic, like a loop that runs every N seconds, and/or adapt fan/display templates for that.

Technically, it would be possible to limit that heater with this PR:

1 Like

For the future, please read and follow the instructions provided when opening a post in a certain category here. Moved post to “General” category.

The heaters are the typical glass cylinders with a resistor inside that you can see in many types of heaters. I’ve put one on each side of the bed and I like it because they generate heat in a non-localized manner. I control it with a thermostat on one side and a solid-state relay connected to the motherboard on the other, for safety redundancy.
I’ve been checking what you’ve told me and I really appreciate your information. The first method doesn’t fit what I need. Because if I set it to the minimum, the temperature rises above 100 degrees and damages the panels. If I set it to the maximum, it would take a long time to heat up, and setting it to the middle wouldn’t be very precise either. I wouldn’t know how to do the macros, and the third, I don’t have the skill set to be able to program in Python without requiring months of development, so I’d change the heater method first.
What I need is something that controls the temperature of the resistor using the camera sensor as the master, but if the temperature of the sensor next to the resistor exceeds 75 degrees, the resistor stops working.