scuppasteve

Untitled

Nov 8th, 2023
689
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 20.37 KB | None | 0 0
  1.  
  2.  
  3. #3D Printer
  4.   - icon: mdi:printer-3d-nozzle
  5.     title: 3D Printer
  6.     panel: true
  7.     cards:
  8.       - type: grid
  9.         square: false
  10.         columns: 1
  11.         cards:
  12.           - type: horizontal-stack
  13.             cards:
  14.               - type: custom:threedy-card
  15.                 base_entity: sensor.octoprint
  16.                 monitored:
  17.                  - Status
  18.                   - ETA
  19.                   - Elapsed
  20.                   - Remaining
  21.                   - Bed
  22.                   - Hotend
  23.                 sensors:
  24.                   Progress: # return the print progress | 0 - 100
  25.                     entity: sensor.octoprint_print_progress
  26.                   Elapsed: # return how much time have been since print starts - Require Status to be defined | number
  27.                     entity: sensor.octoprint_print_progress
  28.                     attribute: printTime
  29.                   Remaining: # return how much time left to finish print - Require Status to be defined | number
  30.                     entity: sensor.octoprint_print_progress
  31.                     attribute: printTimeLeft
  32.                     name: Rem
  33.                   ETA: # return how much time left to finish print - Require Status to be defined | number
  34.                     entity: sensor.octoprint_print_progress
  35.                     attribute: printTimeLeft
  36.                   Status: # return the state of printer | ( printing, stopped etc.. )
  37.                     entity: sensor.octoprint_print_status
  38.                   Hotend: # Return the temperature of hotend | number
  39.                     entity: sensor.octoprint_tool_0_temperature
  40.                   Bed: # Return the temperature of Bed | number
  41.                     entity: sensor.octoprint_bed_temperature
  42.                 printer_type: I3
  43.                 name: Creality CR-10S
  44.                 theme: 'Default'
  45.                 temperature_unit: C
  46.                 round_temperature: false
  47.                 use_mqtt: true
  48.           - type: horizontal-stack
  49.             cards:
  50.               - type: custom:mushroom-entity-card
  51.                 entity: input_boolean.octo_controls
  52.                 tap_action:
  53.                   action: toggle
  54.                 icon_color: indigo
  55.                 name: Control
  56.                 secondary_info: none
  57.               - type: horizontal-stack
  58.                 cards:
  59.                   - type: custom:mushroom-entity-card
  60.                     entity: input_boolean.octoprint_webcam
  61.                     name: Webcam
  62.                     tap_action:
  63.                       action: toggle
  64.                     secondary_info: none
  65.               - type: custom:mushroom-entity-card
  66.                 entity: input_boolean.octo_info
  67.                 name: Info
  68.                 tap_action:
  69.                   action: toggle
  70.                 secondary_info: none
  71.           - type: conditional
  72.             conditions:
  73.               - entity: input_boolean.octo_controls
  74.                 state: 'on'
  75.             card:
  76.               type: custom:mushroom-title-card
  77.               title: Axis Controls
  78.           - type: conditional
  79.             conditions:
  80.               - entity: input_boolean.octo_controls
  81.                 state: 'on'
  82.             card:
  83.               type: horizontal-stack
  84.               cards:
  85.                 - type: vertical-stack
  86.                   cards:
  87.                   - type: horizontal-stack
  88.                     cards:
  89.                       - type: custom:mushroom-entity-card
  90.                         entity: input_boolean.octo_controls
  91.                         tap_action:
  92.                           action: call-service
  93.                           service: mqtt.publish
  94.                           target: {}
  95.                           data:
  96.                             topic: octoPrint/hassControl/commands
  97.                             payload: 'G28 Z0'
  98.                             qos: 0
  99.                             retain: false
  100.                         primary_info: none
  101.                         icon_color: green
  102.                         fill_container: false
  103.                         icon: mdi:home
  104.                         secondary_info: none
  105.                         layout: horizontal
  106.                       - type: custom:mushroom-entity-card
  107.                         entity: input_boolean.octo_controls
  108.                         icon: mdi:arrow-up-bold
  109.                         tap_action:
  110.                           action: call-service
  111.                           service: mqtt.publish
  112.                           target: {}
  113.                           data:
  114.                             topic: octoPrint/hassControl/jog
  115.                             payload: '{"z": 50, "speed": 0.5}'
  116.                             qos: 0
  117.                             retain: false
  118.                         primary_info: none
  119.                         icon_color: red
  120.                         fill_container: false
  121.                         secondary_info: none
  122.                         layout: horizontal
  123.                       - type: custom:mushroom-entity-card
  124.                         entity: input_boolean.octo_controls
  125.                         icon: mdi:arrow-down-bold
  126.                         tap_action:
  127.                           action: call-service
  128.                           service: mqtt.publish
  129.                           target: {}
  130.                           data:
  131.                             topic: octoPrint/hassControl/jog
  132.                             payload: '{"z": -50, "speed": 0.5}'
  133.                             qos: 0
  134.                             retain: false
  135.                         primary_info: none
  136.                         icon_color: red
  137.                         fill_container: false
  138.                         secondary_info: none
  139.                         layout: horizontal
  140.                   - type: horizontal-stack
  141.                     cards:
  142.                       - type: custom:mushroom-entity-card
  143.                         entity: input_boolean.octo_controls
  144.                         tap_action:
  145.                           action: call-service
  146.                           service: mqtt.publish
  147.                           target: {}
  148.                           data:
  149.                             topic: octoPrint/hassControl/commands
  150.                             payload: 'G28 X0 Y0'
  151.                             qos: 0
  152.                             retain: false
  153.                         primary_info: none
  154.                         icon_color: green
  155.                         fill_container: false
  156.                         icon: mdi:home
  157.                         secondary_info: none
  158.                         layout: horizontal
  159.                       - type: custom:mushroom-entity-card
  160.                         entity: input_boolean.octo_controls
  161.                         icon: mdi:arrow-up-thick
  162.                         tap_action:
  163.                           action: call-service
  164.                           service: mqtt.publish
  165.                           target: {}
  166.                           data:
  167.                             topic: octoPrint/hassControl/jog
  168.                             payload: '{"y": 50, "speed": 0.5}'
  169.                             qos: 0
  170.                             retain: false
  171.                         primary_info: none
  172.                         icon_color: orange
  173.                         fill_container: false
  174.                         secondary_info: none
  175.                         layout: horizontal
  176.                       - type: custom:mushroom-entity-card
  177.                         entity: input_boolean.octo_controls
  178.                         icon: mdi:arrow-down-thick
  179.                         tap_action:
  180.                           action: call-service
  181.                           service: mqtt.publish
  182.                           target: {}
  183.                           data:
  184.                             topic: octoPrint/hassControl/jog
  185.                             payload: '{"y": -50, "speed": 0.5}'
  186.                             qos: 0
  187.                             retain: false
  188.                         primary_info: none
  189.                         icon_color: orange
  190.                         fill_container: false
  191.                         secondary_info: none
  192.                         layout: horizontal
  193.                       - type: custom:mushroom-entity-card
  194.                         entity: input_boolean.octo_controls
  195.                         icon: mdi:arrow-left-thick
  196.                         tap_action:
  197.                           action: call-service
  198.                           service: mqtt.publish
  199.                           target: {}
  200.                           data:
  201.                             topic: octoPrint/hassControl/jog
  202.                             payload: '{"x": -50, "speed": 0.5}'
  203.                             qos: 0
  204.                             retain: false
  205.                         primary_info: none
  206.                         icon_color: orange
  207.                         fill_container: false
  208.                         secondary_info: none
  209.                         layout: horizontal
  210.                       - type: custom:mushroom-entity-card
  211.                         entity: input_boolean.octo_controls
  212.                         icon: mdi:arrow-right-thick
  213.                         tap_action:
  214.                           action: call-service
  215.                           service: mqtt.publish
  216.                           target: {}
  217.                           data:
  218.                             topic: octoPrint/hassControl/jog
  219.                             payload: '{"x": 50, "speed": 0.5}'
  220.                             qos: 0
  221.                             retain: false
  222.                         primary_info: none
  223.                         icon_color: orange
  224.                         fill_container: false
  225.                         secondary_info: none
  226.                         layout: horizontal
  227.           - type: conditional
  228.             conditions:
  229.               - entity: input_boolean.octo_controls
  230.                 state: 'on'
  231.             card:
  232.               type: custom:mushroom-title-card
  233.               title: Heat Controls
  234.           - type: conditional
  235.             conditions:
  236.               - entity: input_boolean.octo_controls
  237.                 state: 'on'
  238.             card:
  239.               type: horizontal-stack
  240.               cards:
  241.                 - type: custom:stack-in-card
  242.                   cards:
  243.                     - type: custom:stack-in-card
  244.                       mode: horizontal
  245.                       keep:
  246.                         background: true
  247.                         border_radius: true
  248.                         margin: true
  249.                       cards:
  250.                         - type: custom:mushroom-template-card
  251.                           primary: 'PLA - Nozzle'
  252.                           secondary: Pre-Heat
  253.                           icon: mdi:printer-3d-nozzle-heat
  254.                           tap_action:
  255.                             action: call-service
  256.                             service: mqtt.publish
  257.                             target: {}
  258.                             data:
  259.                               topic: octoPrint/hassControl/commands
  260.                               payload: 'M104 S210'
  261.                               qos: 0
  262.                               retain: false
  263.                           layout: vertical
  264.                           entity: input_boolean.octo_controls
  265.                           icon_color: white
  266.                           double_tap_action:
  267.                             action: toggle
  268.                         - type: custom:mushroom-template-card
  269.                           primary: 'PLA - Bed'
  270.                           secondary: Pre-Heat
  271.                           icon: mdi:printer-3d
  272.                           tap_action:
  273.                             action: call-service
  274.                             service: mqtt.publish
  275.                             target: {}
  276.                             data:
  277.                               topic: octoPrint/hassControl/commands
  278.                               payload: 'M140 S55'
  279.                               qos: 0
  280.                               retain: false
  281.                           layout: vertical
  282.                           entity: input_boolean.octo_controls
  283.                           icon_color: white
  284.                           double_tap_action:
  285.                             action: toggle
  286.                         - type: custom:mushroom-template-card
  287.                           primary: 'ABS - Nozzle'
  288.                           secondary: Pre-Heat
  289.                           icon: mdi:printer-3d-nozzle-heat
  290.                           tap_action:
  291.                             action: call-service
  292.                             service: mqtt.publish
  293.                             target: {}
  294.                             data:
  295.                               topic: octoPrint/hassControl/commands
  296.                               payload: 'M104 S240'
  297.                               qos: 0
  298.                               retain: false
  299.                           layout: vertical
  300.                           entity: input_boolean.octo_controls
  301.                           icon_color: red
  302.                           double_tap_action:
  303.                             action: toggle
  304.                         - type: custom:mushroom-template-card
  305.                           primary: 'ABS - Bed'
  306.                           secondary: Pre-Heat
  307.                           icon: mdi:printer-3d
  308.                           tap_action:
  309.                             action: call-service
  310.                             service: mqtt.publish
  311.                             target: {}
  312.                             data:
  313.                               topic: octoPrint/hassControl/commands
  314.                               payload: 'M140 S55'
  315.                               qos: 0
  316.                               retain: false
  317.                           layout: vertical
  318.                           entity: input_boolean.octo_controls
  319.                           icon_color: red
  320.                           double_tap_action:
  321.                             action: toggle
  322.  
  323.  
  324.           - type: conditional
  325.             conditions:
  326.               - entity: input_boolean.octo_controls
  327.                 state: 'on'
  328.             card:
  329.               type: custom:mushroom-title-card
  330.               title: Power Controls
  331.           - type: conditional
  332.             conditions:
  333.               - entity: input_boolean.octo_controls
  334.                 state: 'on'
  335.             card:
  336.               type: vertical-stack
  337.               cards:
  338.                 - type: horizontal-stack
  339.                   cards:
  340.                     - type: custom:stack-in-card
  341.                       cards:
  342.                         - type: custom:stack-in-card
  343.                           mode: horizontal
  344.                           keep:
  345.                             background: true
  346.                             border_radius: true
  347.                             margin: true
  348.                           cards:
  349.                             - type: custom:mushroom-template-card
  350.                               primary: ''
  351.                               secondary: Creality CR-10S - Switch
  352.                               icon: mdi:fan
  353.                               tap_action:
  354.                                 action: toggle
  355.                               layout: vertical
  356.                               entity: switch.outlet_garage_3d_printer
  357.                               icon_color: |-
  358.                                 {% if is_state(entity, 'on') %}
  359.                                   green
  360.                                 {% endif %}
  361.                                 {% if is_state(entity, 'off') %}
  362.                                   white
  363.                                 {% endif %}
  364.                               double_tap_action:
  365.                                 action: toggle
  366.                             - type: custom:mushroom-template-card
  367.                               entity: button.octoprint_restart_server
  368.                               secondary: Restart Octo
  369.                               icon: mdi:restart-alert
  370.                               icon_color: orange
  371.                               layout: vertical
  372.                               tap_action:
  373.                                 action: toggle
  374.                             - type: custom:mushroom-template-card
  375.                               entity: button.octoprint_resume_job
  376.                               secondary: Resume
  377.                               icon: mdi:play
  378.                               icon_color: green
  379.                               layout: vertical
  380.                               tap_action:
  381.                                 action: toggle
  382.                 - type: horizontal-stack
  383.                   cards:
  384.                     - type: custom:stack-in-card
  385.                       cards:
  386.                         - type: custom:stack-in-card
  387.                           mode: horizontal
  388.                           keep:
  389.                             background: true
  390.                             border_radius: true
  391.                             margin: true
  392.                           cards:
  393.                             - type: custom:mushroom-template-card
  394.                               entity: switch.octoprint_pause_print
  395.                               secondary: Pause
  396.                               icon: mdi:pause
  397.                               icon_color: yellow
  398.                               layout: vertical
  399.                               tap_action:
  400.                                 action: toggle
  401.                             - type: custom:mushroom-template-card
  402.                               entity: button.octoprint_stop_job
  403.                               secondary: Stop
  404.                               icon: mdi:stop
  405.                               icon_color: red
  406.                               layout: vertical
  407.                               tap_action:
  408.                                 action: toggle
  409.                             - type: custom:mushroom-template-card
  410.                               entity: button.octoprint_cancel_print
  411.                               icon: mdi:cancel
  412.                               secondary: Cancel
  413.                               icon_color: red
  414.                               layout: vertical
  415.                               tap_action:
  416.                                 action: toggle
  417.           - type: conditional
  418.             conditions:
  419.               - entity: input_boolean.octoprint_webcam
  420.                 state: 'on'
  421.             card:
  422.               camera_view: live
  423.               type: picture-glance
  424.               title: Creality CR-10S
  425.               image: camera.creality_cr_10s
  426.               entities: []
  427.               tap_action:
  428.                 action: toggle
  429.               hold_action:
  430.                 action: toggle
  431.           - type: conditional
  432.             conditions:
  433.               - entity: input_boolean.octo_info
  434.                 state: 'on'
  435.             card:
  436.               type: vertical-stack
  437.               cards:
  438.                 - type: horizontal-stack
  439.                   cards:
  440.                     - type: custom:mushroom-entity-card
  441.                       entity: sensor.octoprint_print_progress
  442.                       icon: mdi:printer-3d
  443.                       icon_color: lime
  444.                       name: Progress
  445.                     - type: custom:mushroom-entity-card
  446.                       entity: sensor.octoprint_print_time_left
  447.                       name: Remaining
  448.                       icon: mdi:home-clock
  449.                       icon_color: lime
  450.                 - type: horizontal-stack
  451.                   cards:
  452.                     - type: custom:mushroom-entity-card
  453.                       entity: switch.octoprint_connect_to_printer
  454.                       tap_action:
  455.                         action: toggle
  456.                       icon_color: teal
  457.                       name: Connect to Octo
  458.                     - type: custom:mushroom-entity-card
  459.                       entity: binary_sensor.octoprint_connected
  460.                       name: Octo Connection
  461.                       icon: mdi:check-network
  462.                       icon_color: teal
  463.           - type: conditional
  464.             conditions:
  465.               - entity: input_boolean.octo_info
  466.                 state: 'on'
  467.             card:
  468.               show_state: true
  469.               show_name: false
  470.               camera_view: auto
  471.               type: picture-entity
  472.               entity: sensor.octoprint_print_file
  473.               camera_image: camera.creality_cr_10s
  474.               tap_action:
  475.                 action: toggle
Advertisement
Add Comment
Please, Sign In to add comment