feat(smarthome): classify plugs/switches/sensor-subtypes (icons + labels) - #206
Merged
Conversation
…els) - /lights: 'On/Off plug*' → kind plug; skip virtual 'Configuration tool'. - /sensors: ZHASwitch → kind switch; skip 'Daylight' (+ existing CLIP*). - sensorReading: add water/humidity/lightlevel (open before temperature). - setResourceState: reject control on sensor/switch (not controllable). - UI: separate Plugs + Switches sections; per-card category icon + localized label (kind / sensor subtype). Switch read-only (button binding = TP3). - i18n: 15 keys (section.plugs/switches, kind.*, sensor.*) en+de AND GC.t client bridge in all 3 layouts (parity verified).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behebt die Geräte-Klassifizierung auf der Smart-Home-Seite (gemeldet nach Live-Sync). Grundlage: echter Dump des Phoscon-Gateways.
Klassifizierung (Sync-Mapping):
/lights:On/Off plug-in unit→kind: plug(Poolpumpe, Weihnachtsbaum, Pflanzenlampe); virtuellesConfiguration toolwird übersprungen. Echte Leuchten bleibenlight./sensors:ZHASwitch(Smart Switch, Wandschalter, Dimmschalter) →kind: switch; virtuellesDaylightübersprungen (zusätzlich zu CLIP*).sensorReading: ergänzt umwater/humidity/lightlevel(Reihenfolge: open vor temperature). Bewegung/Temperatur/Helligkeit/Fenster-Tür/Wasser werden korrekt als Subtyp erkannt.setResourceState: lehnt Steuerung aufsensor/switchab (nicht steuerbar).UI:
section.plugs/switches,kind.*,sensor.*) in en+de und der Client-BridgeGC.tin allen 3 Layouts — Parität verifiziert (Lehre aus fix(smarthome): CSP-safe modal wiring + client i18n keys #205).Hinweis: Live-Messwerte der Sensoren (aktuelle Temperatur/Helligkeit/offen-zu) sind bewusst der nächste Schritt (Nutzer-Scope „nur Klassifizierung"); Sensorkarten zeigen vorerst „—".
Nach Deploy: einmal Synchronisieren drücken → reklassifiziert das vorhandene Inventar (Configuration tool/Daylight verschwinden via markMissing).
Tests: Klassifizierung + sensorReading + Sync unit-getestet (smarthome_orchestrator 11/11); Suite grün; Layouts kompilieren; GC.t-Parität geprüft.
🤖 Generated with Claude Code