You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sensors): expose Spoolman extra-field metadata on HA sensors
Fetches /api/v1/field/spool from Spoolman and uses the reported
field_type and unit to set device_class, state_class, native unit
and a sensible icon on dynamic SpoolExtraField sensors. Numeric
fields become MEASUREMENT, datetime fields TIMESTAMP, and units
like %, degC/degF, g/kg, mm/m map to the matching HA device class.
The metadata is matched on unit/field_type instead of the user-chosen
field name, so it works regardless of locale. The shape of
spool['extra'][key] is unchanged (still the raw value), so existing
templates and automations are not broken.
Closes#837 (rework)
0 commit comments