Prompt for dimmability; record it in metrics.json

y / n / Enter-if-unknown at the station; only known values are
written, and the scaffolded device page gets a Dimmable spec.
This commit is contained in:
2026-07-09 15:16:46 +07:00
parent cf30182efa
commit b62eac37c6
2 changed files with 11 additions and 3 deletions
+2
View File
@@ -181,6 +181,8 @@ def write_bundle(reading, out_dir, meta, n_readings, supply=None):
if meta.get("type"):
# Lamp technology: led, halogen, cfl, incandescent, ...
metrics["type"] = meta["type"]
if meta.get("dimmable") is not None:
metrics["dimmable"] = meta["dimmable"]
if meta.get("variant"):
metrics["variant"] = meta["variant"]
if meta.get("rated"):