ha-bambulab
ha-bambulab copied to clipboard
[Feature] get the file list from the SD card for print action
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.
https://github.com/briodan/bambu_ha_ftp_files
What device is this for?
P1S
Other Information
No response
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.
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.
Stale issue message
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.