Skip to content

Instantly share code, notes, and snippets.

@piitaya
Created January 14, 2025 09:33
Show Gist options
  • Select an option

  • Save piitaya/3acf43e5e9bf9627876a5294cb22b28e to your computer and use it in GitHub Desktop.

Select an option

Save piitaya/3acf43e5e9bf9627876a5294cb22b28e to your computer and use it in GitHub Desktop.
Home Assistant Bambu Lab dashboard view
path: 3d-printer
title: Imprimante 3D
icon: mdi:printer-3d
type: sections
sections:
- type: grid
cards:
- type: heading
heading: Imprimante
heading_style: title
icon: mdi:printer-3d
badges:
- type: entity
show_state: true
show_icon: true
entity: light.bambi_chamber_light
icon: mdi:lightbulb
tap_action:
action: toggle
color: state
- type: entity
show_state: true
show_icon: true
entity: sensor.bambi_nozzle_temperature
icon: ""
color: red
tap_action:
action: more-info
- type: entity
show_state: true
show_icon: true
entity: sensor.bambi_bed_temperature
color: orange
icon: ""
tap_action:
action: more-info
tap_action:
action: navigate
navigation_path: /config/devices/device/d71b915929687f613c7502d206122e71
- camera_view: live
type: picture-glance
entities: []
image_entity: image.bambi_camera
layout_options:
grid_columns: full
- features:
- type: custom:progress-bar-card-feature
type: tile
entity: sensor.bambi_print_progress
name: Avancement
color: primary
- features:
- type: custom:buttons-card-feature
buttons:
- button.bambi_resume_printing
- button.bambi_pause_printing
- button.bambi_stop_printing
type: tile
entity: sensor.bambi_current_stage
name: Étape
color: primary
- type: tile
entity: sensor.bambi_task_name
name: Tâche
color: primary
- type: tile
entity: fan.bambi_aux_fan
name: Auxiliaire
- type: tile
entity: fan.bambi_chamber_fan
name: Chambre
- type: tile
entity: fan.bambi_cooling_fan
name: Réfroidissement
- type: tile
entity: switch.3d_printer_outlet
column_span: 2
row_span: 2
- type: grid
cards:
- type: heading
icon: mdi:palette
heading: AMS 1
heading_style: title
badges:
- type: entity
show_state: true
show_icon: true
entity: sensor.ams_1_multi_sensor_temperature
tap_action:
action: more-info
color: red
- type: entity
show_state: true
show_icon: true
entity: sensor.ams_1_multi_sensor_humidity
tap_action:
action: more-info
color: deep-purple
- type: entity
show_state: true
show_icon: true
entity: sensor.bambi_ams_1_humidity_index
tap_action:
action: more-info
color: deep-purple
tap_action:
action: navigate
navigation_path: /config/devices/device/06727cb38a5c0b20c36a814d78dda66b
- type: custom:mushroom-template-card
entity: sensor.bambi_ams_1_tray_1
primary: |-
{% if state_attr(entity, "empty") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: |-
{% if state_attr(entity, "remain") %}
{% set value = state_attr(entity, "remain") | int(0) * 10 %}
{{ [0, value] | max }}g
{% else %}
-
{% endif %}
icon: |-
{% if state_attr(entity, "empty") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
icon_color: |-
{% if state_attr(entity, "empty") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
layout: vertical
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
badge_color: green
tap_action:
action: more-info
layout_options:
grid_columns: 1
grid_rows: 2
multiline_secondary: false
- type: custom:mushroom-template-card
entity: sensor.bambi_ams_1_tray_2
primary: |-
{% if state_attr(entity, "empty") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: |-
{% if state_attr(entity, "remain") %}
{% set value = state_attr(entity, "remain") | int(0) * 10 %}
{{ [0, value] | max }}g
{% else %}
-
{% endif %}
icon: |-
{% if state_attr(entity, "empty") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
icon_color: |-
{% if state_attr(entity, "empty") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
layout: vertical
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
badge_color: green
tap_action:
action: more-info
layout_options:
grid_columns: 1
grid_rows: 2
multiline_secondary: false
- type: custom:mushroom-template-card
entity: sensor.bambi_ams_1_tray_3
primary: |-
{% if state_attr(entity, "empty") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: |-
{% if state_attr(entity, "remain") %}
{% set value = state_attr(entity, "remain") | int(0) * 10 %}
{{ [0, value] | max }}g
{% else %}
-
{% endif %}
icon: |-
{% if state_attr(entity, "empty") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
icon_color: |-
{% if state_attr(entity, "empty") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
layout: vertical
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
badge_color: green
tap_action:
action: more-info
layout_options:
grid_columns: 1
grid_rows: 2
multiline_secondary: false
- type: custom:mushroom-template-card
entity: sensor.bambi_ams_1_tray_4
primary: |-
{% if state_attr(entity, "empty") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: |-
{% if state_attr(entity, "remain") %}
{% set value = state_attr(entity, "remain") | int(0) * 10 %}
{{ [0, value] | max }}g
{% else %}
-
{% endif %}
icon: |-
{% if state_attr(entity, "empty") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
icon_color: |-
{% if state_attr(entity, "empty") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
layout: vertical
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
badge_color: green
tap_action:
action: more-info
layout_options:
grid_columns: 1
grid_rows: 2
multiline_secondary: false
- type: heading
icon: mdi:palette
heading: AMS 2
heading_style: title
badges:
- type: entity
show_state: true
show_icon: true
entity: sensor.ams_2_multi_sensor_temperature
tap_action:
action: more-info
color: red
- type: entity
show_state: true
show_icon: true
entity: sensor.ams_2_multi_sensor_humidity
tap_action:
action: more-info
color: deep-purple
- type: entity
show_state: true
show_icon: true
entity: sensor.bambi_ams_1_humidity_index
tap_action:
action: more-info
color: deep-purple
tap_action:
action: navigate
navigation_path: /config/devices/device/c5ca09531130203beb122318f87a4110
- type: custom:mushroom-template-card
entity: sensor.bambi_ams_2_tray_1
primary: |-
{% if state_attr(entity, "empty") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: |-
{% if state_attr(entity, "remain") %}
{% set value = state_attr(entity, "remain") | int(0) * 10 %}
{{ [0, value] | max }}g
{% else %}
-
{% endif %}
icon: |-
{% if state_attr(entity, "empty") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
icon_color: |-
{% if state_attr(entity, "empty") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
layout: vertical
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
badge_color: green
tap_action:
action: more-info
layout_options:
grid_columns: 1
grid_rows: 2
multiline_secondary: false
- type: custom:mushroom-template-card
entity: sensor.bambi_ams_2_tray_2
primary: |-
{% if state_attr(entity, "empty") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: |-
{% if state_attr(entity, "remain") %}
{% set value = state_attr(entity, "remain") | int(0) * 10 %}
{{ [0, value] | max }}g
{% else %}
-
{% endif %}
icon: |-
{% if state_attr(entity, "empty") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
icon_color: |-
{% if state_attr(entity, "empty") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
layout: vertical
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
badge_color: green
tap_action:
action: more-info
layout_options:
grid_columns: 1
grid_rows: 2
multiline_secondary: false
- type: custom:mushroom-template-card
entity: sensor.bambi_ams_2_tray_3
primary: |-
{% if state_attr(entity, "empty") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: |-
{% if state_attr(entity, "remain") %}
{% set value = state_attr(entity, "remain") | int(0) * 10 %}
{{ [0, value] | max }}g
{% else %}
-
{% endif %}
icon: |-
{% if state_attr(entity, "empty") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
icon_color: |-
{% if state_attr(entity, "empty") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
layout: vertical
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
badge_color: green
tap_action:
action: more-info
layout_options:
grid_columns: 1
grid_rows: 2
multiline_secondary: false
- type: custom:mushroom-template-card
entity: sensor.bambi_ams_2_tray_4
primary: |-
{% if state_attr(entity, "empty") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: |-
{% if state_attr(entity, "remain") %}
{% set value = state_attr(entity, "remain") | int(0) * 10 %}
{{ [0, value] | max }}g
{% else %}
-
{% endif %}
icon: |-
{% if state_attr(entity, "empty") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
icon_color: |-
{% if state_attr(entity, "empty") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
layout: vertical
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
badge_color: green
tap_action:
action: more-info
layout_options:
grid_columns: 1
grid_rows: 2
multiline_secondary: false
column_span: 1
- type: grid
cards:
- type: heading
heading: Sécheur
heading_style: title
icon: mdi:fire
tap_action:
action: navigate
navigation_path: /config/devices/device/f1e2b65aad38542b4b410276a71cd657
badges:
- show_state: true
show_icon: true
entity: sensor.filament_dryer_temperature
color: red
tap_action:
action: more-info
- show_state: true
show_icon: true
entity: sensor.filament_dryer_humidity
color: deep-purple
tap_action:
action: more-info
- type: custom:mushroom-template-card
primary: |-
{% if is_state(entity, "unknown") %}
Vide
{% else %}
{{ states(entity) | replace("Bambu ", "") }}
{% endif %}
secondary: "-"
icon: |-
{% if is_state(entity, "unknown") %}
mdi:printer-3d-nozzle-off-outline
{% else %}
mdi:printer-3d-nozzle
{% endif %}
entity: sensor.bambi_external_spool_external_spool
icon_color: |-
{% if is_state(entity, "unknown") %}
disabled
{% else %}
{% set color = state_attr(entity, "color") %}
{% if color == "#FFFFFFFF" %}
{{ "#DDDDDD" }}
{% else %}
{{ color[:7] }}
{% endif %}
{% endif %}
badge_color: green
badge_icon: |-
{% if state_attr(entity, "active") %}
mdi:check
{% endif %}
tap_action:
action: more-info
- type: tile
entity: switch.filament_dryer
name: Sécheur
color: deep-orange
- features:
- type: select-options
type: tile
entity: select.filament_dryer_filament_type
name: Filament
icon_tap_action:
action: perform-action
perform_action: automation.trigger
target:
entity_id: automation.filament_dryer_sync
data:
skip_condition: true
- features:
- type: numeric-input
style: buttons
type: tile
entity: number.filament_dryer_drying_temperature
name: Température cible
- type: tile
entity: number.filament_dryer_drying_time
name: Minuteur
color: primary
- type: tile
entity: automation.filament_dryer_sync
name: Sync auto
- type: tile
entity: light.filament_dryer_led
name: Lumière
cards: []
badges:
- type: entity
show_name: false
show_state: true
show_icon: true
entity: sensor.bambi_print_status
- type: entity
show_name: false
show_state: true
show_icon: true
entity: sensor.bambi_print_progress
visibility:
- condition: numeric_state
entity: sensor.bambi_print_progress
above: 0
- type: entity
entity: sensor.bambi_remaining_time
visibility:
- condition: numeric_state
entity: sensor.bambi_remaining_time
above: 0
- type: entity
entity: sensor.3d_printer_outlet_power
color: deep-orange
- type: entity
show_name: false
show_state: true
show_icon: true
entity: sensor.garage_multi_sensor_temperature
color: red
- type: entity
show_name: false
show_state: true
show_icon: true
entity: sensor.garage_multi_sensor_humidity
color: deep-purple
max_columns: 3
dense_section_placement: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment