From 2721211456d6e8613e76681d0e06f15c46f8d113 Mon Sep 17 00:00:00 2001 From: Simon Kühling Date: Thu, 12 Dec 2019 13:33:23 +0100 Subject: heater: Add PrinterHeater get_status() function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide a list of available heater and sensor names to gcode macro templates through the printer.heater.available_heaters and printer.heater.available_sensors variables Signed-off-by: Simon Kühling --- docs/Command_Templates.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/Command_Templates.md b/docs/Command_Templates.md index c95ebea4..383c4694 100644 --- a/docs/Command_Templates.md +++ b/docs/Command_Templates.md @@ -160,6 +160,13 @@ The following are common printer attributes: - `printer.toolhead.homed_axes`: The current cartesian axes considered to be in a "homed" state. This is a string containing one or more of "x", "y", "z". +- `printer.heater.available_heaters`: Returns a list of all currently + available heaters by their full config section names, + e.g. `["extruder", "heater_bed", "heater_generic my_custom_heater"]`. +- `printer.heater.available_sensors`: Returns a list of all currently + available temperature sensors by their full config section names, + e.g. `["extruder", "heater_bed", "heater_generic my_custom_heater", + "temperature_sensor electronics_temp"]`. The above list is subject to change - if using an attribute be sure to review the [Config Changes document](Config_Changes.md) when upgrading -- cgit v1.2.3-70-g09d2