discover_printers
Find Bambu Lab printers on the local network by listening for SSDP announcements or scanning private subnets on port 8883.
Instructions
Find Bambu printers on the local network. First listens for their SSDP announcements (IP, serial, model); if that finds nothing, or when scan='always', it probes every address of the local subnet on the MQTT/TLS port (8883) and reads the printer's certificate. The LAN access code is never broadcast: read it on the printer (Settings > Network) and pass it to add_printer. Only private ranges (192.168.x.x, 10.x.x.x, 172.16-31.x.x) are scanned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | No | auto: scan the subnet only when SSDP found nothing | auto |
| subnet | No | CIDR to scan instead of this machine's own subnets, e.g. 192.168.1.0/24 (max 1024 addresses) | |
| timeout_sec | No | How long to listen for SSDP announcements |