#Bambu Auto Shutoff after extruder cool.

1 messages · Page 1 of 1 (latest)

empty berry
#

I'll put that stuff in a Thread...

#

Automations:

     
- id: 65396760-bcd7-4e5c-a16e-7441635a2784
  alias: Bambino Turn Off
  initial_state: on
  triggers:
    trigger: state
    entity_id:
      - input_button.bambino
  variables:
    printer_running: '{{ states( "binary_sensor.bambu_running") | default("off") }}'
    printer_temperature: '{{ states("sensor.p1s_01p00c4c2100641_nozzle_temperature") | float(0) }}'
  actions:
  - choose:
    - conditions:
        - alias: Printer NOT running
          condition: template
          value_template: '{{ printer_running != "on" }}'
        - alias: Temp is in the zone
          condition: template
          value_template: '{{ printer_temperature < 40 }}'
      sequence:
        - alias: Hold a bit longer to make sure the all has stopped
          delay: 00:00:59
        - alias: Kill the wall plug
          action: homeassistant.turn_off
          entity_id: switch.bambino_switch
#   select printer status list:  failed, finish, idle, init, offline, pause, prepare, running, slicing, unknown, offline

- id: 41241eba-30e7-41fc-83d9-6914b264a7bc
  alias: Bambino Auto Turn Off
  initial_state: on
  triggers:
    - trigger: numeric_state
      entity_id: sensor.p1s_01p00c4c2100641_nozzle_temperature
      value_template: "{{ state.state | float(0.1) }}"
      above: 0
      below: 36
      for: "00:05:00"
  variables:
    printer_temperature: '{{ states("sensor.p1s_01p00c4c2100641_nozzle_temperature") | float(0) }}'
    printer_running: '{{ states( "binary_sensor.bambu_running") | default("off") }}'
    shutdown_enable: '{{ states( "input_select.bambino_safe_shutoff_enable") }}'
  conditions:
    - alias: Printer NOT running
      condition: template
      value_template: '{{ printer_running != "on" }}'
    - alias: Make sure safe shutdown is enabled
      condition: template
      value_template: '{{ shutdown_enable == "enable" }}'
  actions:
    - alias: Kill the wall plug
      action: homeassistant.turn_off
      entity_id: switch.bambino_switch
gleaming mica
#

I don't even know what the blueprints do

empty berry
#
#####################################################
# 3D Printer                                        #
#####################################################
- id: 4ad7d04b-6ec5-4a9a-9457-16a70223a81a
  alias: Tarantula Announcement
  initial_state: on
  triggers:
    trigger: state
    entity_id:
      - binary_sensor.tarantulapro_printing
      - binary_sensor.shark_printing
      - binary_sensor.bambu_running
    from: "on"
    to: "off"
  actions:
    - action: script.tts_tarantula_print_complete

- id: 3d719dec-78b6-407c-9a65-953ba05a41d3
  alias: Tarantula Off Announcement
  initial_state: on
  triggers:
    trigger: state
    entity_id:
      - switch.plug2
      - switch.sonoff_s40lite_switch_2
      - switch.bambino_switch
    from: "on"
    to: "off"
  actions:
    - action: script.tts_tarantula_off
#

Template:


    #####################################################
    # Bat Printer State                                 #
    #####################################################
    - name: "Bambu Running"
      unique_id: 32176e45-2581-4521-b7e5-f8c31454311f
      state: >-
        {# Set the variable. #}
        {% set bambu = states('sensor.p1s_01p00c4c2100641_print_status') %}
        {% set hot = ["pause", "prepare", "running"] | list %}
        {%- if bambu in hot %}
          true
        {%- else %}
          false
        {%- endif %}
      availability: >-
        {% from 'availability_template.jinja' import avail %}
        {{- avail([ 'sensor.p1s_01p00c4c2100641_print_status' ]) | bool -}}
      attributes:
        friendly_name: "Bambino Running"
      icon: >-
        {# Flip sensor for better visual state. #}
        {% set bu_st = is_state('binary_sensor.bambu_running', 'on') %}
        {% if bu_st %}
          mdi-printer-3d-nozzle-heat
        {% elif not bu_st %}
          mdi-printer-3d-nozzle-off
        {% else %}
          mdi-printer-3d-nozzle-alert-outline
        {% endif %}
gleaming mica
#

Ah ok

empty berry
#

Bambu Auto Shutoff after extruder cool.

#

This is also used in there I just remembered