Skip to content

Commit 061413b

Browse files
committed
Add mqtt delay to fix crash
1 parent a29fb9a commit 061413b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

firmware/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ esp32:
8181
framework:
8282
type: esp-idf
8383
# Let esphome handle the versions
84-
#version: 5.3.2
84+
# version: 5.3.2
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

firmware/conf.d/bambu_printer.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ text:
3939
- logger.log:
4040
level: info
4141
format: "Connecting to Bambu printer"
42+
- delay: 2s
4243
- mqtt.enable:
4344
id: bambu_mqtt
4445
else:
@@ -74,6 +75,7 @@ text:
7475
- logger.log:
7576
level: info
7677
format: "Connecting to Bambu printer"
78+
- delay: 2s
7779
- mqtt.enable:
7880
id: bambu_mqtt
7981
else:
@@ -106,10 +108,13 @@ text:
106108
- logger.log:
107109
level: info
108110
format: "Connecting to Bambu printer"
111+
- delay: 2s
109112
- mqtt.enable:
110113
id: bambu_mqtt
111114
else:
112-
- logger.log: "Missing Bambu Credentials, skipping mqtt connect"
115+
- logger.log:
116+
level: info
117+
format: "Missing Bambu Credentials, skipping mqtt connect"
113118
- mqtt.disable:
114119
id: bambu_mqtt
115120

firmware/conf.d/mqtt_bambu_lan.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ mqtt:
5757
- logger.log:
5858
level: info
5959
format: "Disconnected from printer!"
60+
wait_for_connection: false
6061
#TODO: enable status led on s2, set neopixel blue on s3
6162

6263
# text_sensor:

0 commit comments

Comments
 (0)