The scripts and configurations provided here are designed to automatically update the remaining filament in Spoolman when a print is completed. This integration enhances the filament tracking experience by linking your 3D printing setup with Spoolman.
- Install the Lovelace Auto Entities package to dynamically manage your Lovelace card entities.
- Create a new input_text helper named
input_text.spoolman_filament_id. This will be used to store the ID of the current filament being used.
-
Use the provided card design (see screenshot below) to select the current filament before starting a print. The red dot (🔴) indicates the active filament.
- Follow these steps to create an automation that updates Spoolman with the remaining filament after a print.
- create a new script based on the file below. it will take care of saving the filament id in the new input_text when selected.
- This configuration assumes you have Spoolman set up and accessible via REST commands.
- Make sure to customize entity names and identifiers to match your Home Assistant setup.
- HA pull data from spoolman every 15 by default or what you have configured in HA. but it's not realtime.