Sign inGet started
–

adding-device-support

by mbillow/localthings · Coding & Development

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

Lift · GLM-5.3-flash—not yet benchmarked
85
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

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.

#device-integration#home-assistant#ocf#python#smart-home#testing

Quality judgment

completeness
5.0/10
clarity
8.0/10
trigger quality
8.0/10
examples
7.0/10
structure
6.5/10
overall
6.0/10

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.

Files (2)

LICENSE · 1.0 KBSKILL.md · 36.9 KB