greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
698 stars 59 forks source link

[Feature] Filament change trigger from HA, load/unload #487

Open atax112 opened 3 months ago

atax112 commented 3 months ago

Describe the feature

Hello.

Many thanks for the integration, great work.

Would be great to be able to trigger filament load/unload from the integration

Not sure if it s that more complicated than the rest of the controls which already work.

Thank you.

What device is this for?

A1

Other Information

No response

kiwiholmberg commented 3 months ago

At a glance, it looks like it should be possible. According to this post it's a gcode command, stored in a file on the printer. You could possibly define the command like:

UNLOAD = {
    "print": {
        "sequence_id": "0",
        "command": "gcode_file",
        "param": "/usr/etc/print/filament_unload.gcode" // Filename on the printer's filesystem to print
    }
}
atax112 commented 3 months ago

That sounds pretty straightforward with a few unknowns though...

How do I go about of trying it myself?

I search for the file on the SD card?

Can I somehow embed the command in the integration/Hass?

Do I wait for the repo creator to make an update?

Thank you.

atax112 commented 2 months ago

Im not sure where to begin to implement or help implement this feature and there is no activity on this feature, while others(certainly more important) get updates as I follow.

Any suggestions where I can begin? Previous comment pointed towards a possible approach but I have no idea how to verify that gcode file on the A1 sytem partition or how to be able to trigger it.

atax112 commented 2 months ago

@greghesp @AdrianGarside @kiwiholmberg Sorry if I am disturbing, I can see there is a lot of activity, topics to be covered. Is there any direction, insight you could possibly give so that I can start some investigation/implementation of this feature? Anything I can do to help or rather how to start?

Thank you for all your efforts !

github-actions[bot] commented 2 weeks ago

Stale issue message