|
| 1 | +--- |
| 2 | +substitutions: |
| 3 | + name: openspool |
| 4 | +esphome: |
| 5 | + name: ${name} |
| 6 | + name_add_mac_suffix: true |
| 7 | + project: |
| 8 | + name: spuder.openspool |
| 9 | + version: ${version} |
| 10 | + min_version: 2024.11.0 |
| 11 | + platformio_options: |
| 12 | + build_unflags: -std=gnu++11 |
| 13 | + build_flags: |
| 14 | + - -std=gnu++14 |
| 15 | + - -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" |
| 16 | + on_boot: |
| 17 | + then: |
| 18 | + #TODO: breahting blue studders a little bit |
| 19 | + - light.turn_on: |
| 20 | + id: neopixel_light |
| 21 | + effect: Breathing Blue |
| 22 | + brightness: 100% |
| 23 | + - wait_until: |
| 24 | + condition: |
| 25 | + wifi.connected: |
| 26 | + - delay: 100ms |
| 27 | + - light.turn_on: |
| 28 | + id: neopixel_light |
| 29 | + effect: none |
| 30 | + - delay: 100ms |
| 31 | + - light.turn_on: |
| 32 | + id: neopixel_light |
| 33 | + effect: Rainbow |
| 34 | + - delay: 1s |
| 35 | + - light.turn_off: |
| 36 | + id: neopixel_light |
| 37 | + - delay: 500ms |
| 38 | + - script.execute: update_leds |
| 39 | + - if: |
| 40 | + condition: |
| 41 | + lambda: |- |
| 42 | + return !id(bambu_lan_access_code).state.empty() && |
| 43 | + !id(bambu_ip_address).state.empty() && |
| 44 | + !id(bambu_serial_number).state.empty(); |
| 45 | + then: |
| 46 | + - logger.log: |
| 47 | + level: info |
| 48 | + format: "Connecting to Bambu printer" |
| 49 | + - mqtt.enable: |
| 50 | + id: bambu_mqtt |
| 51 | + else: |
| 52 | + - logger.log: |
| 53 | + level: info |
| 54 | + format: "Missing Bambu Credentials, skipping mqtt connect" |
| 55 | + - mqtt.disable: |
| 56 | + id: bambu_mqtt |
| 57 | + # - script.execute: set_all_leds_white |
| 58 | + # - lambda: |- |
| 59 | + # //TODO: this appears to have broken and no longer blinks blue |
| 60 | + # if (!wifi::global_wifi_component->is_connected() && |
| 61 | + # wifi::global_wifi_component->wifi_soft_ap_ip().str() == "192.168.4.1") { |
| 62 | + # id(set_led_breathing_blue).execute(); |
| 63 | + # } |
| 64 | + # - lambda: |- |
| 65 | + # id(my_ota).set_auth_password("New password"); |
| 66 | + on_shutdown: |
| 67 | + then: |
| 68 | + - script.execute: set_leds_off |
| 69 | +esp32: |
| 70 | + framework: |
| 71 | + type: esp-idf |
| 72 | + version: 5.3.1 |
| 73 | + platform_version: 6.9.0 # https://github.com/platformio/platform-espressif32/releases/ |
| 74 | + sdkconfig_options: |
| 75 | + CONFIG_MBEDTLS_HKDF_C: y # Needed for bambu KDF |
| 76 | + CONFIG_MBEDTLS_MD_C: y # Needed for bambu KDF |
| 77 | + # version: recommended |
| 78 | + # sdkconfig_options: |
| 79 | + # MBEDTLS_CERTIFICATE_BUNDLE: y |
| 80 | + # MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL: y |
| 81 | + |
| 82 | +#TODO: uncomment when ready for bambu support |
| 83 | +# external_components: |
| 84 | +# - source: |
| 85 | +# type: local |
| 86 | +# path: components |
| 87 | +# components: [pn532, nfc] |
| 88 | + |
| 89 | +packages: |
| 90 | + version: !include conf.d/version.yaml |
| 91 | + uptime: !include conf.d/uptime.yaml |
| 92 | + wifi: !include conf.d/wifi.yaml |
| 93 | + web_server: !include conf.d/web_server.yaml |
| 94 | + debug: !include conf.d/debug.yaml |
| 95 | + # time: !include conf.d/time.yaml |
| 96 | + mqtt_bambu_lan: !include conf.d/mqtt_bambu_lan.yaml |
| 97 | + filament: !include conf.d/filament.yaml |
| 98 | + bambu_printer: !include conf.d/bambu_printer.yaml |
| 99 | + automation: !include conf.d/automation.yaml |
| 100 | + led-external: !include conf.d/led-external.yaml |
| 101 | + ota: !include conf.d/ota.yaml |
| 102 | + #update: !include conf.d/update.yaml |
| 103 | + api: !include conf.d/api.yaml |
| 104 | + logger: !include conf.d/logger.yaml |
0 commit comments