mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
The Add tag dialog waits for a fresh tap. That is fine when the tag is a sticker in your hand, and awkward when the reader is a scale: the spool is sitting on the pad to be weighed, and filling in the field means lifting it and putting it back. A reader also cannot help here, because it has no reason to report a tag that has not moved. The registry already tracks each reader by id, name and last_seen, all in memory. Keeping the last UID beside them is enough for a client to offer what is on the reader right now, with no back channel to the device, no protocol change, and nothing to update on the agent side - every existing ESPHome reader gets this for free. One UID, not a history: this answers "what is on the reader", not "what has been". It lives and dies with the registry entry, so it is gone on restart like the rest of it, and no scan is written anywhere.