ha-bambulab icon indicating copy to clipboard operation
ha-bambulab copied to clipboard

[Feature] get the file list from the SD card for print action

Open briodan opened this issue 7 months ago • 2 comments

Describe the feature

it would be great to have a list (dropdown entity) for all the files on the SDcard.

So when initiating a print action the file can be selected from the dropdown instead of trying to remember the name of the file(s)

Don't know the code base or python well enough to work on this integration directly. But I put together a proof of concept that pulls the list of files from the printer via FTP and stores it in a drop down entity.

See attached, figured someone else smarter then I could more easily integrate into the code base.

Image

https://github.com/briodan/bambu_ha_ftp_files

What device is this for?

P1S

Other Information

No response

briodan avatar Apr 28 '25 18:04 briodan

That's very helpful. The biggest problem we might have with enabling this is that the P1 ftp server is incredibly slow and if you have a lot of files on the sd card it can take a very long time to do the directory listing and often times out.

Rather than doing this, my plan was to synchronize the files to home assistant (we're already downloading the 3mf file each print) and then use that as a local cache. Same for timelapses.

AdrianGarside avatar Apr 29 '25 01:04 AdrianGarside

i have about 200 files in my cache folder and it runs pretty quickly about 2 seconds, but i get it might be slower/less reliable if the number would be greater.

building that library of files would be cool, as it can act as a sort of backup of your sd card, i wonder though if it would lead to a lot of space usage in HomeAssistant and an increase of backup sizes.

briodan avatar Apr 29 '25 04:04 briodan

Stale issue message

github-actions[bot] avatar Jun 28 '25 08:06 github-actions[bot]

As I built the print history UX, it became very clear that there was no way to provide a simple reprint option when an AMS is involved. Instead I built a full UX into the simple status card.

AdrianGarside avatar Jul 26 '25 09:07 AdrianGarside