HAIR 0.9.8 tightens the fitting process, gives devices a settings dialog with real sensor feedback, and fixes a transmit quirk that kept some Zigbee blasters from accepting captured AC codes.
A wig is a perfect fit or it is nothing. The fitting checklist now starts every row unchecked; checking a row is the attestation, and signing only arms once every row carries one. The old partial "fitted" tier is retired: downloads are -perfect-fit or plain, and the closet shows the perfect check or nothing. Older files with partial attestations still parse and still count in the ledger, where they show as Incomplete.
The comb gate. Cells the comb flagged now have to be attested before a matrix fitting can sign. Flagged cells join the checklist as their own rows, check only. Test a flagged code and it works, check it and move on; if it really is broken, fix it on the device first.
Device settings and power sensing. Devices that draw current (AC, media player, fan, light, switch) get a settings button on the detail page. Point a power sensor at the device, set an off threshold and an on threshold in watts, and HAIR stops guessing: readings that cross a threshold override the assumed state, including across a Home Assistant restart. A device switched off with its own remote no longer claims to be on until the next command. Devices without a sensor configured now at least restore their last-known state on restart instead of resetting blank.
Room temperature and humidity. On matrix-based climate devices, the same dialog takes a temperature sensor, a humidity sensor, or both, and the thermostat card shows a live reading under each. Display only, with automatic unit conversion.
A Power row on the state matrix. The STATE MATRIX card now offers an Off chip, and an On chip when the unit has a wake code, right above Mode. Send it or save it as a command, exactly like a cell. A matrix device's type is also locked now, since changing it used to tear the climate entity down and orphan the lattice.
Broadlink captures stop carrying their leftover pause. A code learned on a Broadlink RM ends with about 100 ms of silence baked in by the device's own capture timeout. Some 16-bit emitters, including Tuya and ZoSung blasters reached through Zigbee2MQTT, rejected the whole code once that pause pushed a value past their format's limit (reported by @yacinbm, #93). Sends now stop at the last real mark. Re-importing a SmartIR file you imported before 0.9.8 will produce a wig with different code hashes, since the stored codes no longer include the pause; that's deliberate, and supersession resolves the pair if they ever meet in the same shop. Wigs already in your closet are untouched: stored codes keep their pause, and it is stripped at send time regardless.
A state-matrix temperature bug is fixed. A climate device's saved setpoint could drift to nonsense across repeated restarts when the installation's display unit differed from the wig file's unit -- 23C compounding to 73, then 164, then 327 over successive restarts. Setpoints now persist in the device's native unit and clamp to its real range, so an already-drifted value heals itself on the next restart. Preset-mode climate devices were never affected.
Also in this release: command rows keep a constant height, with the code fingerprint moved to its own line and the drag handle sitting beside the name it belongs to.
Full changelog: https://github.com/DAB-LABS/HAIR/blob/main/CHANGELOG.md