adding-device-support
Guides a developer through adding support for a new Samsung OCF appliance to the localthings Home Assistant integration, from triaging a diagnostics dump and routing the device to a registry, to mappi
What it does
Add or extend support for a Samsung OCF appliance in localthings from a /device/0 diagnostics dump. Use when a device-support issue lands, a device raises the "incomplete capability coverage" repair, a diagnostics JSON needs triaging, or you're mapping OCF resources to HA entities. Covers reading dumps, routing a device to a registry from its `/oic/d` device type first and an unrecognized board family second (modelNum board tokens, resource signatures), OCF-standard vs vendor hrefs, the diagnostic/config/normal entity taxonomy, preferring dynamic (device-reported) select options over hardcoded lists, ensuring every href is bound or ignored, and locking it in with a fixture + golden + test. Also covers multi-subdevice ("composite") appliances that expose several logical indoor subdevices over one IP — triaging a missing second subdevice, and why registry hrefs stay canonical rather than indexed.
Quality judgment
The document is exceptionally detailed and well-reasoned for the sections present — routing, taxonomy, translations, dynamic options — with concrete code, issue references, and rationale for every rule. However, it is truncated mid-sentence in §7 and references §§8–11 (binding/ignoring hrefs, fixtures/goldens, subdevices) that are absent, so the promised workflow (fixture + golden + test, composite appliances) is incomplete.