greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Catch 'filament runout' state?

sergeolkhovik opened this issue · comments

Describe the feature

Hi! I'd like to catch filement runout event and send some notifications via HA.
As I can see there're 2 main sensors available in this integration: _print_status and _current_stage.
Unfortunately I don't see any such event there (even I see paused_filament_runout here: #483). I just got new filament loaded and checked HA history:

image

and

image

So either this event isn't sent from the printer or there's a bug in this integration?

What device is this for?

P1S

Other Information

HA 2024.1.0 + LAN mode configuration.

Bambu has a whole bunch of stages defined that they never actually generate. Instead filament runout is an HMS error. You can connect notifications to the existing hms error event that's raised but it's a bit noisy. I'm planning to add specific events for common cases like that.

Stale issue message

As I see HMS is just a binary sensor that shows either OK status or error:

image

So not sure that it can help in filament runout state catching.
Anyway for now HA is generating an alert with 2 minutes repeat if printing is paused so at least this works for me in filament runout situation.