title: 3D Printer
icon: mdi:printer-3d
cards:
  - type: picture-glance
    id: 3d_printer_camera
    title: 3D Printer Camera
    entity: camera.3d_printer_camera
    camera_image: camera.3d_printer_camera
    show_info: false
    tap_action:
      action: more-info
    entities:
      - binary_sensor.motion_sensor_158d00016c2d0e
      - binary_sensor.octoprint_printing

  - type: vertical-stack
    cards:
      - type: horizontal-stack
        cards:
          - type: gauge
            name: Percent 3D Print Complete
            unit: "%"
            entity: sensor.octoprint_job_percentage

  - type: entities
    title: Octoprint
    show_header_toggle: false
    entities:
      - sensor.octoprint_file
      - binary_sensor.octoprint_printing
      - sensor.octoprint_current_state
      - binary_sensor.octoprint_printing_error
      - entity: sensor.octoprint_actual_bed_temp_c
        name: Print Bed Temperature
      - entity: sensor.octoprint_target_bed_temp_c
        name: Target Bed Temperature
      - entity: sensor.octoprint_actual_tool0_temp_c
        name: Extruder Temperature
      - entity: sensor.octoprint_target_tool0_temp_c
        name: Extruder Target Temperature

  - type: entities
    title: Print Times
    show_header_toggle: false
    entities:
      - entity: sensor.time_elapsed
        name: Elapsed
      - entity: sensor.time_estimated
        name: Estimated
      - entity: sensor.print_completion
        name: Print Completion

  - type: entities
    title: 3D Printer Settings
    show_header_toggle: false
    entities:
      - input_boolean.power_off_when_complete
      - input_boolean.send_progress_pictures

  - type: entities
    title: 3D Printer Control
    show_header_toggle: false
    entities:
      - entity: switch.3d_printer
        name: Ender 3 Pro 3D Printer

  - type: entities
    title: 3D Printer Automations
    show_header_toggle: false
    entities:
      - automation.3d_print_send_telegram_pictures
      - automation.3d_print_job_finished
      - automation.3d_print_progress_update
      - automation.3d_print_state_changed
      - automation.3d_print_notify_printer_state
      - automation.3d_print_notify_printer_error
