Last active
August 2, 2025 13:09
-
-
Save Predhu/08acf850eb84f3dede1131ecd91cd230 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type: custom:stack-in-card | |
| card_mod: | |
| style: "ha-card * {--ha-card-border-width: 0; --vertical-stack-card-gap: 0px; }" | |
| cards: | |
| - type: grid | |
| columns: 2 | |
| square: false | |
| cards: | |
| - type: custom:mushroom-template-card | |
| primary: Prusa MK4 | |
| icon: mdi:printer-3d | |
| entity: sensor.prusamk4 | |
| secondary: >- | |
| {{ state_translated("sensor.prusamk4") }} {% if | |
| has_value("sensor.prusamk4_progress") %} • {{ | |
| states("sensor.prusamk4_progress", with_unit=true)}} {% endif %} | |
| icon_color: |- | |
| {% if is_state("sensor.prusamk4", "idle") %} | |
| primary | |
| {% elif is_state("sensor.prusamk4", "busy") %} | |
| blue-grey | |
| {% elif is_state("sensor.prusamk4", "printing") %} | |
| green | |
| {% elif is_state("sensor.prusamk4", "paused") %} | |
| amber | |
| {% elif is_state("sensor.prusamk4", "finished") %} | |
| purple | |
| {% elif is_state("sensor.prusamk4", "stopped") %} | |
| deep-orange | |
| {% elif is_state("sensor.prusamk4", "error") %} | |
| red | |
| {% elif is_state("sensor.prusamk4", "attention") %} | |
| yellow | |
| {% elif is_state("sensor.prusamk4", "ready") %} | |
| primary | |
| {% else %} | |
| primary | |
| {% endif %} | |
| badge_icon: |- | |
| {% if is_state("sensor.prusamk4", "paused") %} | |
| mdi:pause-circle-outline | |
| {% elif is_state("sensor.prusamk4", "stopped") %} | |
| mdi:stop-circle-outline | |
| {% elif is_state("sensor.prusamk4", "error") %} | |
| mdi:close-circle-outline | |
| {% elif is_state("sensor.prusamk4", "attention") %} | |
| mdi:alert-circle-outline | |
| {% endif %} | |
| badge_color: accent | |
| tap_action: | |
| action: none | |
| double_tap_action: | |
| action: none | |
| - type: grid | |
| columns: 2 | |
| square: false | |
| cards: | |
| - type: horizontal-stack | |
| cards: [] | |
| - type: horizontal-stack | |
| cards: | |
| - type: custom:mushroom-entity-card | |
| icon: mdi:pause | |
| icon_color: amber | |
| entity: button.prusamk4_pause_job | |
| layout: vertical | |
| visibility: | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: printing | |
| secondary_info: none | |
| primary_info: none | |
| - type: custom:mushroom-entity-card | |
| icon: mdi:play | |
| icon_color: green | |
| entity: button.prusamk4_resume_job | |
| layout: vertical | |
| visibility: | |
| - condition: or | |
| conditions: | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: paused | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: error | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: paused | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: attention | |
| secondary_info: none | |
| primary_info: none | |
| - type: custom:mushroom-entity-card | |
| icon: mdi:stop | |
| icon_color: red | |
| entity: button.prusamk4_cancel_job | |
| layout: vertical | |
| tap_action: | |
| action: none | |
| double_tap_action: | |
| action: none | |
| secondary_info: none | |
| primary_info: none | |
| visibility: | |
| - condition: or | |
| conditions: | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: printing | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: paused | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: error | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: attention | |
| - type: vertical-stack | |
| visibility: | |
| - condition: or | |
| conditions: | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: printing | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: paused | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: error | |
| - condition: state | |
| entity: sensor.prusamk4 | |
| state: attention | |
| cards: | |
| - type: custom:timer-bar-card | |
| entity: sensor.prusamk4_filename | |
| guess_mode: true | |
| text_width: 70px | |
| icon: mdi:printer-3d-nozzle | |
| end_time: | |
| entity: sensor.prusamk4_print_finish | |
| start_time: | |
| entity: sensor.prusamk4_print_start | |
| mushroom: | |
| primary_info: state | |
| icon_type: none | |
| - type: picture-entity | |
| show_state: false | |
| show_name: false | |
| camera_view: live | |
| entity: camera.prusamk4_preview | |
| camera_image: camera.prusamk4_preview | |
| aspect_ratio: 640x480 | |
| - type: horizontal-stack | |
| cards: | |
| - type: custom:mushroom-chips-card | |
| chips: | |
| - type: entity | |
| entity: sensor.prusamk4_print_start | |
| - type: entity | |
| entity: sensor.prusamk4_print_finish | |
| - type: entity | |
| entity: sensor.prusamk4_progress | |
| icon: mdi:chart-donut | |
| - type: entity | |
| entity: sensor.prusamk4_z_height | |
| icon: mdi:gantry-crane | |
| alignment: center | |
| - type: custom:mushroom-chips-card | |
| chips: | |
| - type: entity | |
| entity: sensor.prusamk4_material | |
| - type: entity | |
| entity: sensor.prusamk4_nozzle_diameter | |
| - type: entity | |
| entity: sensor.prusamk4_nozzle_temperature | |
| icon: mdi:printer-3d-nozzle-heat | |
| - type: entity | |
| entity: sensor.prusamk4_heatbed_temperature | |
| icon: mdi:radiator | |
| - type: entity | |
| entity: sensor.prusamk4_hotend_fan | |
| icon: mdi:fan | |
| alignment: center |
Author
Try to (re)install the Timer Bar Card custom component. Either from HACS or from https://github.com/rianadon/timer-bar-card
Try to (re)install the Timer Bar Card custom component. Either from HACS or from https://github.com/rianadon/timer-bar-card
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Love this card! I'm using it for all of my printers. I am having a little issue with though where I'm getting this configuration error.

I am very new to coding but have been learning...I can't quite seem to find the issue in my adapted code (basically changed the printer name in your code with the one I have).