Repository navigation
Add WiZ security key support and local integration import - #1
Open
0x416d616e wants to merge 1 commit into
Open
0x416d616e wants to merge 1 commit into
0x416d616e wants to merge 1 commit into
Conversation
Newer WiZ firmware can be set to only accept verified controls, which makes it reject unsigned setPilot commands (-32602). Commands then need to be signed with the home security key from the WiZ app. Store an optional signing key in the config entry and pass it to pywizlight, which signs every request when it is set. Without a key, commands stay unsigned, which works for homes that allow all controls. The key can be entered when setting up a device manually, and changed or removed with a new reconfigure step. It is redacted from diagnostics. The user step is now a menu that also offers importing the local integration file exported from the WiZ app (format version 1.0). The import adds the key to the configured devices listed in the file, and starts discovery flows carrying the key and the WiZ app name for listed devices that are not set up yet. This replaces pending discovery flows without the key, including those of devices the network scan misses. Device entries without a usable MAC address are skipped. Entries updated by discovery or the manual step are reloaded by their update listener when loaded, and reloaded right away otherwise. Requires pywizlight with signing support (sbidy/pywizlight#216), which is not released yet; the requirement still needs to be bumped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0x416d616e
force-pushed
the
ccr-652d978c-u19ohg
branch
from
October 11, 2026 09:07
89b8d9a to
76f4c30
Compare
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.
Newer WiZ firmware can be set to only accept verified controls, which
makes it reject unsigned setPilot commands (-32602). Commands then need
to be signed with the home security key from the WiZ app.
Store an optional signing key in the config entry and pass it to
pywizlight, which signs every request when it is set. Without a key,
commands stay unsigned, which works for homes that allow all controls.
The key can be entered when setting up a device manually, and changed
or removed with a new reconfigure step. It is redacted from
diagnostics.
The user step is now a menu that also offers importing the local
integration file exported from the WiZ app (format version 1.0). The
import adds the key to the configured devices listed in the file, and
starts discovery flows carrying the key and the WiZ app name for listed
devices that are not set up yet. This replaces pending discovery flows
without the key, including those of devices the network scan misses.
Device entries without a usable MAC address are skipped.
Entries updated by discovery or the manual step are reloaded by their
update listener when loaded, and reloaded right away otherwise.
Requires pywizlight with signing support (sbidy/pywizlight#216), which
is not released yet; the requirement still needs to be bumped.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com