From 9deff308b60d33f5fa6e3f491190faf2ec7a0b68 Mon Sep 17 00:00:00 2001 From: bonamin Date: Sun, 8 Nov 2026 21:03:43 +0200 Subject: [PATCH] docs(claude): note hw_family / hw_revision naming (schema decision D2) Device docs now store hardware identity under the firmware's NVS names. Future sessions need to know that, and that the firmware catalog keeps hw_type as a variable name on purpose. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 5231bb5..87c4144 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -389,6 +389,9 @@ One wrongly typed field makes the apps **silently drop the whole device** from t MQTT protocol, not Firestore. - Key spelling is the apps': `bellguardSafetyOn`, `usesStaticIP`, `maintainancePeriod`. - `device_id` and `serial_number` are always equal (decision D1); `serial_number` is canonical. +- Hardware identity is `hw_family` / `hw_revision` — the firmware's NVS names (decision D2). + `hw_family` is a code (`vesper_plus`), never a label (`"Bell Plus"`). The firmware *catalog* + (`/api/firmware/{hw_type}/…`, flash assets) keeps `hw_type` as its variable name — same values. - Check live data with `node tools/audit.js ` in the schema repo. ---