WLED lights for your Bambu Labs 3d printer

Support for adding LED chamber lights via the WLED.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

WLED Features

  • LED lights automatically turn off when Bambu Lida is in use so as to not interfere

  • LED lights turn red when there is an error in the printer

  • LED lights turn blue when bed is auto leveling

  • LED lights turn green when print is finished

blueprint:
  name: Bambu Lab WLED Controller
  description: Control one or more WLED lights with Bambu 3d printer
  domain: automation
  input:
    printer_status:
      name: Print Status of your Bambu Lab printer
      description: "Select the print status entity."
      selector:
        entity:
          filter:
            domain: sensor
            integration: bambu_lab
    printer_stage:
      name: Current Stage of your Bambu Lab Printer
      description: "Select the printer current stage entity."
      selector:
        entity:
          filter:
            domain: sensor
            integration: bambu_lab
    chamber_light:
      name: Chamber Light of your Bambu Lab Printer
      description: "Select the printer chamber light entity."
      selector:
        entity:
          filter:
            domain: light
            integration: bambu_lab
    wled_lights:
      name: WLED Light devices
      description: "Select the WLED light devices you wish to control."
      selector:
        device:
          filter:
            integration: wled
          multiple: true

alias: Bambu Lab WLED Controller
description: ""
trigger:
  - platform: state
    entity_id:
      - !input chamber_light
      - !input printer_status
      - !input printer_stage
    alias: When printer stage,status or chamber light state changes
    #not_to: Unknown
condition: []
action:
  - if:
      - condition: state
        state: "on"
        alias: chamber light is on
        entity_id: !input chamber_light
      - condition: not
        conditions:
          - condition: state
            entity_id: !input printer_stage
            state: Scanning Bed Surface
            alias: Scanning Bed Surface
          - condition: state
            entity_id: !input printer_stage
            state: Cleaning Nozzle Tip
            alias: Cleaning Nozzle Tip
          - condition: state
            entity_id: !input printer_stage
            state: Calibrating Extrusion
            alias: Calibrating Extrusion
          - condition: state
            entity_id: !input printer_status
            state: Offline
            alias: Printer is off
        alias: And Lidar is NOT on
    then:
      - service: light.turn_on
        data:
          rgb_color:
            - 255
            - 255
            - 255
          brightness_pct: 100
          effect: Solid
        alias: Turn WLED light on white
        target:
          device_id:
            !input wled_lights
      - choose:
          - conditions:
              - condition: or
                conditions:
                  - condition: state
                    entity_id: !input printer_stage
                    state: Paused due to filament runout
                  - condition: state
                    entity_id: !input printer_stage
                    state: Pause of front cover falling
                  - condition: state
                    entity_id: !input printer_stage
                    state: Paused due to nozzle temperature malfunction
                  - condition: state
                    entity_id: !input printer_stage
                    state: Paused due to heat bed temperature malfunction
            sequence:
              - service: light.turn_on
                data:
                  rgb_color:
                    - 255
                    - 0
                    - 0
                  brightness: 255
                  effect: Blink
                target:
                  device_id:
                    !input wled_lights
                alias: Turn on Wled to red
        alias: Do we need to set color to red?
      - choose:
          - conditions:
              - condition: or
                conditions:
                  - condition: state
                    entity_id: !input printer_stage
                    state: Idle
                  - condition: state
                    entity_id: !input printer_status
                    state: Finish
                  - condition: state
                    entity_id: !input printer_status
                    state: Offline
            sequence:
              - service: light.turn_on
                data:
                  rgb_color:
                    - 0
                    - 255
                    - 0
                  brightness: 255
                  effect: Solid
                target:
                  device_id:
                    !input wled_lights
                alias: Turn on Wled to green
        alias: Do we need to set color to green?
      - choose:
          - conditions:
              - condition: or
                conditions:
                  - condition: state
                    entity_id: !input printer_stage
                    state: Auto Bed Leveling
            sequence:
              - service: light.turn_on
                data:
                  rgb_color:
                    - 0
                    - 0
                    - 255
                  brightness: 255
                  effect: Blink
                target:
                  device_id:
                    !input wled_lights
                alias: Turn on Wled to blue
        alias: Do we need to set color to blue?
      - choose:
          - conditions:
              - condition: or
                conditions:
                  - condition: state
                    entity_id: !input printer_stage
                    state: Heatbed Preheating
                  - condition: state
                    entity_id: !input printer_stage
                    state: Heating Hotend
            sequence:
              - service: light.turn_on
                data:
                  rgb_color:
                    - 255
                    - 169
                    - 0
                  brightness: 255
                  effect: Blink
                target:
                  device_id:
                    !input wled_lights
                alias: Turn on Wled to yellow
        alias: Do we need to set color to yellow?
    else:
      - service: light.turn_off
        data: {}
        target:
          device_id:
            !input wled_lights
        alias: Turn WLED light off
mode: single
5 Likes

im going to give this ago

Will this also turn on the lights with the lights button on the X1 control panel?

added the blueprint, setup the entities, not changing the colours just solid white. does it need additional setup with wled?

Make sure you can fully control your wled strip from home assistant before you try the blueprint

Not currently but it might be able to be added. I’d have to take a look

i can control, but stull when print starts it just stay white all the time

Sorted, your blueprint created the condition attributes with space between the words,
solution to modify and replace spaces to “_” .

Thanks for your great work anyway :+1:

1 Like

I can not get this to work. Can anyone help? The light will turn on and off with my printers light but thats anout all the automation im getting out of it.

Can anyone help?

Unfortunately, it doesn’t work for me either

Unfortunately same her, it just works for ON/OFF, not taking into account the Lidar operation.

So I seem to have this running w/out issue on one printer. I would like to use a WLED controller I have laying around (Athom) that has two outputs (V/G/D 1 & 2) and I have them set up as segments within WLED

Is there anyway to use this blueprint to have “Printer 1” control SEGMENT 0 and “Printer 2” control SEGMENT 1 on the controller? If not I’ll spin up two esp32s and do it that way - but if I can do it off the one controller it would be great.

The blueprint seems to expect a Device, not entity for the WLED controller so not sure how to work around that

My segments are set up as in the screenshot (Columbia and Magenta are my X1Cs – Rocky Horror for the win!)

My WLED integration in HA is set up :

Hi, thanks for sharing this. Do you have a list of parts you used to implement this?

Anyone able to get this working or is this dead/unusable? Confirmed I can control my WLED in HA on its own but not seeing this causing any color change on the lights when printer is operating.

Thanks for sharing this! Any chance you can add a brightness setting? I’ve found at 100% my camera ends up super washed out by the LEDs.

1 Like

That is exactly the only thing i missed inside that integration :smiley:

Same here. The only thing that seems to work is the WLED strip turns on/off with the chamber light control. Otherwise I get no lighting changes when printing, nor does it shut off when lidarr is active.

EDIT - looks like the recommended WLED blueprint to use is this one:

Hi,
I made an update of the original blueprint because it wasn’t working anymore on my P1S.
Here is the blueprint page https://github.com/PaulBiod/HA-bambulab-wled

To import the blueprint : https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FPaulBiod%2FHA-bambulab-wled%2Fblob%2Fmain%2FHA-bambulab-wled.yaml

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Hi, is it possible to control the white LED on a SK6812 Stripe?

This Blueprint activates only the RGB LEDs.