Fill out above information andin all cases attach yourklippy.logfile (use zip to compress it, if too big). Pasting yourprinter.cfgis not needed Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there
Describe your issue:
Hello everyone,
my name is Frank and I am new in your Forum.
I use two printer with Mainline Klipper (Sidewinder X2 and Sovol SV08) and I do have one question concerning writing a macro.
I upgraded my SV08 with an Enclosure Heating and Temperature Sensor. The Heating (220V) is controlled by a Shelly Relay switching on and off. This Relay is inserted in the “moonraker.conf” as a power device (see):
Which heater and thermistor are you using? A link would be helpful here.
Does heater have its own internal temperature PID control, or does it rely on external control? If it relies on external control, you can configure it as a heater_generic with a heater and thermistor pin and let Klipper control it.
it is a small 60 x 60 mm PTC Heater. BUT it is not about the Heater or the Sensor!! They are working fine, in my configuration.
It is about the Shelly Relay controlling this Heater (On / Off). I want to know if it is possible to receive the information about the Status of this Relay from Klipper/Moonraker?
In the list of the Power Button I see the Status of this Relay.
I can turn it on and off and the the Icon is changing. So I assume, that Klipper knows about the Status of this Power Device. But how can I call up this information?
Kind request: Please use the Preformatted Text feature of the forum editor when posting code. It’s way better readable then and leading spaces are not omitted.
I learned in the last weeks, that the status information (state) of a power device configured in the moonraker.conf is NOT available in Klipper (to use it in a macro)!
You can switch this device with macros in the printer.cfg of Klipper on or off, but you can not get the state of this device in Klipper for other purposes (i.e. macro “if …….. else………”).
This is my latest level of knowledge. If I am wrong, please let me know. Tks.