@@ -13,70 +13,70 @@ esphome:
1313 platformio_options :
1414 build_unflags : -std=gnu++11
1515 build_flags :
16- - -std=gnu++14
17- - -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"
16+ - -std=gnu++14
17+ - -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"
1818 on_boot :
1919 then :
20- # TODO: breahting blue studders a little bit
21- - light.turn_on :
22- id : neopixel_light
23- effect : Breathing Blue
24- brightness : 100%
25- - wait_until :
26- condition :
27- wifi.connected :
28- - delay : 100ms
29- - light.turn_on :
30- id : neopixel_light
31- effect : none
32- - delay : 100ms
33- - light.turn_on :
34- id : neopixel_light
35- effect : Rainbow
36- - delay : 4s
37- - light.turn_on :
38- id : neopixel_light
39- effect : none
40- brightness : 50%
41- # - delay: 100ms
42- # - light.addressable_set:
43- # id: neopixel_light
44- # color_brightness: 50%
45- # range_from: 0
46- # range_to: ${led_count}
47- # red: 50%
48- # green: 50%
49- # blue: 50%
50- - if :
51- condition :
52- lambda : |-
53- return !id(bambu_lan_access_code).state.empty() &&
54- !id(bambu_ip_address).state.empty() &&
55- !id(bambu_serial_number).state.empty();
56- then :
57- - logger.log :
58- level : info
59- format : " Connecting to Bambu printer"
60- - mqtt.enable :
61- id : bambu_mqtt
62- else :
63- - logger.log :
64- level : info
65- format : " Missing Bambu Credentials, skipping mqtt connect"
66- - mqtt.disable :
67- id : bambu_mqtt
68- # - script.execute: set_all_leds_white
69- # - lambda: |-
70- # //TODO: this appears to have broken and no longer blinks blue
71- # if (!wifi::global_wifi_component->is_connected() &&
72- # wifi::global_wifi_component->wifi_soft_ap_ip().str() == "192.168.4.1") {
73- # id(set_led_breathing_blue).execute();
74- # }
75- # - lambda: |-
76- # id(my_ota).set_auth_password("New password");
20+ # TODO: breahting blue studders a little bit
21+ - light.turn_on :
22+ id : neopixel_light
23+ effect : Breathing Blue
24+ brightness : 100%
25+ - wait_until :
26+ condition :
27+ wifi.connected :
28+ - delay : 100ms
29+ - light.turn_on :
30+ id : neopixel_light
31+ effect : none
32+ - delay : 100ms
33+ - light.turn_on :
34+ id : neopixel_light
35+ effect : Rainbow
36+ - delay : 4s
37+ - light.turn_on :
38+ id : neopixel_light
39+ effect : none
40+ brightness : 50%
41+ # - delay: 100ms
42+ # - light.addressable_set:
43+ # id: neopixel_light
44+ # color_brightness: 50%
45+ # range_from: 0
46+ # range_to: ${led_count}
47+ # red: 50%
48+ # green: 50%
49+ # blue: 50%
50+ - if :
51+ condition :
52+ lambda : |-
53+ return !id(bambu_lan_access_code).state.empty() &&
54+ !id(bambu_ip_address).state.empty() &&
55+ !id(bambu_serial_number).state.empty();
56+ then :
57+ - logger.log :
58+ level : info
59+ format : " Connecting to Bambu printer"
60+ - mqtt.enable :
61+ id : bambu_mqtt
62+ else :
63+ - logger.log :
64+ level : info
65+ format : " Missing Bambu Credentials, skipping mqtt connect"
66+ - mqtt.disable :
67+ id : bambu_mqtt
68+ # - script.execute: set_all_leds_white
69+ # - lambda: |-
70+ # //TODO: this appears to have broken and no longer blinks blue
71+ # if (!wifi::global_wifi_component->is_connected() &&
72+ # wifi::global_wifi_component->wifi_soft_ap_ip().str() == "192.168.4.1") {
73+ # id(set_led_breathing_blue).execute();
74+ # }
75+ # - lambda: |-
76+ # id(my_ota).set_auth_password("New password");
7777 on_shutdown :
7878 then :
79- - script.execute : set_led_off
79+ - script.execute : set_led_off
8080esp32 :
8181 framework :
8282 type : esp-idf
@@ -85,18 +85,18 @@ esp32:
8585 # platform_version: 53.03.13 # https://github.com/pioarduino/platform-espressif32/releases
8686 sdkconfig_options :
8787 CONFIG_MBEDTLS_HKDF_C : y # Needed for bambu KDF
88- CONFIG_MBEDTLS_MD_C : y # Needed for bambu KDF
88+ CONFIG_MBEDTLS_MD_C : y # Needed for bambu KDF
8989 # version: recommended
9090 # sdkconfig_options:
9191 # MBEDTLS_CERTIFICATE_BUNDLE: y
9292 # MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL: y
9393
94- # TODO: uncomment when ready for bambu support
95- # external_components:
96- # - source:
97- # type: local
98- # path: components
99- # components: [pn532, nfc]
94+ # TODO: uncomment when ready for bambu support
95+ # external_components:
96+ # - source:
97+ # type: local
98+ # path: components
99+ # components: [pn532, nfc]
100100
101101packages :
102102 version : !include conf.d/version.yaml
0 commit comments