2026-10-17 19:32:42 +02:00
|
|
|
# PIR motion sensor (AM312): case light and nozzle LEDs while someone is near
|
|
|
|
|
#
|
2026-11-02 00:35:26 +01:00
|
|
|
# Handled by extras/motion_lights.py, outside the G-code queue: the lights
|
|
|
|
|
# react at once, also during heat waits, AFC loads and other long commands
|
|
|
|
|
# (with [gcode_button] they waited for those to finish).
|
|
|
|
|
#
|
|
|
|
|
# The AM312 keeps its output on as long as it sees movement. The timeout
|
|
|
|
|
# starts when the motion stops, so the lights stay on while someone works at
|
|
|
|
|
# the printer.
|
2026-10-17 19:32:42 +02:00
|
|
|
#
|
|
|
|
|
# someone near: case light near_value, nozzle LEDs white
|
|
|
|
|
# nobody near, print/pause: case light print_value, nozzle LEDs off
|
|
|
|
|
# nobody near, idle: case light idle_value, nozzle LEDs off,
|
|
|
|
|
# logo and Box Turtle logo dim (_STATUS ready)
|
|
|
|
|
#
|
|
|
|
|
# CASELIGHT MODE=ON [VALUE=0.5] | OFF | AUTO overrides the sensor until the
|
2026-11-02 00:35:26 +01:00
|
|
|
# next Klipper restart; CASELIGHT alone shows the state. _LIGHTS_ON turns the
|
|
|
|
|
# lights on as if someone walked by (print start and end, resume).
|
|
|
|
|
# MOTION_LIGHTS_DEBUG ENABLE=1 reports every change in the console. Setting
|
|
|
|
|
# the case light in Mainsail lasts until the next change.
|
2026-10-10 14:24:37 +02:00
|
|
|
|
2026-11-02 00:35:26 +01:00
|
|
|
[motion_lights]
|
2026-10-10 13:45:11 +02:00
|
|
|
pin: !PC0
|
2026-11-02 00:35:26 +01:00
|
|
|
light: caselight
|
|
|
|
|
nozzle_effect: sb_nozzle_light
|
|
|
|
|
timeout: 60 # s without motion before the lights dim or turn off
|
|
|
|
|
near_value: 1.0 # case light while someone is near
|
|
|
|
|
print_value: 0.1 # case light while printing or paused, nobody near
|
|
|
|
|
idle_value: 0.0 # case light while idle, nobody near
|
|
|
|
|
on_value: 1.0 # case light for CASELIGHT MODE=ON
|
|
|
|
|
fade_time: 0.5 # nozzle LED fade (s), same as _STATUS fade_time
|
|
|
|
|
status_gcode: _STATUS # night mode of the logo when nobody is near
|