Add GW1200 AC1100 smart plug discovery and control - #21
Merged
Merged
Conversation
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.
Summary
Add discovery, status reporting, and control for AC1100 smart plugs paired with a GW1200. Add Device now offers Find Devices, Discovered GW Sensors, and a separate Discovered GW Smart Plugs list with a 15–60 second query interval (default 30).
Plugs use the existing dashboard switch cards, editable locations and labels (default Plug), timers, and Advanced automations. Commands trigger status confirmation; event history records observed states without duplicate restart or toggle events. Home Assistant also waits for confirmed state. Weather polling remains independent, and existing MQTT switch behavior is preserved.
Update canonical documentation, factory defaults, and version to
v0.26.253.1.Verification
npm run validate:pr: 24 Chromium checks passed using the isolated host fixture, including AC1100 discovery, interval saving, dashboard toggling, event list, and offline status.git diff --check: passed.Contributor checklist
Maintainer verification
npm run validate:prpasses on a trusted host when the change can affect rendered UI behavior.Residual risk or unverified areas
Physical GW1200/AC1100 validation is pending receipt of the AC1100. The maintainer explicitly requested merging before hardware validation. Real gateway firmware responses, radio behavior, physical relay operation, and live broker integration have not been exercised. Hardware pairing/onboarding and non-macOS runtime behavior remain unverified locally; mocked API responses cover the documented protocol. Changes occurring entirely between status queries cannot be recovered.