Open jrsecor opened 8 months ago
I've not been involved with the wled blueprint but I don't see failed being set to red in the current or any historical version of the blueprint:
And failed is not one of the potential (Bambu doesn't actually use over half of these) values that print stage can have: CURRENT_STAGE_IDS = { "default": "unknown", 0: "printing", 1: "auto_bed_leveling", 2: "heatbed_preheating", 3: "sweeping_xy_mech_mode", 4: "changing_filament", 5: "m400_pause", 6: "paused_filament_runout", 7: "heating_hotend", 8: "calibrating_extrusion", 9: "scanning_bed_surface", 10: "inspecting_first_layer", 11: "identifying_build_plate_type", 12: "calibrating_micro_lidar", # DUPLICATED? 13: "homing_toolhead", 14: "cleaning_nozzle_tip", 15: "checking_extruder_temperature", 16: "paused_user", 17: "paused_front_cover_falling", 18: "calibrating_micro_lidar", # DUPLICATED? 19: "calibrating_extrusion_flow", 20: "paused_nozzle_temperature_malfunction", 21: "paused_heat_bed_temperature_malfunction", 22: "filament_unloading", 23: "paused_skipped_step", 24: "filament_loading", 25: "calibrating_motor_noise", 26: "paused_ams_lost", 27: "paused_low_fan_speed_heat_break", 28: "paused_chamber_temperature_control_error", 29: "cooling_chamber", 30: "paused_user_gcode", 31: "motor_noise_showoff", 32: "paused_nozzle_filament_covered_detected", 33: "paused_cutter_error", 34: "paused_first_layer_error", 35: "paused_nozzle_clog",
-1: "idle", # DUPLICATED
# P1 returns 255 for idle
255: "idle", # DUPLICATED
}
print_status is where 'failed' gets set. Which has these options (some of which also never get used by Bambu): GCODE_STATE_OPTIONS = [ "failed", "finish", "idle", "init", "offline", "pause", "prepare", "running", "slicing", "unknown" ]
Honestly, I'm looking at the blueprint and wondering how it works at all since it doesn't have the correct entity names listed. Are you using it unmodified?
It has been working, yes. The only modification I made was changing a couple of the "effect" variables to what I preferred. The only part that doesn't work is any type of failure notifying correctly. Every other state seems to act correctly (orange for heating, blue for preparing, etc)
Stale issue message
Describe the bug
WLED turning Green when it should turn Red
To Reproduce
Cancel Print that is failing Check State See Failed Light is green
Settings in HA/Blueprint here: This image shows that the state is "Failed":
This image shows that the only instance of failed in the blueprint should set Red:
This is the printer WLED being Green in this state:
Of note, if I turn the printer light off and then back on, the WLED integration will always go to the Green state, which indicates there is some base issue with the blueprint and how it gets interpreted. WLED is configured correctly as all colors appear correct when manually setting to RGB values normally.
Expected Behaviour
WLED should be Red
What device are you using?
X1C
Diagnostic Output
Log Extracts
Other Information
None