Skip to content

Instantly share code, notes, and snippets.

@mawmawmawm
Created February 21, 2026 21:42
Show Gist options
  • Select an option

  • Save mawmawmawm/cc174a4d105d84fda448f11aa42d12cf to your computer and use it in GitHub Desktop.

Select an option

Save mawmawmawm/cc174a4d105d84fda448f11aa42d12cf to your computer and use it in GitHub Desktop.
3D Print Details in HA
type: grid
cards:
- type: heading
heading_style: title
heading: 3D-Drucker Nerd-Stats
icon: mdi:printer-3d-nozzle
- type: custom:config-template-card
grid_options:
columns: full
entities:
- sensor.prusa_print_graph_span
card:
type: custom:apexcharts-card
grid_options:
columns: full
header:
show: true
show_states: true
colorize_states: true
graph_span: ${ states['sensor.prusa_print_graph_span'].state }
apex_config:
chart:
height: 250
tooltip:
enabled: true
yaxis:
- id: temp
decimals: 0
min: 0
max: 220
apex_config:
tickAmount: 10
- id: Fan
decimals: 0
min: 0
max: 5000
apex_config:
tickAmount: 10
opposite: true
series:
- entity: sensor.prusamini_heatbed_temperature
yaxis_id: temp
name: Heatbed
type: area
stroke_width: 1
color: "#00BFFF"
curve: smooth
group_by:
duration: 5m
func: avg
show:
in_header: true
legend_value: true
- entity: sensor.prusamini_heatbed_target_temperature
yaxis_id: temp
name: Heatbed 🎯
type: line
stroke_width: 1
color: "#ccBFFF"
curve: smooth
group_by:
duration: 5m
func: avg
show:
in_header: true
legend_value: true
- entity: sensor.prusamini_nozzle_temperature
yaxis_id: temp
name: Nozzle
type: line
color: "#ff4c4c"
stroke_width: 2
curve: smooth
group_by:
duration: 5m
func: avg
show:
in_header: true
legend_value: true
- entity: sensor.prusamini_nozzle_target_temperature
yaxis_id: temp
name: Nozzle 🎯
type: line
color: "#ff4cff"
stroke_width: 2
curve: smooth
group_by:
duration: 5m
func: avg
show:
in_header: true
legend_value: true
- entity: sensor.prusamini_z_height
yaxis_id: temp
name: Z-Height
type: line
color: "#00ff00"
stroke_width: 2
curve: smooth
group_by:
duration: 5m
func: avg
show:
in_header: false
legend_value: true
- type: custom:config-template-card
grid_options:
columns: full
entities:
- sensor.prusa_print_graph_span
card:
type: custom:apexcharts-card
grid_options:
columns: full
header:
show: true
show_states: true
colorize_states: true
graph_span: ${ states['sensor.prusa_print_graph_span'].state }
apex_config:
chart:
height: 250
tooltip:
enabled: true
yaxis:
- id: Fan
decimals: 0
min: 0
max: 6000
apex_config:
tickAmount: 12
series:
- entity: sensor.prusamini_hotend_fan
yaxis_id: Fan
name: Hotend Fan
type: line
color: "#00ffff"
stroke_width: 2
curve: smooth
group_by:
duration: 5m
func: avg
show:
in_header: true
legend_value: true
- entity: sensor.prusamini_print_fan
yaxis_id: Fan
name: Print Fan
type: line
color: "#00ccff"
stroke_width: 2
curve: smooth
group_by:
duration: 5m
func: avg
show:
in_header: true
legend_value: true
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: tile
entity: sensor.prusamini
name: Status
vertical: false
features_position: bottom
- type: tile
entity: sensor.prusamini_material
name: Material
vertical: false
- type: tile
entity: sensor.prusamini_print_speed
name: Speed
icon: mdi:car-speed-limiter
vertical: false
- type: tile
entity: sensor.prusamini_print_flow
vertical: false
- type: tile
entity: sensor.prusamini_print_finish
vertical: false
grid_options:
columns: 24
rows: 1
- square: false
type: grid
cards:
- type: horizontal-stack
cards:
- show_name: true
show_icon: true
type: button
entity: button.prusamini_resume_job
name: Resume
tap_action:
action: toggle
- type: button
entity: button.prusamini_pause_job
name: Pause
tap_action:
action: toggle
- type: button
entity: button.prusamini_cancel_job
name: Stop
icon: mdi:stop-circle-outline
tap_action:
action: toggle
- type: gauge
entity: sensor.prusamini_progress
needle: false
max: 100
min: 0
name: Print Progress
grid_options:
columns: 12
rows: auto
columns: 1
- type: picture-glance
camera_view: auto
fit_mode: cover
camera_image: camera.prusamini_preview
entities:
- entity: sensor.prusamini_filename
show_state: true
icon: none
card_mod:
style: |
footer .box {
height: 36px !important;
padding: 0 10px !important;
display: flex !important;
align-items: center !important;
}
ha-icon-button, state-badge {
display: none !important;
}
.entities, .entity {
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}
.state {
white-space: nowrap !important;
overflow: visible !important;
text-overflow: clip !important;
display: block !important;
width: 100% !important;
font-size: 13px;
font-weight: 400;
line-height: 36px !important;
}
.title {
display: none !important;
}
column_span: 2
visibility:
- condition: state
entity: sensor.prusamini
state_not: unavailable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment