Support for adding LED chamber lights via the WLED.
-
Requires the WLED Home Assistant Integration and the requiste LED lights and ESP device.
-
Clink the link below to import the WLED blueprint
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