For Everyone interested; here is the full enclosure control (lights, fan and Air purifier → Just report Back/ show status does not work → to see if its on or off…) it’s not pretty, but it works
Here are the resources:
https://docs.octoprint.org/en/master/features/custom_controls.html
https://snapmaker.github.io/Documentation/gcode/M1011
controls:
- children:
- command: M1010 S3 P%(inten)s
confirm: null
default: ''
input:
- default: 0
name: Brightness
parameter: inten
slider:
max: '100'
min: '0'
step: '5'
name: Apply
regex: ''
template: ''
- command: M1010 S3 P100
name: 'On'
type: command
- command: M1010 S3 P0
name: 'Off'
type: command
- command: M1010 S4 P%(fan)s
confirm: null
default: ''
input:
- default: 0
name: Fan speed
parameter: fan
slider:
max: '100'
min: '0'
step: '5'
name: Apply
regex: ''
template: ''
- command: M1010 S4 P100
name: 'On'
type: command
- command: M1010 S4 P0
name: 'Off'
type: command
layout: horizontal
name: Enclosure
- children:
- command: M1011 F0
confirm: null
default: ''
name: 'OFF'
regex: ''
template: ''
- command: M1011 F1
confirm: null
default: ''
name: MIN
regex: ''
template: ''
- command: M1011 F2
default: ''
name: MID
regex: ''
template: ''
- command: M1011 F3
default: ''
name: MAX
regex: ''
template: ''
layout: horizontal
name: Air Purifier