Sensors

Most of the sensor objects come straight from the API. It is available here

Default Sensors

Sensors that are added on integration startup.

Default Sensors

Sensor Name

Description

Definition

Printer State

State of the Printer

From Moonraker API (printer info, state)

Printer Message

Printer global message

From Moonraker API (printer info, state_message)

Current Print Sate

State of the print, available values [“standby”, “printing”, “paused”, “complete”, “cancelled”, “error”]

From Moonraker API (print_stats, state)

Current Print Message

Message about current print

From Moonraker API (print_stats, message)

Current Display Message

Display Message, sent via SET_DISPLAY_TEXT MSG=<message>

From Moonraker API (display_status, message)

Extruder Temperature

Extruder Temperature (Multiple extruders are supported)

From Moonraker API (extruder, temperature)

Extruder Temperature Target

Extruder Temperature Target (Multiple extruders are supported)

From Moonraker API (extruder, target)

Extruder Power

Extruder current power consumption (in %). 100% = Max, 0% = close (Multiple extruders are supported)

From Moonraker API (extruder, power)

Bed Temperature

Bed Temperature

From Moonraker API (heater_bed, temperature)

Bed Temperature Target

Bed Temperature Target

From Moonraker API (heater_bed, target)

Bed Power

Bed current power consumption (in %). 100% = Max, 0% = close

From Moonraker API (heater_bed, power)

Filename

Filename of the current print

From Moonraker API (print_stats, filename)

print Projected Total Duration

Total predicted duration of the print

Based on our Calculated Percentage of Completion

print time left

Total predicted length left for the print

Based on our Calculated Percentage of Completion

print ETA

Estimated time at which the print will be finished

Based on our Calculated Percentage of Completion

print duration

Print duration from start to now

From Moonraker API (print_stats, print_duration)

Filament Used

Filament used since the start of current print

From Moonraker API (print_stats, filament_used)

progress

Percentage of the current GCode file printed

From Moonraker API (display_status, filament_used)

Fan Speed

Percentage of fan speed

From Moonraker API (fan, speed)

Slicer Print Duration Estimate

Total duration of the print as estimated by the slicer

From Moonraker API (files_metadata, estimated_time)

Slicer Print Time Left Estimate

Remaining time on the print according to the slicer estimate

Based on the slicer print duration estimate and the print duration so far

Toolhead position X

X position of the toolhead

From Moonraker API (toolhead, position, x)

Toolhead position Y

Y position of the toolhead

From Moonraker API (toolhead, position, y)

Toolhead position Z

Z position of the toolhead

From Moonraker API (toolhead, position, z)

Current Layer

Current layer being printed.

Based on our Calculated Current Layer

Object Height

Object Height of the current print.

From Moonraker API (files_metadata, object_height)

Total Layer

Total number of layer in the current print.

From Moonraker API (print_stats, info, total_layer). Make sure your Slicer include it. Details

History Sensors

History info, if enabled in moonraker config.

History Sensors

Sensor Name

Description

Definition

Totals jobs

Number of jobs ever ran.

From Moonraker API (job_totals, total_jobs)

Totals Print Time

Cumulative print time

From Moonraker API (job_totals, total_print_time)

Totals Filament Used

Cumulative filament used.

From Moonraker API (job_totals, total_filament_used)

Longest Print

Time of the historical longest print.

From Moonraker API (job_totals, longest_print)

Binary Sensors

Binary Sensors are used to represent a single binary value. They can are used for triggers, main use cases is the filament runout sensor.

Binary Sensors

Sensor Name

Description

Definition

Filament Switch Sensor

True if filament is missing

From Moonraker API

Current Layer

Current layer will be fetched from the value set by SET_PRINT_STATS_INFO CURRENT_LAYER=[layer_number] if available, otherwise it will be calculated based on print height and layer height.

Note: In the first min of the prints, it is expected that the probe will move for calibration and aligement. So you should expect that number to move weirdly unlil the actual print starts.

Optional Sensors

  • For every optional fan object available in [heater_fan, controller_fan, fan_generic] we will create a sensor showing fan speed.

  • For every optional temperature object available in [temperature_sensor, temperature_fan, bme280, htu21d, lm75] we will create a sensor showing sensor temperature.

  • For every heater_generic object we will create sensors showing the

    temperature, the target and the power.

Optional Temperature Sensor

You can add additional temperature sensor in your moonraker configuration.

In your printer.cfg

[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100

[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100