greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
696 stars 58 forks source link

[Feature] Catch 'filament runout' state? #489

Open sergeolkhovik opened 3 months ago

sergeolkhovik commented 3 months ago

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: https://github.com/greghesp/ha-bambulab/issues/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.

AdrianGarside commented 3 months ago

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.

github-actions[bot] commented 1 month ago

Stale issue message

sergeolkhovik commented 1 month ago

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.